]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0722540a88bf36a6494be08b22ee87726973cb0a
treeccd1d428ff372ff42d8abf3a53d24a6e6b6b37e4
parent1725da33ea856d8550da3f302f42df81fa12e8e4
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: fa29d49064c7 ("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