]> asedeno.scripts.mit.edu Git - linux.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)
commite1302542e37ebbc1de70982e93bd777397f90712
tree54f7b31efc23d48d574cd4d41428ed15bf11d8ca
parenta9c676bc8fc58d00eea9836fb14ee43c0346416a
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