diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-08-23 01:47:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-22 21:26:29 -0700 |
commit | e4a8e817d3cb2a5108f8bb2e47e81eb25a2c5e30 (patch) | |
tree | 018f484e2de74f74c7ea306bdf5a0021a753be23 /kernel | |
parent | cd36c3a21a400cac9c457394b9adf94e0027c136 (diff) | |
download | linux-e4a8e817d3cb2a5108f8bb2e47e81eb25a2c5e30.tar.bz2 |
bpf: misc xdp redirect cleanups
Few cleanups including: bpf_redirect_map() is really XDP only due to
the return code. Move it to a more appropriate location where we do
the XDP redirect handling and change it's name into bpf_xdp_redirect_map()
to make it consistent to the bpf_xdp_redirect() helper.
xdp_do_redirect_map() helper can be static since only used out of filter.c
file. Drop the goto in xdp_do_generic_redirect() and only return errors
directly. In xdp_do_flush_map() only clear ri->map_to_flush which is the
arg we're using in that function, ri->map is cleared earlier along with
ri->ifindex.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions