From: Lorenzo Bianconi <lorenzo@kernel•org>
To: bpf@vger•kernel.org
Cc: netdev@vger•kernel.org, ast@kernel•org, daniel@iogearbox•net,
andrii@kernel•org, davem@davemloft•net, kuba@kernel•org,
edumazet@google•com, pabeni@redhat•com, pablo@netfilter•org,
fw@strlen•de, netfilter-devel@vger•kernel.org,
lorenzo.bianconi@redhat•com, brouer@redhat•com, toke@redhat•com,
memxor@gmail•com
Subject: [PATCH v2 bpf-next 0/4] Introduce bpf_ct_set_nat_info kfunc helper
Date: Mon, 5 Sep 2022 15:14:01 +0200 [thread overview]
Message-ID: <cover.1662383493.git.lorenzo@kernel.org> (raw)
Introduce bpf_ct_set_nat_info kfunc helper in order to set source and
destination nat addresses/ports in a new allocated ct entry not inserted
in the connection tracking table yet.
Introduce support for per-parameter trusted args.
Changes since v1:
- enable CONFIG_NF_NAT in tools/testing/selftests/bpf/config
Kumar Kartikeya Dwivedi (2):
bpf: Add support for per-parameter trusted args
selftests/bpf: Extend KF_TRUSTED_ARGS test for __ref annotation
Lorenzo Bianconi (2):
net: netfilter: add bpf_ct_set_nat_info kfunc helper
selftests/bpf: add tests for bpf_ct_set_nat_info kfunc
Documentation/bpf/kfuncs.rst | 18 +++++++
kernel/bpf/btf.c | 39 ++++++++++-----
net/bpf/test_run.c | 9 +++-
net/netfilter/nf_conntrack_bpf.c | 49 ++++++++++++++++++-
tools/testing/selftests/bpf/config | 1 +
.../testing/selftests/bpf/prog_tests/bpf_nf.c | 2 +
.../testing/selftests/bpf/progs/test_bpf_nf.c | 26 +++++++++-
tools/testing/selftests/bpf/verifier/calls.c | 38 +++++++++++---
8 files changed, 157 insertions(+), 25 deletions(-)
--
2.37.3
next reply other threads:[~2022-09-05 13:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 13:14 Lorenzo Bianconi [this message]
2022-09-05 13:14 ` [PATCH v2 bpf-next 1/4] bpf: Add support for per-parameter trusted args Lorenzo Bianconi
2022-09-06 21:27 ` Song Liu
2022-09-05 13:14 ` [PATCH v2 bpf-next 2/4] selftests/bpf: Extend KF_TRUSTED_ARGS test for __ref annotation Lorenzo Bianconi
2022-09-06 21:30 ` Song Liu
2022-09-05 13:14 ` [PATCH v2 bpf-next 3/4] net: netfilter: add bpf_ct_set_nat_info kfunc helper Lorenzo Bianconi
2022-09-06 21:36 ` Song Liu
2022-09-07 9:01 ` Lorenzo Bianconi
2022-09-07 4:27 ` Alexei Starovoitov
2022-09-07 4:39 ` Kumar Kartikeya Dwivedi
2022-09-07 5:15 ` Alexei Starovoitov
2022-09-07 5:51 ` Kumar Kartikeya Dwivedi
2022-09-07 17:33 ` Alexei Starovoitov
2022-09-07 18:12 ` Kumar Kartikeya Dwivedi
2022-09-05 13:14 ` [PATCH v2 bpf-next 4/4] selftests/bpf: add tests for bpf_ct_set_nat_info kfunc Lorenzo Bianconi
2022-09-06 21:54 ` Song Liu
2022-09-07 10:47 ` Lorenzo Bianconi
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=cover.1662383493.git.lorenzo@kernel.org \
--to=lorenzo@kernel$(echo .)org \
--cc=andrii@kernel$(echo .)org \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=brouer@redhat$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=fw@strlen$(echo .)de \
--cc=kuba@kernel$(echo .)org \
--cc=lorenzo.bianconi@redhat$(echo .)com \
--cc=memxor@gmail$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=netfilter-devel@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=pablo@netfilter$(echo .)org \
--cc=toke@redhat$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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