]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netlink: specs: rt-link: convert bridge port flag attributes to u8
authorDanielle Ratson <danieller@nvidia.com>
Tue, 7 Jul 2026 08:03:04 +0000 (11:03 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Jul 2026 01:14:42 +0000 (18:14 -0700)
commitf6e3b21608e974c4aaa4cfd73a239dacf1d8a9a3
tree01408c67ac278950d18a1b54ff583a9528ea8d77
parentef01724fa235a228e3d3e8b117e89403cd8feb25
netlink: specs: rt-link: convert bridge port flag attributes to u8

A number of IFLA_BRPORT_* attributes are documented in the rt-link spec
as having the "flag" type, i.e. a payload-less NLA_FLAG attribute whose
meaning is presence-only. This does not match the kernel, which emits
these attributes with nla_put_u8() and validates them as NLA_U8 in
br_port_policy[]. The values are not mere presence flags but carry a u8
payload (0/1).

Convert these bridge port attributes from "flag" to "u8" so the spec
reflects the actual wire format.

Fixes: 077b6022d24b ("doc/netlink/specs: Add sub-message type to rt_link family")
Reviewed-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Link: https://patch.msgid.link/a57cdfcfc4a6dcb92106c25b4dde5059fde2bd44.1783236731.git.danieller@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt-link.yaml