xdp: Make cpumap flush_list common for all map instances
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 19 Dec 2019 06:10:04 +0000 (07:10 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 20 Dec 2019 05:09:43 +0000 (21:09 -0800)
commitcdfafe98cabefeedbbc65af5c191c59745c03298
tree36cf6f6f90c5c1d3aeccbac41dc4f79b3881a060
parent96360004b8628541f5d05a845ea213267db0b1a2
xdp: Make cpumap flush_list common for all map instances

The cpumap 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 devmaps, which simplifies __cpu_map_flush()
and cpu_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-7-bjorn.topel@gmail.com
include/linux/bpf.h
kernel/bpf/cpumap.c
net/core/filter.c