diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-07-17 19:53:25 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-18 15:10:34 +0200 |
commit | 602144c224604f1cbff02ee2d1cf46825269ecbd (patch) | |
tree | 8de28d85871da8fd3d49865568fccfca8ab2cbd0 /net/dccp | |
parent | bpf: offload: aggregate offloads per-device (diff) | |
download | linux-602144c224604f1cbff02ee2d1cf46825269ecbd.tar.xz linux-602144c224604f1cbff02ee2d1cf46825269ecbd.zip |
bpf: offload: keep the offload state per-ASIC
Create a higher-level entity to represent a device/ASIC to allow
programs and maps to be shared between device ports. The extra
work is required to make sure we don't destroy BPF objects as
soon as the netdev for which they were loaded gets destroyed,
as other ports may still be using them. When netdev goes away
all of its BPF objects will be moved to other netdevs of the
device, and only destroyed when last netdev is unregistered.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions