mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
This reverts commit108a36d07c. It was reported that this fix breaks the possibility to remove existing WoL flags. For example: ~$ ethtool lan2 ... Supports Wake-on: pg Wake-on: d ... ~$ ethtool -s lan2 wol gp ~$ ethtool lan2 ... Wake-on: pg ... ~$ ethtool -s lan2 wol d ~$ ethtool lan2 ... Wake-on: pg ... This worked correctly before this commit because we were always updating a zero bitmap (since commit6699170376("ethtool: fix application of verbose no_mask bitset"), that is) so that the rest was left zero naturally. But now the 1->0 change (old_val is true, bit not present in netlink nest) no longer works. Reported-by: Oleksij Rempel <[email protected]> Reported-by: Michal Kubecek <[email protected]> Closes: https://lore.kernel.org/netdev/[email protected]/ Cc: [email protected] Fixes:108a36d07c("ethtool: Fix mod state of verbose no_mask bitset") Signed-off-by: Kory Maincent <[email protected]> Reviewed-by: Michal Kubecek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>