diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2013-10-17 18:26:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 16:39:19 -0400 |
commit | 66c562efbf35e98c42789f73cf39ad5f28abf6be (patch) | |
tree | e5323286dad106cf5d8cd46a0518c951e8669d88 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | |
parent | 0fb88d61bc60779dde88b0fc268da17eb81d0412 (diff) | |
download | blackbird-op-linux-66c562efbf35e98c42789f73cf39ad5f28abf6be.tar.gz blackbird-op-linux-66c562efbf35e98c42789f73cf39ad5f28abf6be.zip |
qlcnic: Validate Tx queue only for 82xx adapters.
o validate Tx queue only in case of adapters which supports
multi Tx queue.
This patch is to fix regression introduced in commit
aa4a1f7df7cbb98797c9f4edfde3c726e2b3841f
"qlcnic: Enable Tx queue changes using ethtool for 82xx Series adapter"
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c index ebe4c86e5230..ff83a9fcd4c5 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c @@ -665,7 +665,7 @@ static int qlcnic_set_channels(struct net_device *dev, return err; } - if (channel->tx_count) { + if (qlcnic_82xx_check(adapter) && channel->tx_count) { err = qlcnic_validate_max_tx_rings(adapter, channel->tx_count); if (err) return err; |