summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/amd/7990.h
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2018-10-07 12:56:49 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2018-10-08 10:24:12 +0200
commitc5da54d93eb43461a5b79e1fdad8409abad83a77 (patch)
tree5ef452ec5ae10b8a364c41eb1c89d7cb91b91005 /drivers/net/ethernet/amd/7990.h
parent1a7e62e6329c210ff67c5706fbe91187f2452baf (diff)
nfp: bpf: copy eBPF subprograms information from kernel verifier
In order to support BPF-to-BPF calls in offloaded programs, the nfp driver must collect information about the distinct subprograms: namely, the number of subprograms composing the complete program and the stack depth of those subprograms. The latter in particular is non-trivial to collect, so we copy those elements from the kernel verifier via the newly added post-verification hook. The struct nfp_prog is extended to store this information. Stack depths are stored in an array of dedicated structs. Subprogram start indexes are not collected. Instead, meta instructions associated to the start of a subprogram will be marked with a flag in a later patch. Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com> Reviewed-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/net/ethernet/amd/7990.h')
0 files changed, 0 insertions, 0 deletions