]> 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)
commitac37d8efcbe5548489f5c8a9086e82b46c52195d
tree8aabf74ff627c25960eff06b5e9f9905c832352b
parentcc8dc62bd9ce9913e20cd5d2009f3699c25cc407
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