nfp: bpf: support [BPF_ALU | BPF_ALU64] | BPF_NEG
authorJiong Wang <jiong.wang@netronome.com>
Wed, 1 Nov 2017 17:38:25 +0000 (10:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:47:30 +0000 (16:47 +0900)
commit254ef4d746878162bb095484fc4b53d713620c33
tree56a933bd7f065d3b8f2463ed9bd53577db25bd4d
parent5d42ced1950c7a7b5f5aa5c1c7e2c78dde9f8ca4
nfp: bpf: support [BPF_ALU | BPF_ALU64] | BPF_NEG

This patch supports BPF_NEG under both BPF_ALU64 and BPF_ALU. LLVM recently
starts to generate it.

NOTE: BPF_NEG takes single operand which is an register and serve as both
input and output.

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