netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map
@ 2018-01-18 23:08 Yonghong Song
  2018-01-18 23:08 ` [PATCH bpf-next 1/2] " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Yonghong Song @ 2018-01-18 23:08 UTC (permalink / raw)
  To: ast, daniel, netdev; +Cc: kernel-team

This patch set implements MAP_GET_NEXT_KEY command for LPM_TRIE map.
This command is really useful for key enumeration, and for key deletion
if what keys in the trie are unknown.

Patch #1 implements the functionality in the kernel and patch #2
adds a test case in tools/testing/selftests/bpf.

Yonghong Song (2):
  bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map
  tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of LPM_TRIE map

 kernel/bpf/lpm_trie.c                      |  95 +++++++++++++++++++++-
 tools/testing/selftests/bpf/test_lpm_map.c | 122 +++++++++++++++++++++++++++++
 2 files changed, 215 insertions(+), 2 deletions(-)

-- 
2.9.5

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

end of thread, other threads:[~2018-01-26 16:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-18 23:08 [PATCH bpf-next 0/2] bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map Yonghong Song
2018-01-18 23:08 ` [PATCH bpf-next 1/2] " Yonghong Song
2018-01-22 19:28   ` Eric Dumazet
2018-01-23  0:05     ` Yonghong Song
2018-01-26  4:47   ` Eric Dumazet
2018-01-26 16:50     ` Yonghong Song
2018-01-18 23:08 ` [PATCH bpf-next 2/2] tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of " Yonghong Song
2018-01-20  1:07 ` [PATCH bpf-next 0/2] bpf: implement MAP_GET_NEXT_KEY command for " Daniel Borkmann

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).