Re: [PATCH bpf] nfp: bpf: fix check of program max insn count

2018-03-24 Thread Alexei Starovoitov
On Fri, Mar 23, 2018 at 08:00:13PM -0700, Jakub Kicinski wrote: > NFP program allocation length is in bytes and NFP program length > is in instructions, fix the comparison of the two. > > Fixes: 9314c442d7dd ("nfp: bpf: move translation prepare to offload.c") > Signed-off-by: Jakub Kicinski > Rev

[PATCH bpf] nfp: bpf: fix check of program max insn count

2018-03-23 Thread Jakub Kicinski
NFP program allocation length is in bytes and NFP program length is in instructions, fix the comparison of the two. Fixes: 9314c442d7dd ("nfp: bpf: move translation prepare to offload.c") Signed-off-by: Jakub Kicinski Reviewed-by: Jiong Wang --- drivers/net/ethernet/netronome/nfp/bpf/jit.c | 6