Home
last modified time | relevance | path

Searched hist:"16 a8cb5cffd0a2929ae97bc258d2d9c92a4e7f6d" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/netdevsim/
H A Dbpf.cdiff 16a8cb5cffd0a2929ae97bc258d2d9c92a4e7f6d Fri Nov 09 07:03:32 CST 2018 Quentin Monnet <quentin.monnet@netronome.com> 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>
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.cdiff 16a8cb5cffd0a2929ae97bc258d2d9c92a4e7f6d Fri Nov 09 07:03:32 CST 2018 Quentin Monnet <quentin.monnet@netronome.com> 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>
/openbmc/linux/kernel/bpf/
H A Doffload.cdiff 16a8cb5cffd0a2929ae97bc258d2d9c92a4e7f6d Fri Nov 09 07:03:32 CST 2018 Quentin Monnet <quentin.monnet@netronome.com> 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>
/openbmc/linux/include/linux/
H A Dbpf.hdiff 16a8cb5cffd0a2929ae97bc258d2d9c92a4e7f6d Fri Nov 09 07:03:32 CST 2018 Quentin Monnet <quentin.monnet@netronome.com> 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>