]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: bpf: rename ALU_OP_NEG to ALU_OP_NOT
authorJiong Wang <jiong.wang@netronome.com>
Wed, 1 Nov 2017 17:38:24 +0000 (10:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:47:30 +0000 (16:47 +0900)
commit4d27df3922aba251f74dd8e3e4930865ab0c6a81
tree3c9cd635485e262943615807d784da719d9a054e
parent6f026531192670799be0159661a8f7a0946dabde
nfp: bpf: rename ALU_OP_NEG to ALU_OP_NOT

The current ALU_OP_NEG is Op encoding 0x4 for NPF ALU instruction. It is
actually performing "~B" operation which is bitwise NOT.

The using naming ALU_OP_NEG is misleading as NEG is -B which is not the
same as ~B.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c
drivers/net/ethernet/netronome/nfp/nfp_asm.h