mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
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: 540a152da7
(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>
This commit is contained in:
parent
7ec52b9df7
commit
f669d24f3d
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user