Re: [PATCH bpf-next] bpf: fix build without CONFIG_NET when using BPF XDP link

2020-07-28 Thread Daniel Borkmann
On 7/28/20 9:05 PM, Andrii Nakryiko wrote: Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h just assumes that it's always there, so the easiest way to fix this is to conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c. Reported-by: Randy Dunlap Fixes

Re: [PATCH bpf-next] bpf: fix build without CONFIG_NET when using BPF XDP link

2020-07-28 Thread Song Liu
On Tue, Jul 28, 2020 at 1:08 PM Randy Dunlap wrote: > > On 7/28/20 12:05 PM, Andrii Nakryiko wrote: > > Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h > > just assumes that it's always there, so the easiest way to fix this is to > > conditionally compile out bpf_xdp_l

Re: [PATCH bpf-next] bpf: fix build without CONFIG_NET when using BPF XDP link

2020-07-28 Thread Randy Dunlap
On 7/28/20 12:05 PM, Andrii Nakryiko wrote: > Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h > just assumes that it's always there, so the easiest way to fix this is to > conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c. > > Reported-by: Randy Dunl

[PATCH bpf-next] bpf: fix build without CONFIG_NET when using BPF XDP link

2020-07-28 Thread Andrii Nakryiko
Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h just assumes that it's always there, so the easiest way to fix this is to conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c. Reported-by: Randy Dunlap Fixes: aa8d3a716b59 ("bpf, xdp: Add bpf_link-based