mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
qlcnic: Fix TSS/RSS validation for 83xx/84xx series adapter.
o Current code was not allowing the user to configure more than one Tx ring using ethtool for 83xx/84xx adapter. This regression was introduced by commit id 18afc102fdcb95d6c7d57f2967a06f2f8fe3ba4c ("qlcnic: Enable multiple Tx queue support for 83xx/84xx Series adapter.") Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f9566265d7
commit
b17a44d8b8
@ -680,21 +680,12 @@ static int qlcnic_validate_ring_count(struct qlcnic_adapter *adapter,
|
||||
}
|
||||
|
||||
if (tx_ring != 0) {
|
||||
if (qlcnic_82xx_check(adapter) &&
|
||||
(tx_ring > adapter->max_tx_rings)) {
|
||||
if (tx_ring > adapter->max_tx_rings) {
|
||||
netdev_err(adapter->netdev,
|
||||
"Invalid ring count, Tx ring count %d should not be greater than max %d driver Tx rings.\n",
|
||||
tx_ring, adapter->max_tx_rings);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (qlcnic_83xx_check(adapter) &&
|
||||
(tx_ring > QLCNIC_SINGLE_RING)) {
|
||||
netdev_err(adapter->netdev,
|
||||
"Invalid ring count, Tx ring count %d should not be greater than %d driver Tx rings.\n",
|
||||
tx_ring, QLCNIC_SINGLE_RING);
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user