diff options
author | Sarveshwar Bandi <sarveshwarb@serverengines.com> | 2009-08-12 17:01:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 19:26:09 -0400 |
commit | 9b0365f1954b0b54a896171b4438ed42ad7ef02f (patch) | |
tree | 4e17ac3c9f45a7c396f3b03c4670940597a50424 /drivers/net/benet | |
parent | c458bc50e31631f7e9333ea6f1832fc54d4e2c1e (diff) |
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>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 2db879c03c6d..45507d88e6a1 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -1972,9 +1972,9 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state) | |||
1972 | if (netif_running(netdev)) { | 1972 | if (netif_running(netdev)) { |
1973 | rtnl_lock(); | 1973 | rtnl_lock(); |
1974 | be_close(netdev); | 1974 | be_close(netdev); |
1975 | be_clear(adapter); | ||
1976 | rtnl_unlock(); | 1975 | rtnl_unlock(); |
1977 | } | 1976 | } |
1977 | be_clear(adapter); | ||
1978 | 1978 | ||
1979 | pci_save_state(pdev); | 1979 | pci_save_state(pdev); |
1980 | pci_disable_device(pdev); | 1980 | pci_disable_device(pdev); |
@@ -1997,9 +1997,9 @@ static int be_resume(struct pci_dev *pdev) | |||
1997 | pci_set_power_state(pdev, 0); | 1997 | pci_set_power_state(pdev, 0); |
1998 | pci_restore_state(pdev); | 1998 | pci_restore_state(pdev); |
1999 | 1999 | ||
2000 | be_setup(adapter); | ||
2000 | if (netif_running(netdev)) { | 2001 | if (netif_running(netdev)) { |
2001 | rtnl_lock(); | 2002 | rtnl_lock(); |
2002 | be_setup(adapter); | ||
2003 | be_open(netdev); | 2003 | be_open(netdev); |
2004 | rtnl_unlock(); | 2004 | rtnl_unlock(); |
2005 | } | 2005 | } |