]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Use port number instead of PF ID for WoL
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Fri, 26 Feb 2021 21:19:30 +0000 (13:19 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 29 Mar 2021 17:37:49 +0000 (10:37 -0700)
commit92c9f95c8e00ba5a3d9e51403860a6a6ef2ad674
tree71cc1cdc3fed5314e0fb6f89c38372a26cd6bae1
parent2799a21fa443bd7185bca3adb1b2e44d269d21b0
ice: Use port number instead of PF ID for WoL

As per the spec, the WoL control word read from the NVM should be
interpreted as port numbers, and not PF numbers. So when checking
if WoL supported, use the port number instead of the PF ID.

Also, ice_is_wol_supported doesn't really need a pointer to the pf
struct, but just needs a pointer to the hw instance.

Fixes: 2a199c8d849c ("ice: Add advanced power mgmt for WoL")
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_main.c