]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/bpf/64: add support for atomic fetch operations
authorHari Bathini <hbathini@linux.ibm.com>
Fri, 10 Jun 2022 15:55:49 +0000 (21:25 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 09:37:08 +0000 (19:37 +1000)
commitca7daaeea357fc4c4972b48c86d05bcce5f3f870
tree8780c65e223a2508ce0182a16436dfc1827abb86
parenta599d9a2ba9170b59d7a8d29acd79f00c877966a
powerpc/bpf/64: add support for atomic fetch operations

Adding instructions for ppc64 for

atomic[64]_fetch_add
atomic[64]_fetch_and
atomic[64]_fetch_or
atomic[64]_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-3-hbathini@linux.ibm.com
arch/powerpc/net/bpf_jit_comp64.c