]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: Make xskmap flush_list common for all map instances
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 19 Dec 2019 06:10:02 +0000 (07:10 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 20 Dec 2019 05:09:43 +0000 (21:09 -0800)
commite372a3fa50f066fc0cf5bff1c6ea466af481412a
tree9e7eeaba755c57e74ed2c8707ddedfad909e91af
parent4fd01e77e33f44e65f1d3c6254266bcae5330c9c
xsk: Make xskmap flush_list common for all map instances

The xskmap flush list is used to track entries that need to flushed
from via the xdp_do_flush_map() function. This list used to be
per-map, but there is really no reason for that. Instead make the
flush list global for all xskmaps, which simplifies __xsk_map_flush()
and xsk_map_alloc().

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-5-bjorn.topel@gmail.com
include/net/xdp_sock.h
kernel/bpf/xskmap.c
net/core/filter.c
net/xdp/xsk.c