diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2011-02-23 03:21:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 14:23:33 -0800 |
commit | d12b0d9adc46888e3bb0224886105bf3b188553b (patch) | |
tree | 1c042239af546d4f4e606f114942bb28b8d3f15b /drivers/net/qlcnic/qlcnic_main.c | |
parent | 9ce13ca8fc43f6fbb7ee55a283d44ff2f4ba1c06 (diff) | |
download | op-kernel-dev-d12b0d9adc46888e3bb0224886105bf3b188553b.zip op-kernel-dev-d12b0d9adc46888e3bb0224886105bf3b188553b.tar.gz |
qlcnic: Remove validation for max tx and max rx queues
Max rx queues and tx queues are governed by fimware.
So driver should not validate these values.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index 4994b94..cd88c7e 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c @@ -3653,10 +3653,8 @@ validate_npar_config(struct qlcnic_adapter *adapter, if (adapter->npars[pci_func].type != QLCNIC_TYPE_NIC) return QL_STATUS_INVALID_PARAM; - if (!IS_VALID_BW(np_cfg[i].min_bw) - || !IS_VALID_BW(np_cfg[i].max_bw) - || !IS_VALID_RX_QUEUES(np_cfg[i].max_rx_queues) - || !IS_VALID_TX_QUEUES(np_cfg[i].max_tx_queues)) + if (!IS_VALID_BW(np_cfg[i].min_bw) || + !IS_VALID_BW(np_cfg[i].max_bw)) return QL_STATUS_INVALID_PARAM; } return 0; |