OpenCloudOS-Kernel/drivers/net/ethernet/emulex/benet
Davide Caratti 2d52527e80 be2net: don't flip hw_features when VXLANs are added/deleted
the be2net implementation of .ndo_tunnel_{add,del}() changes the value of
NETIF_F_GSO_UDP_TUNNEL bit in 'features' and 'hw_features', but it forgets
to call netdev_features_change(). Moreover, ethtool setting for that bit
can potentially be reverted after a tunnel is added or removed.

GSO already does software segmentation when 'hw_enc_features' is 0, even
if VXLAN offload is turned on. In addition, commit 096de2f83e ("benet:
stricter vxlan offloading check in be_features_check") avoids hardware
segmentation of non-VXLAN tunneled packets, or VXLAN packets having wrong
destination port. So, it's safe to avoid flipping the above feature on
addition/deletion of VXLAN tunnels.

Fixes: 630f4b7056 ("be2net: Export tunnel offloads only when a VxLAN tunnel is created")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-05 00:59:21 -07:00
..
Kconfig be2net: Use Kconfig flag to support for enabling/disabling adapters 2018-08-09 14:08:59 -07:00
Makefile
be.h be2net: Use Kconfig flag to support for enabling/disabling adapters 2018-08-09 14:08:59 -07:00
be_cmds.c be2net: Fix memory leak in be_cmd_get_profile_config() 2018-09-05 08:07:55 -07:00
be_cmds.h emulex/benet: Constify *be_misconfig_evt_port_state[] 2018-02-28 11:39:40 -05:00
be_ethtool.c be2net: Mark expected switch fall-through 2018-08-07 17:54:19 -07:00
be_hw.h be2net: Handle transmit completion errors in Lancer 2018-02-06 11:48:33 -05:00
be_main.c be2net: don't flip hw_features when VXLANs are added/deleted 2018-10-05 00:59:21 -07:00
be_roce.c benet: fix set but not used warning 2017-07-25 12:31:37 -07:00
be_roce.h be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00