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)
commit3239e7bb28a8a4a96c36beeaa6439666e1ed4f8b
tree8aabf74ff627c25960eff06b5e9f9905c832352b
parent08859f159eaf7159a7a680c6151073f4451b222b
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