diff options
author | Rajesh Borundia <Rajesh.Borundia@qlogic.com> | 2011-04-01 10:28:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-06 15:47:13 -0400 |
commit | b56421d0b7527f8ecea3de030cf508468fdc9ba1 (patch) | |
tree | ad983757c4a7517c91cdeb30e827ad364dd3ce33 /drivers/net/qlcnic/qlcnic_main.c | |
parent | f8d54811cb125094769704722e4eda6610339b92 (diff) |
qlcnic: Fix LRO disable
o In dev->open LRO was enabled by default, enable it depending
upon netdev->features , kernel may have disabled it.
o Configure LRO when interface is up.
Signed-off-by: Rajesh Borundia <Rajesh.Borundia@qlogic.com>
Signed-off-by: Anirban Chakraborty <Anirban.Chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index 8bf9a968f7f2..7f9edb2f1474 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c | |||
@@ -773,7 +773,8 @@ qlcnic_set_netdev_features(struct qlcnic_adapter *adapter, | |||
773 | features |= (NETIF_F_TSO | NETIF_F_TSO6); | 773 | features |= (NETIF_F_TSO | NETIF_F_TSO6); |
774 | vlan_features |= (NETIF_F_TSO | NETIF_F_TSO6); | 774 | vlan_features |= (NETIF_F_TSO | NETIF_F_TSO6); |
775 | } | 775 | } |
776 | if (adapter->capabilities & QLCNIC_FW_CAPABILITY_HW_LRO) | 776 | |
777 | if (netdev->features & NETIF_F_LRO) | ||
777 | features |= NETIF_F_LRO; | 778 | features |= NETIF_F_LRO; |
778 | 779 | ||
779 | if (esw_cfg->offload_flags & BIT_0) { | 780 | if (esw_cfg->offload_flags & BIT_0) { |