Commit 5245150
Revert "ethtool: Fix mod state of verbose no_mask bitset"
This reverts commit 108a36d.
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 commit 6699170 ("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: 108a36d ("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]>1 parent 1c1f14f commit 5245150
1 file changed
+6
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | 434 | | |
436 | 435 | | |
437 | | - | |
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
| |||
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 451 | + | |
| 452 | + | |
469 | 453 | | |
470 | 454 | | |
471 | 455 | | |
| |||
474 | 458 | | |
475 | 459 | | |
476 | 460 | | |
477 | | - | |
478 | | - | |
| 461 | + | |
479 | 462 | | |
480 | 463 | | |
481 | 464 | | |
482 | 465 | | |
483 | | - | |
484 | | - | |
| 466 | + | |
| 467 | + | |
485 | 468 | | |
486 | 469 | | |
487 | 470 | | |
| |||
491 | 474 | | |
492 | 475 | | |
493 | 476 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 477 | + | |
498 | 478 | | |
499 | 479 | | |
500 | 480 | | |
| |||
0 commit comments