diff options
author | Sriharsha Basavapatna <sriharsha.basavapatna@emulex.com> | 2014-12-11 08:24:47 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-11 19:37:24 (GMT) |
commit | 630f4b70567fa0e2dc9283829f7cee04a5de3be2 (patch) | |
tree | 577b5d263b8d50ebdf8a3cf4d2dfd5c147070236 /drivers/net/ethernet/emulex/benet/be.h | |
parent | 0a4b5a2488347a53ad695cf6a87e4b8fbede9eaa (diff) | |
download | linux-630f4b70567fa0e2dc9283829f7cee04a5de3be2.tar.xz |
be2net: Export tunnel offloads only when a VxLAN tunnel is created
The encapsulated offload flags shouldn't be unconditionally exported
to the stack. The stack expects offloading to work across all tunnel
types when those flags are set. This would break other tunnels (like
GRE) since be2net currently supports tunnel offload for VxLAN only.
Also, with VxLANs Skyhawk-R can offload only 1 UDP dport. If more
than 1 UDP port is added, we should disable offloads in that case too.
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 9a2d752..712e7f8 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -522,6 +522,7 @@ struct be_adapter { u8 hba_port_num; u16 pvid; __be16 vxlan_port; + int vxlan_port_count; struct phy_info phy; u8 wol_cap; bool wol_en; |