summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/sge.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-12-18 03:47:41 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:07:22 +0100
commitbc4b6b52691bae42b1eec3eb86ab4c718387d9f0 (patch)
tree2554bd6d43828c99a5258997484bbdc5298ea0e7 /drivers/net/cxgb3/sge.c
parentcxgb3 - parity initialization for T3C adapters. (diff)
downloadlinux-bc4b6b52691bae42b1eec3eb86ab4c718387d9f0.tar.xz
linux-bc4b6b52691bae42b1eec3eb86ab4c718387d9f0.zip
cxgb3 - Fix EEH, missing softirq blocking
set_pci_drvdata() stores a pointer to the adapter, not the net device. Add missing softirq blocking in t3_mgmt_tx. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/sge.c')
-rw-r--r--drivers/net/cxgb3/sge.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c
index cef153d1d32c..6367cee0d66a 100644
--- a/drivers/net/cxgb3/sge.c
+++ b/drivers/net/cxgb3/sge.c
@@ -1364,7 +1364,12 @@ static void restart_ctrlq(unsigned long data)
*/
int t3_mgmt_tx(struct adapter *adap, struct sk_buff *skb)
{
- return ctrl_xmit(adap, &adap->sge.qs[0].txq[TXQ_CTRL], skb);
+ int ret;
+ local_bh_disable();
+ ret = ctrl_xmit(adap, &adap->sge.qs[0].txq[TXQ_CTRL], skb);
+ local_bh_enable();
+
+ return ret;
}
/**