qlcnic: Fix RX/TX checksum setting for some adapter types
authorManish chopra <manish.chopra@qlogic.com>
Wed, 30 Jan 2013 12:47:17 +0000 (12:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 01:34:50 +0000 (20:34 -0500)
Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

index 4e4ebafac5c939f5ac4f642abe2750dda2f474f1..88a2330c9572ea43c8070c3efc99ca053c0e723d 100644 (file)
@@ -932,7 +932,8 @@ netdev_features_t qlcnic_fix_features(struct net_device *netdev,
 {
        struct qlcnic_adapter *adapter = netdev_priv(netdev);
 
-       if ((adapter->flags & QLCNIC_ESWITCH_ENABLED)) {
+       if ((adapter->flags & QLCNIC_ESWITCH_ENABLED) &&
+           qlcnic_82xx_check(adapter)) {
                netdev_features_t changed = features ^ netdev->features;
                features ^= changed & (NETIF_F_ALL_CSUM | NETIF_F_RXCSUM);
        }