netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next-2.6 PATCH] be2net:Creating/destroying queues regardless of netif_running() in suspend/resume path
@ 2009-08-13  7:01 Sarveshwar Bandi
  2009-08-13 23:26 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sarveshwar Bandi @ 2009-08-13  7:01 UTC (permalink / raw)
  To: davem; +Cc: netdev

Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com>
---
 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 2db879c..45507d8 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 *pd
 	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 *pde
 	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();
 	}
-- 
1.4.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [net-next-2.6 PATCH] be2net:Creating/destroying queues regardless of netif_running() in suspend/resume path
  2009-08-13  7:01 [net-next-2.6 PATCH] be2net:Creating/destroying queues regardless of netif_running() in suspend/resume path Sarveshwar Bandi
@ 2009-08-13 23:26 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-08-13 23:26 UTC (permalink / raw)
  To: sarveshwarb; +Cc: netdev

From: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Date: Thu, 13 Aug 2009 12:31:29 +0530

> Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com>

Applied to net-next-2.6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-13 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-13  7:01 [net-next-2.6 PATCH] be2net:Creating/destroying queues regardless of netif_running() in suspend/resume path Sarveshwar Bandi
2009-08-13 23:26 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).