]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: cpumap micro-optimization in cpu_map_enqueue
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 1 Nov 2017 11:44:45 +0000 (12:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:13:14 +0000 (16:13 +0900)
commit1e194fb7abdedf4fda6c2fa6e11a59260213975e
tree0e384397a2bb6b6a0483b151622edbf7aaa8b99a
parent14bc8b88351c23bbb69116ea3a93e66dd3d00212
bpf: cpumap micro-optimization in cpu_map_enqueue

Discovered that the compiler laid-out asm code in suboptimal way
when studying perf report during benchmarking of cpumap. Help
the compiler by the marking unlikely code paths.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/cpumap.c