diff options
author | Russell King (Oracle) <[email protected]> | 2024-10-22 15:17:07 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-10-29 11:56:23 -0700 |
commit | e0e918494c3cfdc589c9ede49183046a42cdff39 (patch) | |
tree | 5386ceae6aed81882e3acdb41995e7a186708799 /tools/perf/scripts/python/sctop.py | |
parent | 6c9c579166b7edd4c97a5d8d0059d7299d3d661a (diff) |
net: phylink: simplify phylink_parse_fixedlink()
phylink_parse_fixedlink() wants to preserve the pause, asym_pause and
autoneg bits in pl->supported. Rather than reading the bits into
separate bools, zeroing pl->supported, and then setting them if they
were previously set, use a mask and linkmode_and() to achieve the same
result.
Signed-off-by: Russell King (Oracle) <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions