commit | e2fc61146aa6dea81f3231530c130be72af05c5a | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Tue Jan 22 22:45:27 2019 -0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Wed Jan 23 17:35:32 2019 -0800 |
tree | cdfd74460761b1938afbf88ddc817b3240571e44 | |
parent | 91a87a5823f798f1c7b26783e0d2c6d22a1dc28c [diff] |
nfp: bpf: save original program length Instead of passing env->prog->len around, and trying to adjust for optimized out instructions just save the initial number of instructions in struct nfp_prog. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>