Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 02/14] tg3: Disable TSS also during tg3_close()
@ 2010-08-02 21:25 Matt Carlson
  0 siblings, 0 replies; only message in thread
From: Matt Carlson @ 2010-08-02 21:25 UTC (permalink / raw)
  To: davem; +Cc: netdev, andy, mcarlson

The TSS flag needs to be turned off during tg3_close().  If the device
fails to allocate more than one MSI-X vector the next time the device is
brought up, transmits will fail.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
---
 drivers/net/tg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 98ca0d2..12a2dd7 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -8864,7 +8864,7 @@ static void tg3_ints_fini(struct tg3 *tp)
 	else if (tp->tg3_flags2 & TG3_FLG2_USING_MSI)
 		pci_disable_msi(tp->pdev);
 	tp->tg3_flags2 &= ~TG3_FLG2_USING_MSI_OR_MSIX;
-	tp->tg3_flags3 &= ~TG3_FLG3_ENABLE_RSS;
+	tp->tg3_flags3 &= ~(TG3_FLG3_ENABLE_RSS | TG3_FLG3_ENABLE_TSS);
 }
 
 static int tg3_open(struct net_device *dev)
-- 
1.7.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-02 21:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02 21:25 [PATCH net-next 02/14] tg3: Disable TSS also during tg3_close() Matt Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox