bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch bpf-next 0/3] bpf: introduce timeout map
@ 2020-12-11  0:06 Cong Wang
  2020-12-11  0:06 ` [Patch bpf-next 1/3] bpf: use index instead of hash for map_locked[] Cong Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Cong Wang @ 2020-12-11  0:06 UTC (permalink / raw)
  To: netdev; +Cc: bpf, Cong Wang

From: Cong Wang <cong.wang@bytedance.com>

This patchset introduces a new bpf hash map which has timeout.
Patch 1 is a preparation, patch 2 is the implementation of timeout
map, patch 3 contains a test case for timeout map. Please check each
patch description for more details.

---
Cong Wang (3):
  bpf: use index instead of hash for map_locked[]
  bpf: introduce timeout map
  tools: add a test case for bpf timeout map

 include/linux/bpf_types.h               |   1 +
 include/uapi/linux/bpf.h                |   3 +-
 kernel/bpf/hashtab.c                    | 296 +++++++++++++++++++++---
 kernel/bpf/syscall.c                    |   3 +-
 tools/include/uapi/linux/bpf.h          |   1 +
 tools/testing/selftests/bpf/test_maps.c |  41 ++++
 6 files changed, 314 insertions(+), 31 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-12-14 18:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-11  0:06 [Patch bpf-next 0/3] bpf: introduce timeout map Cong Wang
2020-12-11  0:06 ` [Patch bpf-next 1/3] bpf: use index instead of hash for map_locked[] Cong Wang
2020-12-11  0:06 ` [Patch bpf-next 2/3] bpf: introduce timeout map Cong Wang
2020-12-11  0:06 ` [Patch bpf-next 3/3] tools: add a test case for bpf " Cong Wang
2020-12-11 19:55 ` [Patch bpf-next 0/3] bpf: introduce " Andrii Nakryiko
2020-12-12 22:25   ` Cong Wang
2020-12-12 23:18     ` Cong Wang
2020-12-14  1:33       ` Andrey Ignatov
2020-12-14 18:40         ` Cong Wang

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