nfp: bpf: fix immed relocation for larger offsets
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 8 Feb 2018 04:27:12 +0000 (20:27 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 8 Feb 2018 10:59:50 +0000 (11:59 +0100)
commitb7d99235473ad3a550f8eb05bd4469edadf1c8e6
tree0f897f1ba4aea853430402787fdd0d043f0f30a9
parent035d808f7cfd578dc210b584beb17e365f34d39a
nfp: bpf: fix immed relocation for larger offsets

Immed relocation is missing a shift which means for larger
offsets the lower and higher part of the address would be
ORed together.

Fixes: ce4ebfd859c3 ("nfp: bpf: add helpers for updating immediate instructions")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/nfp_asm.c