]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix ixgbe_setup_mac_link_82599 autoc variables
authorJacob Keller <jacob.e.keller@intel.com>
Sat, 22 Feb 2014 01:23:56 +0000 (01:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 07:04:40 +0000 (00:04 -0700)
commit62c88a3d54fd65e2b787b574402dbe40fbd31196
treeecb4f66402eece60ba866e8d2a148a1543b8a571
parentb48b3cea6615d19e022bb418dd1a04bc78455711
ixgbe: fix ixgbe_setup_mac_link_82599 autoc variables

This patch fixes flow control autonegotiation for KR/KX/K4 interfaces.
When setting up MAC link, the cached autoc value and current autoc value
were being incorrectly used to determine whether link reset is required.
This resulted in the driver ignoring and discarding flow control
negotiation changes that occur since the caching happened, as well as
when the mac was being setup.

This patch also splits the assignments for the 3 autoc variables into
their own block, and adds a comment explaining what each one means, in
order to help keep logic more straightforward while reading the code.

CC: Arun Sharma <asharma@fb.com>
Reported-by: Sourav Chatterjee <sourav.chatterjee@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c