linux/drivers/net/netdevsim
Quentin Monnet 16a8cb5cff bpf: do not pass netdev to translate() and prepare() offload callbacks
The kernel functions to prepare verifier and translate for offloaded
program retrieve "offload" from "prog", and "netdev" from "offload".
Then both "prog" and "netdev" are passed to the callbacks.

Simplify this by letting the drivers retrieve the net device themselves
from the offload object attached to prog - if they need it at all. There
is currently no need to pass the netdev as an argument to those
functions.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-11-10 15:39:54 -08:00
..
bpf.c bpf: do not pass netdev to translate() and prepare() offload callbacks 2018-11-10 15:39:54 -08:00
devlink.c netdevsim: don't leak devlink resources 2018-07-25 22:33:39 -07:00
fib.c netdevsim: Add extack error message for devlink reload 2018-06-05 12:32:37 -04:00
ipsec.c netdevsim: fix sa_idx out of bounds check 2018-07-02 20:35:33 +09:00
Makefile netdevsim: add ipsec offload testing 2018-06-28 16:10:08 +09:00
netdev.c netdevsim: make debug dirs' dentries static 2018-07-26 21:28:54 -07:00
netdevsim.h netdevsim: make debug dirs' dentries static 2018-07-26 21:28:54 -07:00