From: Jakub Sitnicki <jakub@cloudflare.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch,
horms@kernel.org, bpf@vger.kernel.org,
john.fastabend@gmail.com, sd@queasysnail.net
Subject: Re: [PATCH net-next 3/5] selftests/bpf: remove sockmap + ktls tests
Date: Tue, 16 Jun 2026 12:04:19 +0200 [thread overview]
Message-ID: <87ik7iby3g.fsf@cloudflare.com> (raw)
In-Reply-To: <20260614014102.461064-4-kuba@kernel.org> (Jakub Kicinski's message of "Sat, 13 Jun 2026 18:40:58 -0700")
On Sat, Jun 13, 2026 at 06:40 PM -07, Jakub Kicinski wrote:
> The combination of sockmap and TLS is no longer supported - installing
> the TLS ULP on a sockmap socket (and vice versa) is now rejected. Remove
> the tests that exercise the combination along with their BPF program;
> the file covered nothing but sockmap sockets holding kTLS contexts.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> .../selftests/bpf/prog_tests/sockmap_ktls.c | 355 ------------------
> .../selftests/bpf/progs/test_sockmap_ktls.c | 61 ---
> tools/testing/selftests/bpf/test_sockmap.c | 227 +----------
> 3 files changed, 1 insertion(+), 642 deletions(-)
> delete mode 100644 tools/testing/selftests/bpf/progs/test_sockmap_ktls.c
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c b/tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
> index 6ed8e149e3d5..cda6b22cf759 100644
> --- a/tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
> +++ b/tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
[...]
> static void run_ktls_test(int family, int sotype)
> {
> if (test__start_subtest("tls simple offload"))
> test_sockmap_ktls_offload(family, sotype);
Nit: We probably don't need to keep this one test around.
It tests pure kTLS and overlaps with selftests/net/tls.c.
> - if (test__start_subtest("tls tx cork"))
> - test_sockmap_ktls_tx_cork(family, sotype, false);
> - if (test__start_subtest("tls tx cork with push"))
> - test_sockmap_ktls_tx_cork(family, sotype, true);
> - if (test__start_subtest("tls tx egress with no buf"))
> - test_sockmap_ktls_tx_no_buf(family, sotype, true);
> - if (test__start_subtest("tls tx with pop"))
> - test_sockmap_ktls_tx_pop(family, sotype);
> - if (test__start_subtest("tls verdict with tls rx"))
> - test_sockmap_ktls_verdict_with_tls_rx(family, sotype);
> }
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
next prev parent reply other threads:[~2026-06-16 10:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-14 1:40 [PATCH net-next 0/5] tls: reject the combination of TLS and sockmap Jakub Kicinski
2026-06-14 1:40 ` [PATCH net-next 1/5] " Jakub Kicinski
2026-06-14 8:09 ` Paolo Abeni
2026-06-14 19:12 ` Jakub Sitnicki
2026-06-15 18:20 ` Jakub Kicinski
2026-06-15 1:41 ` sashiko-bot
2026-06-15 18:45 ` Jakub Sitnicki
2026-06-15 22:00 ` Sabrina Dubroca
2026-06-14 1:40 ` [PATCH net-next 2/5] tls: remove dead sockmap (psock) handling from the SW path Jakub Kicinski
2026-06-15 14:55 ` Jakub Sitnicki
2026-06-15 22:20 ` Sabrina Dubroca
2026-06-14 1:40 ` [PATCH net-next 3/5] selftests/bpf: remove sockmap + ktls tests Jakub Kicinski
2026-06-16 10:04 ` Jakub Sitnicki [this message]
2026-06-14 1:40 ` [PATCH net-next 4/5] selftests/bpf: drop the unused kTLS program from test_sockmap Jakub Kicinski
2026-06-14 1:41 ` [PATCH net-next 5/5] selftests/bpf: test that TLS crypto is rejected on a sockmap socket Jakub Kicinski
2026-06-16 16:10 ` [PATCH net-next 0/5] tls: reject the combination of TLS and sockmap patchwork-bot+netdevbpf
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=87ik7iby3g.fsf@cloudflare.com \
--to=jakub@cloudflare.com \
--cc=andrew+netdev@lunn.ch \
--cc=bpf@vger.kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
/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