summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-10-17 01:19:10 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-10-17 01:23:58 +0300
commit44b6fed0c16ea0057292d57c381a31e8986fa7a7 (patch)
tree84a63bce9d9e3affca45063d33dba59d3deb3ecc /tools/bpf/bpftool/prog.c
parent527db74b71ee5a279f818aae51f2c26b4e5c7648 (diff)
downloadlinux-44b6fed0c16ea0057292d57c381a31e8986fa7a7.tar.xz
nfp: bpf: double check vNIC capabilities after object sharing
Program translation stage checks that program can be offloaded to the netdev which was passed during the load (bpf_attr->prog_ifindex). After program sharing was introduced, however, the netdev on which program is loaded can theoretically be different, and therefore we should recheck the program size and max stack size at load time. This was found by code inspection, AFAIK today all vNICs have identical caps. 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>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions