diff options
| author | Quentin Monnet <[email protected]> | 2018-11-09 13:03:26 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2018-11-10 15:39:53 -0800 |
| commit | 341b3e7b7b89315c43d262da3199098bcf9bbe57 (patch) | |
| tree | d87fa4086f2f087e3be63b7a0e6533961432fae6 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 1385d755cfb42f596ef1cf9f5c761010ff3b34e7 (diff) | |
bpf: call verify_insn from its callback in struct bpf_offload_dev
We intend to remove the dev_ops in struct bpf_prog_offload, and to only
keep the ops in struct bpf_offload_dev instead, which is accessible from
more locations for passing function pointers.
But dev_ops is used for calling the verify_insn hook. Switch to the
newly added ops in struct bpf_prog_offload instead.
To avoid table lookups for each eBPF instruction to verify, we remember
the offdev attached to a netdev and modify bpf_offload_find_netdev() to
avoid performing more than once a lookup for a given offload object.
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions