diff options
author | Sriharsha Basavapatna <sriharsha.basavapatna@emulex.com> | 2014-12-18 23:30:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-18 12:51:29 -0500 |
commit | ac9a3d84e121196263636f2d38d439a45888005a (patch) | |
tree | 828636266c7a1fdcbc1ad9851054c1ac5b58513f | |
parent | bf27c3537c17dab1639330c5f7a69f9162600229 (diff) |
be2net: Fix incorrect setting of tunnel offload flag in netdev features
An earlier commit to resolve an issue with encapsulation offloads missed
setting a bit in the outer netdev features flag. This results in loss of TSO
feature on a VxLAN interface.
Fixes: 630f4b70 ("Export tunnel offloads only when a VxLAN tunnel is created")
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 2aacd4731051..196073110e32 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -3138,6 +3138,7 @@ static void be_disable_vxlan_offloads(struct be_adapter *adapter) | |||
3138 | 3138 | ||
3139 | netdev->hw_enc_features = 0; | 3139 | netdev->hw_enc_features = 0; |
3140 | netdev->hw_features &= ~(NETIF_F_GSO_UDP_TUNNEL); | 3140 | netdev->hw_features &= ~(NETIF_F_GSO_UDP_TUNNEL); |
3141 | netdev->features &= ~(NETIF_F_GSO_UDP_TUNNEL); | ||
3141 | } | 3142 | } |
3142 | #endif | 3143 | #endif |
3143 | 3144 | ||
@@ -4429,6 +4430,7 @@ static void be_add_vxlan_port(struct net_device *netdev, sa_family_t sa_family, | |||
4429 | NETIF_F_TSO | NETIF_F_TSO6 | | 4430 | NETIF_F_TSO | NETIF_F_TSO6 | |
4430 | NETIF_F_GSO_UDP_TUNNEL; | 4431 | NETIF_F_GSO_UDP_TUNNEL; |
4431 | netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL; | 4432 | netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL; |
4433 | netdev->features |= NETIF_F_GSO_UDP_TUNNEL; | ||
4432 | 4434 | ||
4433 | dev_info(dev, "Enabled VxLAN offloads for UDP port %d\n", | 4435 | dev_info(dev, "Enabled VxLAN offloads for UDP port %d\n", |
4434 | be16_to_cpu(port)); | 4436 | be16_to_cpu(port)); |