diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2019-04-16 15:58:11 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-17 06:13:10 +0300 |
commit | b7e3a28019c92ffe1f55de278c5641de33b6259a (patch) | |
tree | 5182b3b6a640803c871995f07040247bd3d6f4b0 /lib | |
parent | a06d729646e87afc5ce06e539aecf762cc26c6e3 (diff) | |
download | linux-b7e3a28019c92ffe1f55de278c5641de33b6259a.tar.xz |
libbpf: remove dependency on barrier.h in xsk.h
The use of smp_rmb() and smp_wmb() creates a Linux header dependency
on barrier.h that is unnecessary in most parts. This patch implements
the two small defines that are needed from barrier.h. As a bonus, the
new implementations are faster than the default ones as they default
to sfence and lfence for x86, while we only need a compiler barrier in
our case. Just as it is when the same ring access code is compiled in
the kernel.
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 'lib')
0 files changed, 0 insertions, 0 deletions