diff options
author | Petr Machata <petrm@nvidia.com> | 2021-01-20 18:44:11 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-21 08:00:24 +0300 |
commit | 44551bff290d11038816ae5da963d2de12e16c31 (patch) | |
tree | 18ac0e66fb942dfa92919aac54f2f9a15065d3b8 /net/ipv4/tcp_bpf.c | |
parent | 60f5ad5e19c0996df7ca4ce7ef5fd4596cb13f01 (diff) | |
download | linux-44551bff290d11038816ae5da963d2de12e16c31.tar.xz |
nexthop: Use a dedicated policy for nh_valid_dump_req()
This function uses the global nexthop policy, but only accepts four
particular attributes. Create a new policy that only includes the four
supported attributes, and use it. Convert the loop to a series of ifs.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_bpf.c')
0 files changed, 0 insertions, 0 deletions