diff options
author | Filip Pokryvka <[email protected]> | 2021-12-10 18:50:32 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-12-10 21:23:05 -0800 |
commit | ee60e626d536da4c710b3634afe68fe7c6d69b59 (patch) | |
tree | 75a306c280d1fc067f64cdd6a59c82c044a79eb3 /scripts/gdb/linux/utils.py | |
parent | 94f2a444f28a649926c410eb9a38afb13a83ebe0 (diff) |
netdevsim: don't overwrite read only ethtool parms
Ethtool ring feature has _max_pending attributes read-only.
Set only read-write attributes in nsim_set_ringparam.
This patch is useful, if netdevsim device is set-up using NetworkManager,
because NetworkManager sends 0 as MAX values, as it is pointless to
retrieve them in extra call, because they should be read-only. Then,
the device is left in incosistent state (value > MAX).
Fixes: a7fc6db099b5 ("netdevsim: support ethtool ring and coalesce settings")
Signed-off-by: Filip Pokryvka <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions