diff options
| author | Heiner Kallweit <[email protected]> | 2024-02-18 15:49:55 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-02-21 11:15:12 +0000 |
| commit | 8306ee08c0ff1c78672bcc645544f26f4d652cca (patch) | |
| tree | 112ee2daa2de0fffa3d2d53962bbb064e59e273d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | b0117d136bb9e4a1facb7ce354e0580dde876f6b (diff) | |
tg3: copy only needed fields from userspace-provided EEE data
The current code overwrites fields in tp->eee with unchecked data from
edata, e.g. the bitmap with supported modes. ethtool properly returns
the received data from get_eee() call, but we have no guarantee that
other users of the ioctl set_eee() interface behave properly too.
Therefore copy only fields which are actually needed.
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions