]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Fix link issues caused by a reset while interface is down
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 19 Oct 2011 07:41:58 +0000 (07:41 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:23:22 +0000 (22:23 +0800)
commitb145ed1e42652941975542b7b82d65f0e2610888
tree51fa4fa5df7078bb7ddaddaf1ccb9427c7015c7f
parent32227ec49483e9cb23ee2925b007bfae99cf8724
ixgbe: Fix link issues caused by a reset while interface is down

Interface fails to obtain link on 82599 SFP in the following scenario:

1. Set advertised speed to GB:
ethtool -s eth0 advertise 0x20

2. Bring interface down
ip link set eth0 down

3. Issue any command that leads to a reset:
ethtool -t eth0

4. Bring link back up:
ip link set eth0 up

Following patch makes sure that the driver flaps the Tx laser every time
ixgbe_start_hw() is called, and not only when the speed is set.

(cherry picked from commit 232ef6bc451de2bc17c22fd116838cd89b94e1c1)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c