i40e: fix WoL support check
Subsystems (3)
PATCH 1/1 i40e: fix WoL support check
The current check for WoL on i40e is broken. Code comment says only magic packet is supported, so only check for that.
Fixes 540a152da762 (i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE)
Signed-off-by Stefan Assmann <[email protected]>
--- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +1 -2
@@ -2573,8 +2573,7 @@ static int i40e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)return -EOPNOTSUPP ;/* only magic packet is supported */ -if (wol->wolopts && (wol->wolopts !=WAKE_MAGIC ) - | (wol->wolopts !=WAKE_FILTER )) +if (wol->wolopts & ~WAKE_MAGIC )return -EOPNOTSUPP ;/* is this a new value? */
Signature · 1 line
2.20.1