diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2014-10-28 08:50:03 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-10-30 15:12:07 +0300 |
commit | e3215f0ac77ec23b052cb0bf511143038ac2ad7b (patch) | |
tree | e18762fba9a392f3127eaadc7a8200b2e5fdbeec /drivers/mailbox | |
parent | 4d2fcfbcf8141cdf70245a0c0612b8076f4b7e32 (diff) | |
download | linux-e3215f0ac77ec23b052cb0bf511143038ac2ad7b.tar.xz |
ixgbe: fix race when setting advertised speed
Following commands:
modprobe ixgbe
ifconfig ethX up
ethtool -s ethX advertise 0x020
can lead to "setup link failed with code -14" error due to the setup_link
call racing with the SFP detection routine in the watchdog.
This patch resolves this issue by protecting the setup_link call with check
for __IXGBE_IN_SFP_INIT.
Reported-by: Scott Harrison <scoharr2@cisco.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions