]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: bpf: correct the encoding for No-Dest immed
authorJiong Wang <jiong.wang@netronome.com>
Fri, 1 Dec 2017 05:32:55 +0000 (21:32 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Dec 2017 19:59:20 +0000 (20:59 +0100)
commit5236fc01fcf6dc0ddfc00ebbadb33dd023af17c2
tree8aabf74ff627c25960eff06b5e9f9905c832352b
parente4eaa1712114b9dae24e95571a4f8fdfb7b8465b
nfp: bpf: correct the encoding for No-Dest immed

When immed is used with No-Dest, the emitter should use reg.dst instead of
reg.areg for the destination, using the latter will actually encode
register zero.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c