summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf_util.h
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2019-04-16 14:58:10 +0200
committerAlexei Starovoitov <ast@kernel.org>2019-04-16 20:13:10 -0700
commita06d729646e87afc5ce06e539aecf762cc26c6e3 (patch)
tree1b45209f43dc48c5016a59d1e236bc74d6fb4331 /tools/lib/bpf/libbpf_util.h
parentd5e63fdd443378531fd1a67a15a720a799635d93 (diff)
downloadlinux-a06d729646e87afc5ce06e539aecf762cc26c6e3.tar.gz
linux-a06d729646e87afc5ce06e539aecf762cc26c6e3.tar.bz2
linux-a06d729646e87afc5ce06e539aecf762cc26c6e3.zip
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: 1cad07884239 ("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>
Diffstat (limited to 'tools/lib/bpf/libbpf_util.h')
0 files changed, 0 insertions, 0 deletions