bpf/arm: add atomic-exchange-and-add operation
authorJerin Jacob <jerinj@marvell.com>
Tue, 3 Sep 2019 10:59:37 +0000 (16:29 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 12 Oct 2019 12:20:29 +0000 (14:20 +0200)
commit2acfae37f6b32b6ca245e9a571b9aa84ffd67dd2
tree142e4f0b4c9c0f5548f60daf846f48fb0a13af7b
parente00906bdc700aa0397114b2773333d19aa612bae
bpf/arm: add atomic-exchange-and-add operation

Implement XADD eBPF instruction using STADD arm64 instruction.
If the given platform does not have atomics support,
use LDXR and STXR pair for critical section instead of STADD.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_bpf/bpf_jit_arm64.c