]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: remove likely/unlikely in xsk.h
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 16 Apr 2019 12:58:10 +0000 (14:58 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 Apr 2019 03:13:10 +0000 (20:13 -0700)
commit8d7efd5cc0823b31a18d299f4fd9f24c871ff8e5
tree1b45209f43dc48c5016a59d1e236bc74d6fb4331
parente9c7ec5f64fa6e6baa7eb83ce99772a7a9578a83
libbpf: remove likely/unlikely in xsk.h

This patch removes the use of likely and unlikely in xsk.h since they
create a dependency on Linux headers as reported by several
users. There have also been reports that the use of these decreases
performance as the compiler puts the code on two different cache lines
instead of on a single one. All in all, I think we are better off
without them.

Fixes: 1630fbcf169a ("libbpf: add support for using AF_XDP sockets")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/xsk.h