From: Jakub Kicinski Date: Wed, 28 Sep 2016 22:47:37 +0000 (+0100) Subject: nfp: bpf: zero extend 4 byte context loads X-Git-Tag: v4.14-rc1~2374^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cd80b55471515e0102760b59034ded000c35a09;p=platform%2Fkernel%2Flinux-rpi.git nfp: bpf: zero extend 4 byte context loads Set upper 32 bits of destination register to zeros after load from the context structure. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c b/drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c index 3de819a..f8df530 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c @@ -1134,6 +1134,8 @@ static int mem_ldx4(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) else return -ENOTSUPP; + wrp_immed(nfp_prog, reg_both(meta->insn.dst_reg * 2 + 1), 0); + return 0; }