be2net: Enable NETIF_F_TSO6 for VLAN traffic for BE
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Sat, 11 Jun 2011 22:58:46 +0000 (15:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2011 22:58:46 +0000 (15:58 -0700)
NETIF_F_TSO6 for VLAN packets was not enabled for BE adapters.
Enabling it.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 9ba197b0978836378aad2439632f7d8699cc9039..6ddaa34121e8914bbe46a162d6d8f5c88f0630a9 100644 (file)
@@ -2925,12 +2925,9 @@ static void be_netdev_init(struct net_device *netdev)
        netdev->features |= netdev->hw_features |
                NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_FILTER;
 
-       netdev->vlan_features |= NETIF_F_SG | NETIF_F_TSO |
+       netdev->vlan_features |= NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 |
                NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
 
-       if (lancer_chip(adapter))
-               netdev->vlan_features |= NETIF_F_TSO6;
-
        netdev->flags |= IFF_MULTICAST;
 
        /* Default settings for Rx and Tx flow control */