linux/Documentation/netlink
Donald Hunter b2f63d904e doc/netlink: Add spec for rt link messages
Add schema for rt link with support for newlink, dellink, getlink,
setlink and getstats.

A dummy link can be created like this:

sudo ./tools/net/ynl/cli.py \
    --spec Documentation/netlink/specs/rt_link.yaml \
    --do newlink --create \
    --json '{"ifname": "dummy0", "linkinfo": {"kind": "dummy"}}'

For example, offload stats can be fetched like this:

./tools/net/ynl/cli.py \
    --spec Documentation/netlink/specs/rt_link.yaml \
    --dump getstats --json '{ "filter-mask": 8 }'

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20230825122756.7603-12-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-27 17:17:11 -07:00
..
specs doc/netlink: Add spec for rt link messages 2023-08-27 17:17:11 -07:00
genetlink-c.yaml doc/netlink: Fix typo in genetlink-* schemas 2023-08-27 17:17:09 -07:00
genetlink-legacy.yaml doc/netlink: Fix typo in genetlink-* schemas 2023-08-27 17:17:09 -07:00
genetlink.yaml netlink: specs: add dump-strict flag for dont-validate property 2023-08-04 14:03:00 -07:00
netlink-raw.yaml doc/netlink: Add a schema for netlink-raw families 2023-08-27 17:17:09 -07:00