]> 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)
commitae8c86d7eaf9977e4e70fcfa2009c36c27cad57e
tree018eb91b4d8aadd03ea70c80ca4211ede0206942
parent72a67cc2452692cb2de1ac82e228525da85bdc80
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