]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'device-ops-as-cb'
authorAlexei Starovoitov <ast@kernel.org>
Sat, 10 Nov 2018 23:39:54 +0000 (15:39 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 10 Nov 2018 23:39:55 +0000 (15:39 -0800)
commite89ad5bb5f97790362dfdf60bb73c6e09f0906ea
tree76ea924a47f2bb58bb2caf5d5ae5464b7dbbab55
parent46eb66874b0b8eee59085918937fb3a6e5ac11e0
parentbb56d0f177c5f0f621873e80ae848508f707150c
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>