projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c254d8
)
ixgbe: Disallow device reset during ethtool test
author
Auke Kok
<auke-jan.h.kok@intel.com>
Mon, 11 Feb 2008 17:26:01 +0000
(09:26 -0800)
committer
Jeff Garzik
<jeff@garzik.org>
Mon, 11 Feb 2008 19:51:40 +0000
(14:51 -0500)
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ixgbe/ixgbe_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbe/ixgbe_main.c
b/drivers/net/ixgbe/ixgbe_main.c
index 576fb51eb748cdf1f754ca2c60389084440c0b5a..a4aeaec1b298e1d8dfd7def4d00714d0ba35e4f1 100644
(file)
--- a/
drivers/net/ixgbe/ixgbe_main.c
+++ b/
drivers/net/ixgbe/ixgbe_main.c
@@
-1942,6
+1942,10
@@
static int ixgbe_open(struct net_device *netdev)
int err;
u32 num_rx_queues = adapter->num_rx_queues;
+ /* disallow open during test */
+ if (test_bit(__IXGBE_TESTING, &adapter->state))
+ return -EBUSY;
+
try_intr_reinit:
/* allocate transmit descriptors */
err = ixgbe_setup_all_tx_resources(adapter);