]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: define enum for attr types of dynamic attributes
authorJiri Pirko <jiri@nvidia.com>
Mon, 5 May 2025 11:45:11 +0000 (13:45 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 May 2025 01:21:11 +0000 (18:21 -0700)
commit429ac6211494c12b668dac59811ea8a96db6d757
treed3335e747e83abb5c505e7daa509255201e76104
parent37006af675e8ced690ffb2285d0f15a98323a7de
devlink: define enum for attr types of dynamic attributes

Devlink param and health reporter fmsg use attributes with dynamic type
which is determined according to a different type. Currently used values
are NLA_*. The problem is, they are not part of UAPI. They may change
which would cause a break.

To make this future safe, introduce a enum that shadows NLA_* values in
it and is part of UAPI.

Also, this allows to possibly carry types that are unrelated to NLA_*
values.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20250505114513.53370-3-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/devlink.yaml
include/uapi/linux/devlink.h
net/devlink/health.c
net/devlink/netlink_gen.c
net/devlink/param.c