Skip to content
Snippets Groups Projects
Commit 60f5ad5e authored by Petr Machata's avatar Petr Machata Committed by Jakub Kicinski
Browse files

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: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 646188c9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment