]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Export tunnel offloads only when a VxLAN tunnel is created
authorSriharsha Basavapatna <sriharsha.basavapatna@emulex.com>
Thu, 11 Dec 2014 08:24:47 +0000 (03:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2014 19:37:24 +0000 (14:37 -0500)
commit54bca705260c6003f92c2ee4e8b71f794eca9412
tree577b5d263b8d50ebdf8a3cf4d2dfd5c147070236
parent59c15cfa4e7d4d078c595ed7b90bf70414ec5b02
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>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c