From: Cong Wang <xiyou.wangcong@gmail.com>
To: netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, Cong Wang <cong.wang@bytedance.com>
Subject: [Patch bpf-next 0/3] bpf: introduce timeout map
Date: Thu, 10 Dec 2020 16:06:46 -0800 [thread overview]
Message-ID: <20201211000649.236635-1-xiyou.wangcong@gmail.com> (raw)
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
next reply other threads:[~2020-12-11 0:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 0:06 Cong Wang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201211000649.236635-1-xiyou.wangcong@gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=cong.wang@bytedance.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).