]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Use a dedicated policy for nh_valid_get_del_req()
authorPetr Machata <petrm@nvidia.com>
Wed, 20 Jan 2021 15:44:10 +0000 (16:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 05:00:24 +0000 (21:00 -0800)
commitf8780590b1614bd91cd8a38566ea3f4c83b8a4dd
tree565744f0c246523cda001f9699d5fdf376e2926d
parent0a5a1ad5ae1b88da05675dfb268e2bac2ed4d067
nexthop: Use a dedicated policy for nh_valid_get_del_req()

This function uses the global nexthop policy only to then bounce all
arguments except for NHA_ID. Instead, just create a new policy that
only includes the one allowed attribute.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c