Skip to content

Commit 3361101

Browse files
committed
i40e: fix WoL support check
jira LE-1907 Rebuild_History Non-Buildable kernel-3.10.0-1062.el7 commit-author Stefan Assmann <sassmann@kpanic.de> commit f669d24 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 <sassmann@kpanic.de> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> (cherry picked from commit f669d24) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 24baf2a commit 3361101

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

25672567
/* only magic packet is supported */
2568-
if (wol->wolopts && (wol->wolopts != WAKE_MAGIC)
2569-
| (wol->wolopts != WAKE_FILTER))
2568+
if (wol->wolopts & ~WAKE_MAGIC)
25702569
return -EOPNOTSUPP;
25712570

25722571
/* is this a new value? */

0 commit comments

Comments
 (0)