forked from luck/tmp_suning_uos_patched
be2net: Fix suspend/resume operation
eq_next_idx is not getting reset to zero during suspend. This causes resume to fail. Added the fix. Signed-off-by: Sarveswara Rao Mygapula <sarveswararao.mygapula@emulex.com> Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ecd6210765
commit
1f5db83375
@ -2345,6 +2345,7 @@ static int be_clear(struct be_adapter *adapter)
|
|||||||
be_mcc_queues_destroy(adapter);
|
be_mcc_queues_destroy(adapter);
|
||||||
be_rx_queues_destroy(adapter);
|
be_rx_queues_destroy(adapter);
|
||||||
be_tx_queues_destroy(adapter);
|
be_tx_queues_destroy(adapter);
|
||||||
|
adapter->eq_next_idx = 0;
|
||||||
|
|
||||||
if (be_physfn(adapter) && adapter->sriov_enabled)
|
if (be_physfn(adapter) && adapter->sriov_enabled)
|
||||||
for (vf = 0; vf < num_vfs; vf++)
|
for (vf = 0; vf < num_vfs; vf++)
|
||||||
|
Loading…
Reference in New Issue
Block a user