linux_old1/drivers/net/netdevsim
Quentin Monnet c941ce9c28 bpf: add verifier callback to get stack usage info for offloaded progs
In preparation for BPF-to-BPF calls in offloaded programs, add a new
function attribute to the struct bpf_prog_offload_ops so that drivers
supporting eBPF offload can hook at the end of program verification, and
potentially extract information collected by the verifier.

Implement a minimal callback (returning 0) in the drivers providing the
structs, namely netdevsim and nfp.

This will be useful in the nfp driver, in later commits, to extract the
number of subprograms as well as the stack depth for those subprograms.

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>
2018-10-08 10:24:12 +02:00
..
Makefile netdevsim: add ipsec offload testing 2018-06-28 16:10:08 +09:00
bpf.c bpf: add verifier callback to get stack usage info for offloaded progs 2018-10-08 10:24:12 +02:00
devlink.c netdevsim: don't leak devlink resources 2018-07-25 22:33:39 -07:00
fib.c netdevsim: Add extack error message for devlink reload 2018-06-05 12:32:37 -04:00
ipsec.c netdevsim: fix sa_idx out of bounds check 2018-07-02 20:35:33 +09:00
netdev.c netdevsim: make debug dirs' dentries static 2018-07-26 21:28:54 -07:00
netdevsim.h netdevsim: make debug dirs' dentries static 2018-07-26 21:28:54 -07:00