diff options
| author | Jakub Kicinski <[email protected]> | 2021-03-24 18:11:59 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-25 16:46:53 -0700 |
| commit | 42ce127d98641f2cb19cd499b5b3beb472c7eff1 (patch) | |
| tree | f2188b4114169376bd5e2883732b370aae68f56a /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | d3b37fc805d9ef697451730ebdfc7e35e6c2ace8 (diff) | |
ethtool: fec: sanitize ethtool_fecparam->fec
Reject NONE on set, this mode means device does not support
FEC so it's a little out of place in the set interface.
This should be safe to do - user space ethtool does not allow
the use of NONE on set. A few drivers treat it the same as OFF,
but none use it instead of OFF.
Similarly reject an empty FEC mask. The common user space tool
will not send such requests and most drivers correctly reject
it already.
Signed-off-by: Jakub Kicinski <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions