From: Stefan Assmann <sassmann@kpanic.de>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, e1000-devel@lists.sourceforge.net,
carolyn.wyborny@intel.com, jeffrey.t.kirsher@intel.com,
sassmann@kpanic.de
Subject: [PATCH net-next] igb: do a reset on SR-IOV re-init if device is down
Date: Tue, 1 Jul 2014 13:45:49 +0200 [thread overview]
Message-ID: <1404215149-20634-1-git-send-email-sassmann@kpanic.de> (raw)
To properly re-initialize SR-IOV it is necessary to reset the device
even if it is already down. Not doing this may result in tx unit hangs.
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
---
drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index f145adb..6f3cf45 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -7578,6 +7578,8 @@ static int igb_sriov_reinit(struct pci_dev *dev)
if (netif_running(netdev))
igb_close(netdev);
+ else
+ igb_reset(adapter);
igb_clear_interrupt_scheme(adapter);
--
1.9.3
next reply other threads:[~2014-07-01 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 11:45 Stefan Assmann [this message]
2014-07-01 11:54 ` [PATCH net-next] igb: do a reset on SR-IOV re-init if device is down Jeff Kirsher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1404215149-20634-1-git-send-email-sassmann@kpanic.de \
--to=sassmann@kpanic.de \
--cc=carolyn.wyborny@intel.com \
--cc=davem@davemloft.net \
--cc=e1000-devel@lists.sourceforge.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).