summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2024-03-06 15:49:15 +0300
committerDavid S. Miller <davem@davemloft.net>2024-03-08 13:35:46 +0300
commit2118f9390d83cf942de8b34faf3d35b54f9f4eee (patch)
treed3d6ddc57d9f3045224f2e8d82949a7a6fe13a99 /include/uapi
parent3b43f19d065d2e6669209f991bbf1522b351d0c4 (diff)
downloadlinux-2118f9390d83cf942de8b34faf3d35b54f9f4eee.tar.xz
net: nexthop: Adjust netlink policy parsing for a new attribute
A following patch will introduce a new attribute, op-specific flags to adjust the behavior of an operation. Different operations will recognize different flags. - To make the differentiation possible, stop sharing the policies for get and del operations. - To allow querying for presence of the attribute, have all the attribute arrays sized to NHA_MAX, regardless of what is permitted by policy, and pass the corresponding value to nlmsg_parse() as well. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: David Ahern <dsahern@kernel.org> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions