Skip to content

Commit

Permalink
ixgbe: Disallow device reset during ethtool test
Browse files Browse the repository at this point in the history
Signed-off-by: Auke Kok <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
ahkok authored and Jeff Garzik committed Feb 11, 2008
1 parent 0c254d8 commit 4bebfaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4bebfaa

Please sign in to comment.