Skip to content

bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map

Yonghong Song netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE mapkernel/bpf/lpm_trie.c+93 -24 replies
2/2tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of LPM_TRIE maptools/testing/selftests/bpf/test_lpm_map.c+122 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map

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(-)
Signature · 1 line
2.9.5