ixgbe: check EEPROM for WOL support for X540 and above
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 21 Apr 2016 18:37:12 +0000 (11:37 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2016 07:24:29 +0000 (00:24 -0700)
commit740234f070eadd010f7b129c6592767db68f16ba
tree3ca3799d567439300cc0c4e60a37e2c4a350af1a
parent00103a6ce31624cb91cba9d1f991409f67453d73
ixgbe: check EEPROM for WOL support for X540 and above

This change aims to simplify the logic we use to determine WOL
support by reading the EEPROM bits for MACs X540 and newer.

Also some cleanups in ixgbe_wol_supported() - changed return type to
bool and removed redundant return variable by simply using return after
the checks.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c