]> asedeno.scripts.mit.edu Git - linux.git/commit
devmap/cpumap: Use flush list instead of bitmap
authorToke Høiland-Jørgensen <toke@redhat.com>
Fri, 28 Jun 2019 09:12:34 +0000 (11:12 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 28 Jun 2019 23:31:08 +0000 (01:31 +0200)
commitd5df2830ca9922d03a33940ea424c9a5f39f1162
tree018eb91b4d8aadd03ea70c80ca4211ede0206942
parentc8af5cd75e2411d5a5aacf115f59a5ff6b87f3fa
devmap/cpumap: Use flush list instead of bitmap

The socket map uses a linked list instead of a bitmap to keep track of
which entries to flush. Do the same for devmap and cpumap, as this means we
don't have to care about the map index when enqueueing things into the
map (and so we can cache the map lookup).

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/cpumap.c
kernel/bpf/devmap.c
net/core/filter.c