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_ethtool.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_ethtool.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ethtool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ethtool.c b/drivers/net/qlcnic/qlcnic_ethtool.c index f8e39e4cfe0f..baf5a52b2a4b 100644 --- a/drivers/net/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/qlcnic/qlcnic_ethtool.c | |||
@@ -820,6 +820,9 @@ static u32 qlcnic_get_tso(struct net_device *dev) | |||
820 | 820 | ||
821 | static int qlcnic_set_tso(struct net_device *dev, u32 data) | 821 | static int qlcnic_set_tso(struct net_device *dev, u32 data) |
822 | { | 822 | { |
823 | struct qlcnic_adapter *adapter = netdev_priv(dev); | ||
824 | if (!(adapter->capabilities & QLCNIC_FW_CAPABILITY_TSO)) | ||
825 | return -EOPNOTSUPP; | ||
823 | if (data) | 826 | if (data) |
824 | dev->features |= (NETIF_F_TSO | NETIF_F_TSO6); | 827 | dev->features |= (NETIF_F_TSO | NETIF_F_TSO6); |
825 | else | 828 | else |