netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/2] Introduce bpf_prog ID and iteration
@ 2017-04-27  6:24 Martin KaFai Lau
  2017-04-27  6:24 ` [RFC net-next 1/2] bpf: Introduce bpf_prog ID Martin KaFai Lau
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Martin KaFai Lau @ 2017-04-27  6:24 UTC (permalink / raw)
  To: netdev
  Cc: Daniel Borkmann, Hannes Frederic Sowa, Alexei Starovoitov,
	kernel-team

This patchset introduces the bpf_prog ID and a new bpf cmd to
iterate all bpf_prog in the system.

It is still incomplete.  The idea can be extended to bpf_map.

Martin KaFai Lau (2):
  bpf: Introduce bpf_prog ID
  bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

 include/linux/filter.h                     |  1 +
 include/uapi/linux/bpf.h                   |  6 ++
 kernel/bpf/syscall.c                       | 47 ++++++++++++++-
 tools/include/uapi/linux/bpf.h             |  6 ++
 tools/lib/bpf/bpf.c                        | 11 ++++
 tools/lib/bpf/bpf.h                        |  1 +
 tools/testing/selftests/bpf/Makefile       |  2 +-
 tools/testing/selftests/bpf/test_prog_id.c | 93 ++++++++++++++++++++++++++++++
 8 files changed, 165 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/test_prog_id.c

-- 
2.9.3

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-05-15 18:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27  6:24 [RFC net-next 0/2] Introduce bpf_prog ID and iteration Martin KaFai Lau
2017-04-27  6:24 ` [RFC net-next 1/2] bpf: Introduce bpf_prog ID Martin KaFai Lau
2017-05-15  8:14   ` [lkp-robot] [bpf] de05014aba: BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h kernel test robot
2017-05-15 18:57     ` David Miller
2017-04-27  6:24 ` [RFC net-next 2/2] bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID Martin KaFai Lau
2017-04-27  7:23   ` Alexander Alemayhu
2017-04-27 21:10     ` Martin KaFai Lau
2017-04-27 13:36 ` [RFC net-next 0/2] Introduce bpf_prog ID and iteration Hannes Frederic Sowa
2017-04-27 21:14   ` Martin KaFai Lau
2017-04-28  1:11   ` prog ID and next steps. Was: " Alexei Starovoitov
2017-04-28 11:50     ` Hannes Frederic Sowa
2017-04-28 18:24       ` Daniel Borkmann
2017-04-28 18:51         ` Hannes Frederic Sowa
2017-04-28 18:57           ` Hannes Frederic Sowa
2017-04-28 19:31       ` Alexei Starovoitov
2017-04-28 21:13         ` Hannes Frederic Sowa
2017-04-30  2:06           ` Alexei Starovoitov
2017-04-30  2:36             ` Hannes Frederic Sowa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).