]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix link reporting
authorAlan Brady <alan.brady@intel.com>
Wed, 11 Oct 2017 21:49:42 +0000 (14:49 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 Oct 2017 21:25:38 +0000 (14:25 -0700)
commit1dfd48d5fecf05d730892da2bb45b55faa1ecc65
tree9838848c89d6ecaba5cc7e697607a2f7a6a3567f
parentf3695a40abf48ba92f17c014727e342f596a8385
i40e: fix link reporting

When querying the NVM for supported phy_types, on some firmware
versions, we were failing to actually fill out the phy_types which means
ethtool wouldn't report any link types.

Testing-hints:
Check 'ethtool <iface>' if you have the right (wrong?) firmware.
Without this patch, no link modes will be reported.

Signed-off-by: Alan Brady <alan.brady@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_common.c