]> git.ipfire.org Git - thirdparty/linux.git/commit
net-shapers: implement NL set and delete operations
authorPaolo Abeni <pabeni@redhat.com>
Wed, 9 Oct 2024 08:09:50 +0000 (10:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 15:30:22 +0000 (08:30 -0700)
commit93954b40f6a4fc43226c01a15b02732f884500f1
tree0ae1adf502b4a222ebb347d8704bc3384c938f75
parent4b623f9f0f59652ea71fcb27d60b4c3b65126dbb
net-shapers: implement NL set and delete operations

Both NL operations directly map on the homonymous device shaper
callbacks, update accordingly the shapers cache and are serialized
via a per device lock.
Implement the cache modification helpers to additionally deal with
NODE scope shaper. That will be needed by the group() operation
implemented in the next patch.
The delete implementation is partial: does not handle NODE scope
shaper yet. Such support will require infrastructure from
the next patch and will be implemented later in the series.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/1e6a34a4095b35d773d2b9c476164671bbcf8397.1728460186.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/shaper/shaper.c