]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/bpf/32: add support for BPF_ATOMIC bitwise operations
authorHari Bathini <hbathini@linux.ibm.com>
Fri, 10 Jun 2022 15:55:51 +0000 (21:25 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 09:37:08 +0000 (19:37 +1000)
commitb7f6ea28e0069379452d0f70e77c579a8150c941
treec16b3569e05c976e22859f082a136d5bf070f18c
parentdf2232ddc794df5a473c31e6b63ae90c49ebd34a
powerpc/bpf/32: add support for BPF_ATOMIC bitwise operations

Adding instructions for ppc32 for

atomic_and
atomic_or
atomic_xor
atomic_fetch_add
atomic_fetch_and
atomic_fetch_or
atomic_fetch_xor

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> (ppc64le)
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220610155552.25892-5-hbathini@linux.ibm.com
arch/powerpc/net/bpf_jit_comp32.c