nfp: bpf: fix check of program max insn count
authorJakub Kicinski <[email protected]>
Sat, 24 Mar 2018 03:00:13 +0000 (20:00 -0700)
committerAlexei Starovoitov <[email protected]>
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 <[email protected]>
Reviewed-by: Jiong Wang <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
drivers/net/ethernet/netronome/nfp/bpf/jit.c