diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2010-07-09 09:14:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-09 20:41:57 -0400 |
commit | ac8d0c4feb5577a830bbf1d9a3bb5b1d30298e2c (patch) | |
tree | d564fcfee851d9c96e754afa9dc7093f869dd7a7 /drivers/net/qlcnic/qlcnic_main.c | |
parent | d77535162e736c47978d5c01469c56e1781dc91b (diff) |
qlcnic: Check FW capability for TSO
Driver checks TSO capability from FW before enabling it.
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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index 18e2b2e6626d..c334f1a0a2a4 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c | |||
@@ -1226,10 +1226,14 @@ qlcnic_setup_netdev(struct qlcnic_adapter *adapter, | |||
1226 | SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops); | 1226 | SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops); |
1227 | 1227 | ||
1228 | netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | | 1228 | netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | |
1229 | NETIF_F_IPV6_CSUM | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6); | 1229 | NETIF_F_IPV6_CSUM | NETIF_F_GRO); |
1230 | |||
1231 | netdev->vlan_features |= (NETIF_F_SG | NETIF_F_IP_CSUM | | 1230 | netdev->vlan_features |= (NETIF_F_SG | NETIF_F_IP_CSUM | |
1232 | NETIF_F_IPV6_CSUM | NETIF_F_TSO | NETIF_F_TSO6); | 1231 | NETIF_F_IPV6_CSUM); |
1232 | |||
1233 | if (adapter->capabilities & QLCNIC_FW_CAPABILITY_TSO) { | ||
1234 | netdev->features |= (NETIF_F_TSO | NETIF_F_TSO6); | ||
1235 | netdev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO6); | ||
1236 | } | ||
1233 | 1237 | ||
1234 | if (pci_using_dac) { | 1238 | if (pci_using_dac) { |
1235 | netdev->features |= NETIF_F_HIGHDMA; | 1239 | netdev->features |= NETIF_F_HIGHDMA; |