be2net: Fix suspend/resume operation
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Sun, 3 Apr 2011 01:54:39 +0000 (01:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 21:40:15 +0000 (14:40 -0700)
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>
drivers/net/benet/be_main.c

index 1a4808c6311fc96c04847656c09c72f44514d75d..88d4c8038be4c89c83b7fec01405aeb485a7117a 100644 (file)
@@ -2345,6 +2345,7 @@ static int be_clear(struct be_adapter *adapter)
        be_mcc_queues_destroy(adapter);
        be_rx_queues_destroy(adapter);
        be_tx_queues_destroy(adapter);
+       adapter->eq_next_idx = 0;
 
        if (be_physfn(adapter) && adapter->sriov_enabled)
                for (vf = 0; vf < num_vfs; vf++)