Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Martin Lau
On Wed, Jun 12, 2019 at 12:59:17PM -0700, Stanislav Fomichev wrote: > On 06/12, Martin KaFai Lau wrote: > > This patch adds a test for the new sockopt SO_REUSEPORT_DETACH_BPF. > > > > '-I../../../../usr/include/' is added to the Makefile to get > > the newly added SO_REUSEPORT_DETACH_BPF. > > > >

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Stanislav Fomichev
On 06/12, Martin Lau wrote: > On Wed, Jun 12, 2019 at 12:59:17PM -0700, Stanislav Fomichev wrote: > > On 06/12, Martin KaFai Lau wrote: > > > This patch adds a test for the new sockopt SO_REUSEPORT_DETACH_BPF. > > > > > > '-I../../../../usr/include/' is added to the Makefile to get > > > the newly

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Martin Lau
On Wed, Jun 12, 2019 at 12:59:17PM -0700, Stanislav Fomichev wrote: > On 06/12, Martin KaFai Lau wrote: > > This patch adds a test for the new sockopt SO_REUSEPORT_DETACH_BPF. > > > > '-I../../../../usr/include/' is added to the Makefile to get > > the newly added SO_REUSEPORT_DETACH_BPF. > > > >

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Alexei Starovoitov
On 6/12/19 2:47 PM, Stanislav Fomichev wrote: CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include \ +-I../../../../usr/include/ \ >>> Why not copy inlude/uapi/asm-generic/socket.h into tools/include >>> instead? Will that work? >>

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Martin Lau
On Wed, Jun 12, 2019 at 02:53:35PM -0700, Alexei Starovoitov wrote: > On 6/12/19 2:47 PM, Stanislav Fomichev wrote: > CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$(GENDIR) > $(GENFLAGS) -I../../../include \ > + -I../../../../usr/include/ \ > >>> Why not copy

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Alexei Starovoitov
On 6/12/19 3:15 PM, Martin Lau wrote: > On Wed, Jun 12, 2019 at 02:53:35PM -0700, Alexei Starovoitov wrote: >> On 6/12/19 2:47 PM, Stanislav Fomichev wrote: >> CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$(GENDIR) >> $(GENFLAGS) -I../../../include \ >> + -I../../

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-13 Thread Martin Lau
On Wed, Jun 12, 2019 at 03:25:47PM -0700, Alexei Starovoitov wrote: > On 6/12/19 3:15 PM, Martin Lau wrote: > > On Wed, Jun 12, 2019 at 02:53:35PM -0700, Alexei Starovoitov wrote: > >> On 6/12/19 2:47 PM, Stanislav Fomichev wrote: > >> CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$

Re: [PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-12 Thread Stanislav Fomichev
On 06/12, Martin KaFai Lau wrote: > This patch adds a test for the new sockopt SO_REUSEPORT_DETACH_BPF. > > '-I../../../../usr/include/' is added to the Makefile to get > the newly added SO_REUSEPORT_DETACH_BPF. > > Signed-off-by: Martin KaFai Lau > --- > tools/testing/selftests/bpf/Makefile

[PATCH bpf-next 2/2] bpf: Add test for SO_REUSEPORT_DETACH_BPF

2019-06-12 Thread Martin KaFai Lau
This patch adds a test for the new sockopt SO_REUSEPORT_DETACH_BPF. '-I../../../../usr/include/' is added to the Makefile to get the newly added SO_REUSEPORT_DETACH_BPF. Signed-off-by: Martin KaFai Lau --- tools/testing/selftests/bpf/Makefile | 1 + .../selftests/bpf/test_select_reuse