From: Jakub Sitnicki <jakub@cloudflare.com>
To: lsf-pc@lists.linux-foundation.org
Cc: Lorenz Bauer <lmb@cloudflare.com>, bpf <bpf@vger.kernel.org>
Subject: Extending sockmap and future of L7 BPF framework
Date: Thu, 13 Feb 2020 10:12:26 +0000 [thread overview]
Message-ID: <878sl6aj91.fsf@cloudflare.com> (raw)
Extending sockmap and future of L7 BPF framework
================================================
At Plumbers ‘19 we presented our plan to make socket dispatch
programmable using BPF [0]. A key component is the ability to look up
sockets from a map. Our proof-of-concept patch-set used the sockarray
map designed for reuseport BPF programs. Based on feedback from the
community we’re doing work to transition to sockmap and sockhash.
Specifically, we are adding support for TCP sockets in TCP_LISTEN state
and UDP sockets in general. Additionally, we’ll let the reuseport BPF
use sockmap and sockhash in addition to sockarray.
We propose giving an overview of this work, and the user-space and BPF
API changes it entails. This work brings up questions revolving around
the future of L7 BPF frameworks and how it should evolve that we would
like to discuss:
- Should sockmap be extended further to hold sockets in any state?
Would this make the user-experience better?
- How to make sockmap and sockarray gracefully share sk_user_data,
i.e. the link from the sock object to the map?
- Is there a potential for code sharing between sockmap and sockarray?
Would that make maintenance easier?
- How should API redirecting to UDP sockets with sockmap look like,
considering use of connected UDP sockets is not recommended?
- Can we have a common helper for map-based redirect that works with all
map types that can hold sockets, i.e. sockmap, sockhash, and
sockarray?
[0] https://www.youtube.com/watch?v=qRDoUpqvYjY
reply other threads:[~2020-02-13 10:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=878sl6aj91.fsf@cloudflare.com \
--to=jakub@cloudflare.com \
--cc=bpf@vger.kernel.org \
--cc=lmb@cloudflare.com \
--cc=lsf-pc@lists.linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.