Skip to content

Commit f669d24

Browse files
sassmannJeff Kirsher
authored andcommitted
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: 540a152 (i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE) Signed-off-by: Stefan Assmann <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 7ec52b9 commit f669d24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_ethtool.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,8 +2573,7 @@ static int i40e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
25732573
return -EOPNOTSUPP;
25742574

25752575
/* only magic packet is supported */
2576-
if (wol->wolopts && (wol->wolopts != WAKE_MAGIC)
2577-
| (wol->wolopts != WAKE_FILTER))
2576+
if (wol->wolopts & ~WAKE_MAGIC)
25782577
return -EOPNOTSUPP;
25792578

25802579
/* is this a new value? */

0 commit comments

Comments
 (0)