* [PATCH bpf-next] samples/bpf: xdpsock: order memory on AArch64
@ 2018-07-24 13:33 Brian Brooks
2018-07-25 5:52 ` Daniel Borkmann
0 siblings, 1 reply; 2+ messages in thread
From: Brian Brooks @ 2018-07-24 13:33 UTC (permalink / raw)
To: ast, daniel, bjorn.topel, magnus.karlsson
Cc: netdev, linux-kernel, Brian Brooks
Signed-off-by: Brian Brooks <brian.brooks@linaro.org>
---
samples/bpf/xdpsock_user.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/samples/bpf/xdpsock_user.c b/samples/bpf/xdpsock_user.c
index 5904b1543831..1e82f7c617c3 100644
--- a/samples/bpf/xdpsock_user.c
+++ b/samples/bpf/xdpsock_user.c
@@ -145,8 +145,13 @@ static void dump_stats(void);
} while (0)
#define barrier() __asm__ __volatile__("": : :"memory")
+#ifdef __aarch64__
+#define u_smp_rmb() __asm__ __volatile__("dmb ishld": : :"memory")
+#define u_smp_wmb() __asm__ __volatile__("dmb ishst": : :"memory")
+#else
#define u_smp_rmb() barrier()
#define u_smp_wmb() barrier()
+#endif
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] samples/bpf: xdpsock: order memory on AArch64
2018-07-24 13:33 [PATCH bpf-next] samples/bpf: xdpsock: order memory on AArch64 Brian Brooks
@ 2018-07-25 5:52 ` Daniel Borkmann
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2018-07-25 5:52 UTC (permalink / raw)
To: Brian Brooks, ast, bjorn.topel, magnus.karlsson; +Cc: netdev, linux-kernel
On 07/24/2018 03:33 PM, Brian Brooks wrote:
> Signed-off-by: Brian Brooks <brian.brooks@linaro.org>
Please respin with proper commit message instead of empty one.
Thanks,
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-25 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 13:33 [PATCH bpf-next] samples/bpf: xdpsock: order memory on AArch64 Brian Brooks
2018-07-25 5:52 ` Daniel Borkmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).