i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE
There's a new flag for setting WoL filters that is only enabled on one manufacturer's NICs, and it's not ours. Fail with EOPNOTSUPP. Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
a9e510589d
commit
540a152da7
@@ -2377,7 +2377,8 @@ 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))
|
||||
if (wol->wolopts && (wol->wolopts != WAKE_MAGIC)
|
||||
| (wol->wolopts != WAKE_FILTER))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
/* is this a new value? */
|
||||
|
Reference in New Issue
Block a user