net: shaper: implement introspection support
authorPaolo Abeni <pabeni@redhat.com>
Wed, 9 Oct 2024 08:09:55 +0000 (10:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 15:30:22 +0000 (08:30 -0700)
commit553ea9f1efd6e8410b01f7a31cfb71a97cadcd8b
tree8822946e5ef90125c78e5b23dbaf321baed120e3
parent14bba9285aedefb99647d716b0f61bf32081e387
net: shaper: implement introspection support

The netlink op is a simple wrapper around the device callback.

Extend the existing fetch_dev() helper adding an attribute argument
for the requested device. Reuse such helper in the newly implemented
operation.

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