]> git.baikalelectronics.ru Git - kernel.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)
commitd353def54cd4bb9259d2f9be62190e41d8d71be7
tree018eb91b4d8aadd03ea70c80ca4211ede0206942
parent53bedd3237927bd56ed35f030879a51baf01c56b
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