]> asedeno.scripts.mit.edu Git - linux.git/commit
i40e: Refactor ethtool get_settings
authorCatherine Sullivan <catherine.sullivan@intel.com>
Tue, 3 May 2016 22:13:14 +0000 (15:13 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 14 May 2016 06:32:15 +0000 (23:32 -0700)
commit06566e5dd4e53f57fc3daa12fb8b5252772d70de
treed5bd07133a85fc1b1889608804ee65fe71dcb367
parenteee4172abcdcc610e40eb9513d19ff16c7820270
i40e: Refactor ethtool get_settings

Previously we were only looking at the FW supported PHY types if link
was down, because we want to be more specific when link is up. This
refactor changes this. When link is down, we still rely on the FW
supported PHY types, but when link is up, we select the possible
supported link modes from what we know about the current PHY type, and
AND that with the FW supported PHY types.

Change-ID: Ice5dad83f2a17932b0b8b59f07439696ad6aa013
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c