Re: [PATCH net-next v2 05/15] xdp: allow attaching programs loaded for specific device

2017-11-12 Thread Daniel Borkmann
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

Re: [PATCH net-next v2 05/15] xdp: allow attaching programs loaded for specific device

2017-11-12 Thread Jiri Pirko
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

[PATCH net-next v2 05/15] xdp: allow attaching programs loaded for specific device

2017-11-03 Thread Jakub Kicinski
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 |