forked from Minki/linux
qlcnic: Fix diagnostic test for all adapters.
o Driver should re-allocate all Tx queues after completing
diagnostic tests. This regression was added by commit id
c2c5e3a068
("qlcnic: Enable
diagnostic test for multiple Tx queues.")
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b84caae486
commit
3bf517df0d
@ -948,6 +948,7 @@ static int qlcnic_irq_test(struct net_device *netdev)
|
||||
struct qlcnic_hardware_context *ahw = adapter->ahw;
|
||||
struct qlcnic_cmd_args cmd;
|
||||
int ret, drv_sds_rings = adapter->drv_sds_rings;
|
||||
int drv_tx_rings = adapter->drv_tx_rings;
|
||||
|
||||
if (qlcnic_83xx_check(adapter))
|
||||
return qlcnic_83xx_interrupt_test(netdev);
|
||||
@ -980,6 +981,7 @@ free_diag_res:
|
||||
|
||||
clear_diag_irq:
|
||||
adapter->drv_sds_rings = drv_sds_rings;
|
||||
adapter->drv_tx_rings = drv_tx_rings;
|
||||
clear_bit(__QLCNIC_RESETTING, &adapter->state);
|
||||
|
||||
return ret;
|
||||
|
@ -1940,7 +1940,6 @@ int qlcnic_diag_alloc_res(struct net_device *netdev, int test)
|
||||
qlcnic_detach(adapter);
|
||||
|
||||
adapter->drv_sds_rings = QLCNIC_SINGLE_RING;
|
||||
adapter->drv_tx_rings = QLCNIC_SINGLE_RING;
|
||||
adapter->ahw->diag_test = test;
|
||||
adapter->ahw->linkup = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user