aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice.h
diff options
context:
space:
mode:
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>2021-02-26 13:19:30 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-14 08:42:00 +0200
commit9d1c342c5018ff5e7cbe1fc7d82e9b4e4d8afea8 (patch)
treeb643276805dc0cab8c861d0854fd991bc27780eb /drivers/net/ethernet/intel/ice/ice.h
parentb6968611029127ca6450421b2441ed9701a9b784 (diff)
downloadkernel_replicant_linux-9d1c342c5018ff5e7cbe1fc7d82e9b4e4d8afea8.tar.gz
kernel_replicant_linux-9d1c342c5018ff5e7cbe1fc7d82e9b4e4d8afea8.tar.bz2
kernel_replicant_linux-9d1c342c5018ff5e7cbe1fc7d82e9b4e4d8afea8.zip
ice: Use port number instead of PF ID for WoL
commit 3176551979b92b02756979c0f1e2d03d1fc82b1e upstream. 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: 769c500dcc1e ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
index 57ee1e6f1dd6..6a57b41ddb54 100644
--- a/drivers/net/ethernet/intel/ice/ice.h
+++ b/drivers/net/ethernet/intel/ice/ice.h
@@ -586,7 +586,7 @@ int ice_schedule_reset(struct ice_pf *pf, enum ice_reset_req reset);
void ice_print_link_msg(struct ice_vsi *vsi, bool isup);
const char *ice_stat_str(enum ice_status stat_err);
const char *ice_aq_str(enum ice_aq_err aq_err);
-bool ice_is_wol_supported(struct ice_pf *pf);
+bool ice_is_wol_supported(struct ice_hw *hw);
int
ice_fdir_write_fltr(struct ice_pf *pf, struct ice_fdir_fltr *input, bool add,
bool is_tun);