]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: unlikely instrumentation for xdp map redirect
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 3 Sep 2018 07:54:57 +0000 (09:54 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 7 Sep 2018 05:34:08 +0000 (22:34 -0700)
commit72d3430d22206c0c29b0f6ed77b0bb1dfc69e5e3
tree54f7b31efc23d48d574cd4d41428ed15bf11d8ca
parente29c007c0c2bad51475a02dd0cf4bc863e2a9fe4
xdp: unlikely instrumentation for xdp map redirect

Notice the compiler generated ASM code layout was suboptimal.  It
assumed map enqueue errors as the likely case, which is shouldn't.
It assumed that xdp_do_flush_map() was a likely case, due to maps
changing between packets, which should be very unlikely.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c