nfp: bpf: fix check of program max insn count
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 24 Mar 2018 03:00:13 +0000 (20:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 24 Mar 2018 17:41:24 +0000 (10:41 -0700)
commite8a4796ee2954db9f7e9b52e5fbc66ef876752f6
treeccd1d428ff372ff42d8abf3a53d24a6e6b6b37e4
parent4b6eca9d6817e58ae9b3342a5974e8fd9285279e
nfp: bpf: fix check of program max insn count

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 <jakub.kicinski@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/netronome/nfp/bpf/jit.c