diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2019-12-19 07:10:05 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-19 21:09:43 -0800 |
commit | 332f22a60e4c3492d4953cd6f7aaa4e8bd0bba97 (patch) | |
tree | 10a498f29010e5fcb2480100956a7128c18d3556 /include | |
parent | cdfafe98cabefeedbbc65af5c191c59745c03298 (diff) | |
download | linux-stable-332f22a60e4c3492d4953cd6f7aaa4e8bd0bba97.tar.gz linux-stable-332f22a60e4c3492d4953cd6f7aaa4e8bd0bba97.tar.bz2 linux-stable-332f22a60e4c3492d4953cd6f7aaa4e8bd0bba97.zip |
xdp: Remove map_to_flush and map swap detection
Now that all XDP maps that can be used with bpf_redirect_map() tracks
entries to be flushed in a global fashion, there is not need to track
that the map has changed and flush from xdp_do_generic_map()
anymore. All entries will be flushed in xdp_do_flush_map().
This means that the map_to_flush can be removed, and the corresponding
checks. Moving the flush logic to one place, xdp_do_flush_map(), give
a bulking behavior and performance boost.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20191219061006.21980-8-bjorn.topel@gmail.com
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 37ac7025031d..69d6706fc889 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -592,7 +592,6 @@ struct bpf_redirect_info { u32 tgt_index; void *tgt_value; struct bpf_map *map; - struct bpf_map *map_to_flush; u32 kern_flags; }; |