diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-06-22 09:50:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-22 10:40:54 -0700 |
commit | 88f9a87afeeec5dfdda3651f3db96d0006172d91 (patch) | |
tree | aedc601b478d092457ec44161e0921c2e1afaafa /tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py | |
parent | 0dc7dd02ba7ab5f623f5e3a36443ec441364285a (diff) | |
download | linux-88f9a87afeeec5dfdda3651f3db96d0006172d91.tar.gz linux-88f9a87afeeec5dfdda3651f3db96d0006172d91.tar.bz2 linux-88f9a87afeeec5dfdda3651f3db96d0006172d91.zip |
ethtool: Validate module EEPROM offset as part of policy
Validate the offset to read from module EEPROM as part of the netlink
policy and remove the corresponding check from the code.
This also makes it possible to query the offset range from user space:
$ genl ctrl policy name ethtool
...
ID: 0x14 policy[32]:attr[2]: type=U32 range:[0,255]
...
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py')
0 files changed, 0 insertions, 0 deletions