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:
Родитель
0c254d8633
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче