From: Emil Tantilov Date: Tue, 28 Oct 2014 05:50:03 +0000 (+0000) Subject: ixgbe: fix race when setting advertised speed X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3215f0ac77ec23b052cb0bf511143038ac2ad7b;p=pandora-kernel.git 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 Signed-off-by: Emil Tantilov Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed