Commit 4bebfaa5 authored by Auke Kok's avatar Auke Kok Committed by Jeff Garzik

ixgbe: Disallow device reset during ethtool test

Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 0c254d86
...@@ -1942,6 +1942,10 @@ static int ixgbe_open(struct net_device *netdev) ...@@ -1942,6 +1942,10 @@ static int ixgbe_open(struct net_device *netdev)
int err; int err;
u32 num_rx_queues = adapter->num_rx_queues; u32 num_rx_queues = adapter->num_rx_queues;
/* disallow open during test */
if (test_bit(__IXGBE_TESTING, &adapter->state))
return -EBUSY;
try_intr_reinit: try_intr_reinit:
/* allocate transmit descriptors */ /* allocate transmit descriptors */
err = ixgbe_setup_all_tx_resources(adapter); err = ixgbe_setup_all_tx_resources(adapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment