On 11/12/2017 10:00 AM, Jiri Pirko wrote:
Fri, Nov 03, 2017 at 09:56:20PM CET, jakub.kicin...@netronome.com wrote:
Pass the netdev pointer to bpf_prog_get_type(). This way
BPF code can decide whether the device matches what the
code was loaded/translated for.
[...]
diff --git a/kernel/bpf/s
Fri, Nov 03, 2017 at 09:56:20PM CET, jakub.kicin...@netronome.com wrote:
>Pass the netdev pointer to bpf_prog_get_type(). This way
>BPF code can decide whether the device matches what the
>code was loaded/translated for.
>
[...]
>diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
>index 3
Pass the netdev pointer to bpf_prog_get_type(). This way
BPF code can decide whether the device matches what the
code was loaded/translated for.
Signed-off-by: Jakub Kicinski
Reviewed-by: Simon Horman
Reviewed-by: Quentin Monnet
---
include/linux/bpf.h | 10 ++
kernel/bpf/syscall.c |