From: Shmulik Ladkani <shmulik@metanetworks.com>
To: bpf@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
John Fastabend <john.fastabend@gmail.com>
Cc: Andrii Nakryiko <andrii@kernel.org>,
Paul Chaignon <paul@isovalent.com>,
Shmulik Ladkani <shmulik.ladkani@gmail.com>
Subject: [PATCH v4 bpf-next 0/4] bpf: Support setting variable-length tunnel options
Date: Tue, 23 Aug 2022 16:30:16 +0300 [thread overview]
Message-ID: <20220823133020.73872-1-shmulik.ladkani@gmail.com> (raw)
Introduce 'skb_set_tunnel_opt_dynptr' to allow setting tunnel options of
dynamic length.
v2:
- Place test_tunnel's local route in a custom table, to ensure the IP
isn't considered assigned to a device.
v3:
- Avoid 'inline' for the __bpf_skb_set_tunopt helper function
v4:
- change API to be based on bpf_dynptr,
suggested by John Fastabend <john.fastabend@gmail.com>
Shmulik Ladkani (4):
bpf: Add 'bpf_dynptr_get_data' helper
bpf: Support setting variable-length tunnel options
selftests/bpf: Simplify test_tunnel setup for allowing non-local
tunnel traffic
selftests/bpf: Add geneve with bpf_skb_set_tunnel_opt_dynptr test-case
to test_progs
include/linux/bpf.h | 1 +
include/uapi/linux/bpf.h | 12 ++
kernel/bpf/helpers.c | 10 +
net/core/filter.c | 36 +++-
tools/include/uapi/linux/bpf.h | 12 ++
.../selftests/bpf/prog_tests/test_tunnel.c | 131 ++++++++++--
.../selftests/bpf/progs/test_tunnel_kern.c | 200 ++++++++++++------
7 files changed, 322 insertions(+), 80 deletions(-)
--
2.37.2
next reply other threads:[~2022-08-23 17:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 13:30 Shmulik Ladkani [this message]
2022-08-23 13:30 ` [PATCH v4 bpf-next 1/4] bpf: Add 'bpf_dynptr_get_data' helper Shmulik Ladkani
2022-08-23 19:11 ` Joanne Koong
2022-08-24 4:07 ` Shmulik Ladkani
2022-08-23 13:30 ` [PATCH v4 bpf-next 2/4] bpf: Support setting variable-length tunnel options Shmulik Ladkani
2022-08-23 13:30 ` [PATCH v4 bpf-next 3/4] selftests/bpf: Simplify test_tunnel setup for allowing non-local tunnel traffic Shmulik Ladkani
2022-08-23 13:30 ` [PATCH v4 bpf-next 4/4] selftests/bpf: Add geneve with bpf_skb_set_tunnel_opt_dynptr test-case to test_progs Shmulik Ladkani
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=20220823133020.73872-1-shmulik.ladkani@gmail.com \
--to=shmulik@metanetworks.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=john.fastabend@gmail.com \
--cc=paul@isovalent.com \
--cc=shmulik.ladkani@gmail.com \
/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.