diff options
| author | 2018-07-17 10:53:26 -0700 | |
|---|---|---|
| committer | 2018-07-18 15:10:34 +0200 | |
| commit | fd4f227dea0f24d89f52f7c4eb3207f84ddcbcbd (patch) | |
| tree | 0d9069be10b5d73982775098eb798f8379633e22 /drivers/net/netdevsim/bpf.c | |
| parent | bpf: offload: keep the offload state per-ASIC (diff) | |
| download | linux-dev-fd4f227dea0f24d89f52f7c4eb3207f84ddcbcbd.tar.xz linux-dev-fd4f227dea0f24d89f52f7c4eb3207f84ddcbcbd.zip | |
bpf: offload: allow program and map sharing per-ASIC
Allow programs and maps to be re-used across different netdevs,
as long as they belong to the same struct bpf_offload_dev.
Update the bpf_offload_prog_map_match() helper for the verifier
and export a new helper for the drivers to use when checking
programs at attachment time.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/net/netdevsim/bpf.c')
0 files changed, 0 insertions, 0 deletions
