]> git.karo-electronics.de Git - linux-beck.git/commitdiff
qlcnic: lro off message log from set rx checsum
authorSony Chacko <sony.chacko@qlogic.com>
Tue, 16 Nov 2010 14:08:46 +0000 (14:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2010 19:49:26 +0000 (11:49 -0800)
Log LRO off message while disabling rx checksum only when
LRO is already enabled.

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_ethtool.c

index ec21d24015c485a7153e4262026f89d1c73af6c3..c38929636488af71fcf23ba072a13ecc31926634 100644 (file)
@@ -925,9 +925,10 @@ static int qlcnic_set_rx_csum(struct net_device *dev, u32 data)
 
                dev->features &= ~NETIF_F_LRO;
                qlcnic_send_lro_cleanup(adapter);
+               dev_info(&adapter->pdev->dev,
+                                       "disabling LRO as rx_csum is off\n");
        }
        adapter->rx_csum = !!data;
-       dev_info(&adapter->pdev->dev, "disabling LRO as rx_csum is off\n");
        return 0;
 }