alistair23-linux/net/ethtool
Jakub Kicinski ff419afa43 ethtool: trim policy tables
Since ethtool uses strict attribute validation there's no need
to initialize all attributes in policy tables. 0 is NLA_UNSPEC
which is going to be rejected. Remove the NLA_REJECTs.

Similarly attributes above maxattrs are rejected, so there's
no need to always size the policy tables to ETHTOOL_A_..._MAX.

v2: - new patch

Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-10-06 06:25:55 -07:00
..
bitset.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
cabletest.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
channels.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
coalesce.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
common.c ethtool: Add 100base-FX link mode entries 2020-09-19 16:54:35 -07:00
common.h ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
debug.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
eee.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
features.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
ioctl.c ethtool: allow netdev driver to define phy tunables 2020-10-06 06:16:01 -07:00
linkinfo.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
linkmodes.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
linkstate.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
Makefile ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
netlink.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
netlink.h ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
pause.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
privflags.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
rings.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
strset.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
tsinfo.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
tunnels.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00
wol.c ethtool: trim policy tables 2020-10-06 06:25:55 -07:00