mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
be2net:Creating/destroying queues regardless of netif_running() in suspend/resume path
Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c458bc50e3
commit
9b0365f195
1 changed files with 2 additions and 2 deletions
|
@ -1972,9 +1972,9 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state)
|
||||||
if (netif_running(netdev)) {
|
if (netif_running(netdev)) {
|
||||||
rtnl_lock();
|
rtnl_lock();
|
||||||
be_close(netdev);
|
be_close(netdev);
|
||||||
be_clear(adapter);
|
|
||||||
rtnl_unlock();
|
rtnl_unlock();
|
||||||
}
|
}
|
||||||
|
be_clear(adapter);
|
||||||
|
|
||||||
pci_save_state(pdev);
|
pci_save_state(pdev);
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
|
@ -1997,9 +1997,9 @@ static int be_resume(struct pci_dev *pdev)
|
||||||
pci_set_power_state(pdev, 0);
|
pci_set_power_state(pdev, 0);
|
||||||
pci_restore_state(pdev);
|
pci_restore_state(pdev);
|
||||||
|
|
||||||
|
be_setup(adapter);
|
||||||
if (netif_running(netdev)) {
|
if (netif_running(netdev)) {
|
||||||
rtnl_lock();
|
rtnl_lock();
|
||||||
be_setup(adapter);
|
|
||||||
be_open(netdev);
|
be_open(netdev);
|
||||||
rtnl_unlock();
|
rtnl_unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue