]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
be2net:Creating/destroying queues regardless of netif_running() in suspend/resume...
authorSarveshwar Bandi <sarveshwarb@serverengines.com>
Wed, 12 Aug 2009 21:01:29 +0000 (21:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 23:26:09 +0000 (16:26 -0700)
Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 2db879c03c6d66e7c274bfc3a72936b4f4c35c1d..45507d88e6a135d2106e3e2101038011f4e8dea9 100644 (file)
@@ -1972,9 +1972,9 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state)
        if (netif_running(netdev)) {
                rtnl_lock();
                be_close(netdev);
-               be_clear(adapter);
                rtnl_unlock();
        }
+       be_clear(adapter);
 
        pci_save_state(pdev);
        pci_disable_device(pdev);
@@ -1997,9 +1997,9 @@ static int be_resume(struct pci_dev *pdev)
        pci_set_power_state(pdev, 0);
        pci_restore_state(pdev);
 
+       be_setup(adapter);
        if (netif_running(netdev)) {
                rtnl_lock();
-               be_setup(adapter);
                be_open(netdev);
                rtnl_unlock();
        }