diff options
author | Chopra, Manish | 2017-04-24 19:00:49 +0200 |
---|---|---|
committer | David S. Miller | 2017-04-25 17:49:32 +0200 |
commit | eaf3c0c6b4e307e5c7e6cbeb8c5a17be7feee249 (patch) | |
tree | afab494c0662a0a99983ed8b4c9debd42b880c96 /drivers/net/ethernet/qlogic/qed/qed_sp_commands.c | |
parent | qed/qede: Add UDP ports in bulletin board (diff) | |
download | kernel-qcow2-linux-eaf3c0c6b4e307e5c7e6cbeb8c5a17be7feee249.tar.gz kernel-qcow2-linux-eaf3c0c6b4e307e5c7e6cbeb8c5a17be7feee249.tar.xz kernel-qcow2-linux-eaf3c0c6b4e307e5c7e6cbeb8c5a17be7feee249.zip |
qed - VF tunnelling support [VXLAN/GENEVE/GRE]
This patch adds hardware channel APIs support between
VF and PF for tunnelling configuration for the VFs.
According to that configuration VFs can run VXLAN/GENEVE/GRE
tunnels over it with tunnel features offloaded.
Using these APIs VF can also request for UDP ports configuration
to the PF, although PF and it's child VFs share the same port.
Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: Yuval Mintz <yuval.mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_sp_commands.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_sp_commands.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c index 96c6fda430dc..bc3694e91b85 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c @@ -451,6 +451,9 @@ int qed_sp_pf_update_tunn_cfg(struct qed_hwfn *p_hwfn, struct qed_sp_init_data init_data; int rc = -EINVAL; + if (IS_VF(p_hwfn->cdev)) + return qed_vf_pf_tunnel_param_update(p_hwfn, p_tunn); + if (!p_tunn) return -EINVAL; |