qlcnic: Enable IPv6 LRO even if IP address is not programmed
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Fri, 10 Jan 2014 16:48:58 +0000 (11:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jan 2014 23:31:19 +0000 (15:31 -0800)
o Enabling BIT_9 while configuring hardware LRO allows adapter to
  perform LRO even if destination IP address is not programmed in adapter.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

index e96b76ddef4724131f05b32402799d351b534353..6ca5e57da3da049b0a6679dbf6de8f29b975e6ac 100644 (file)
@@ -782,8 +782,8 @@ void qlcnic_82xx_config_intr_coalesce(struct qlcnic_adapter *adapter)
                        "Could not send interrupt coalescing parameters\n");
 }
 
-#define QLCNIC_ENABLE_IPV4_LRO         1
-#define QLCNIC_ENABLE_IPV6_LRO         2
+#define QLCNIC_ENABLE_IPV4_LRO         BIT_0
+#define QLCNIC_ENABLE_IPV6_LRO         (BIT_1 | BIT_9)
 
 int qlcnic_82xx_config_hw_lro(struct qlcnic_adapter *adapter, int enable)
 {