netlink: spec: add shaper YAML spec
authorPaolo Abeni <pabeni@redhat.com>
Wed, 9 Oct 2024 08:09:48 +0000 (10:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 15:30:21 +0000 (08:30 -0700)
commit04e65df94b3112a1b319b6deb5bab83fd740bc7d
tree9325725295055a9f5c92c9776cf8c4cf1a40cebd
parent13d68a16430312fc21990f48326366eb73891202
netlink: spec: add shaper YAML spec

Define the user-space visible interface to query, configure and delete
network shapers via yaml definition.

Add dummy implementations for the relevant NL callbacks.

set() and delete() operations touch a single shaper creating/updating or
deleting it.
The group() operation creates a shaper's group, nesting multiple input
shapers under the specified output shaper.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/7a33a1ff370bdbcd0cd3f909575c912cd56f41da.1728460186.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/net_shaper.yaml [new file with mode: 0644]
MAINTAINERS
include/uapi/linux/net_shaper.h [new file with mode: 0644]
net/Kconfig
net/Makefile
net/shaper/Makefile [new file with mode: 0644]
net/shaper/shaper.c [new file with mode: 0644]
net/shaper/shaper_nl_gen.c [new file with mode: 0644]
net/shaper/shaper_nl_gen.h [new file with mode: 0644]