diff options
author | Alexei Starovoitov <ast@kernel.org> | 2018-11-10 15:39:54 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-10 15:39:55 -0800 |
commit | 0157edc859afa96af5eefb306dde3b5fa6eddcf0 (patch) | |
tree | 76ea924a47f2bb58bb2caf5d5ae5464b7dbbab55 /scripts | |
parent | bpf: Extend the sk_lookup() helper to XDP hookpoint. (diff) | |
parent | bpf: do not pass netdev to translate() and prepare() offload callbacks (diff) | |
download | linux-dev-0157edc859afa96af5eefb306dde3b5fa6eddcf0.tar.xz linux-dev-0157edc859afa96af5eefb306dde3b5fa6eddcf0.zip |
Merge branch 'device-ops-as-cb'
Quentin Monnet says:
====================
For passing device functions for offloaded eBPF programs, there used to
be no place where to store the pointer without making the non-offloaded
programs pay a memory price.
As a consequence, three functions were called with ndo_bpf() through
specific commands. Now that we have struct bpf_offload_dev, and since none
of those operations rely on RTNL, we can turn these three commands into
hooks inside the struct bpf_prog_offload_ops, and pass them as part of
bpf_offload_dev_create().
This patch set changes the offload architecture to do so, and brings the
relevant changes to the nfp and netdevsim drivers.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions