mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
ixgbe: Disallow device reset during ethtool test
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
0c254d8633
commit
4bebfaa56b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue