]> asedeno.scripts.mit.edu Git - linux.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)
commit03c4cc385faaa46e5877f499c6b997fef792f8d3
tree0e384397a2bb6b6a0483b151622edbf7aaa8b99a
parent14e83bf82961aeebef41976139c61ab82c84a238
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