OpenCloudOS-Kernel/net/ethtool
Jakub Kicinski 4f30974feb ethtool: wire up get policies to ops
Wire up policies for get commands in struct nla_policy of the ethtool
family. Make use of genetlink code attr validation and parsing, as well
as allow dumping policies to user space.

For every ETHTOOL_MSG_*_GET:
 - add 'ethnl_' prefix to policy name
 - add extern declaration in net/ethtool/netlink.h
 - wire up the policy & attr in ethtool_genl_ops[].
 - remove .request_policy and .max_attr from ethnl_request_ops.

Obviously core only records the first "layer" of parsed attrs
so we still need to parse the sub-attrs of the nested header
attribute.

v2:
 - merge of patches 1 and 2 from v1
 - remove stray empty lines in ops
 - also remove .max_attr

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
..
Makefile ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
bitset.c ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
cabletest.c net: ethtool: Remove PHYLIB direct dependency 2020-07-07 15:41:05 -07:00
channels.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
coalesce.c ethtool: wire up get policies to ops 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: wire up get policies to ops 2020-10-06 06:25:55 -07:00
eee.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
features.c ethtool: wire up get policies to ops 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: wire up get policies to ops 2020-10-06 06:25:55 -07:00
linkmodes.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
linkstate.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
netlink.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
netlink.h ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
pause.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
privflags.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
rings.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
strset.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
tsinfo.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
tunnels.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00
wol.c ethtool: wire up get policies to ops 2020-10-06 06:25:55 -07:00