Skip to content

Commit bb0967c

Browse files
Jeff Kirsheranguy11
authored andcommitted
ixgbe: Cleanup unneeded delay in ethtool test
There is a 4 seconds delay in ixgbe_diag_test() that is holding up other ioctls such as SIOCGIFCONF that Oracle database applications use. One of Oracle's product runs "ethtool -t ethX online" periodically for system monitoring and that is impacting database applications that use SIOCGIFCONF at that same time. This 4 second delay was needed in out early 1GbE parts to give the PHY time to recover from a reset. This code was carried forward to the 10 GbE driver even it was not needed for the supported PHYs in the ixgbe driver. CC: Aleksandr Loktionov <aleksandr.loktionov@intel.com> CC: Jack Vogel <jack.vogel@oracle.com> Reported-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 9358076 commit bb0967c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ static void ixgbe_diag_test(struct net_device *netdev,
20842084
eth_test->flags |= ETH_TEST_FL_FAILED;
20852085
clear_bit(__IXGBE_TESTING,
20862086
&adapter->state);
2087-
goto skip_ol_tests;
2087+
return;
20882088
}
20892089
}
20902090
}
@@ -2156,9 +2156,6 @@ static void ixgbe_diag_test(struct net_device *netdev,
21562156

21572157
clear_bit(__IXGBE_TESTING, &adapter->state);
21582158
}
2159-
2160-
skip_ol_tests:
2161-
msleep_interruptible(4 * 1000);
21622159
}
21632160

21642161
static int ixgbe_wol_exclusion(struct ixgbe_adapter *adapter,

0 commit comments

Comments
 (0)