OSDN Git Service

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)
commit5d42ced1950c7a7b5f5aa5c1c7e2c78dde9f8ca4
tree3c9cd635485e262943615807d784da719d9a054e
parent07d3c4afc55870a4445d322adf4190463580da7d
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