mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-27 08:20:26 +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
@ -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 New Issue
Block a user