Re: [RFC net-next 2/2] bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

2017-04-27 Thread Martin KaFai Lau
On Thu, Apr 27, 2017 at 09:23:18AM +0200, Alexander Alemayhu wrote: > On Wed, Apr 26, 2017 at 11:24:49PM -0700, Martin KaFai Lau wrote: > > Add test to exercise the bpf_prog id generation > > and iteration. > > > Could test_prog_id be a function in tools/testing/selftests/bpf/test_progs.c > instead

Re: [RFC net-next 2/2] bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

2017-04-27 Thread Alexander Alemayhu
On Wed, Apr 26, 2017 at 11:24:49PM -0700, Martin KaFai Lau wrote: > Add test to exercise the bpf_prog id generation > and iteration. > Could test_prog_id be a function in tools/testing/selftests/bpf/test_progs.c instead? bpf_prog_load is already available there. -- Mit freundlichen Grüßen Alexa

[RFC net-next 2/2] bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

2017-04-26 Thread Martin KaFai Lau
Add test to exercise the bpf_prog id generation and iteration. Signed-off-by: Martin KaFai Lau --- tools/include/uapi/linux/bpf.h | 6 ++ tools/lib/bpf/bpf.c| 11 tools/lib/bpf/bpf.h| 1 + tools/testing/selftests/bpf/Makefile