mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Jiayuan Chen <jiayuan.chen@linux.dev>, netdev@vger.kernel.org
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Shuah Khan <shuah@kernel.org>,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v3 0/2] netdevsim: add TLS device offload emulation and test
Date: Wed, 25 Nov 2026 15:53:57 +0100	[thread overview]
Message-ID: <31551b64-3286-4f75-8b6c-b18e42286545@redhat.com> (raw)
In-Reply-To: <20261119064902.242502-1-jiayuan.chen@linux.dev>

On 11/19/26 07:48, Jiayuan Chen wrote:
> Running kTLS over this already found a few bugs:
> 
>    b17cf742eaad ("tls: device: fix out-of-bounds write in tls_append_frag()")
>    ed642349d87d ("tls: fix the open record check in the max payload size setsockopt")
> 
> So I think it is worth sending a formal patchset.  v1 [1] was asked to
> wait for a selftest that can also run against real hardware.  That test,
> drivers/net/hw/tls_hw_offload.py, is in the tree now, so this can move
> forward.
> 
> The kTLS device offload path in net/tls/tls_device.c has no test
> coverage upstream -- selftests/net/tls.c is software only, and the
> offload code needs a driver that implements it.
> 
> So teach netdevsim to fake it.  Patch 1 implements tlsdev_ops and
> advertises the TLS features.  Patch 2 lets the existing hardware offload
> test, drivers/net/hw/tls_hw_offload.py, run on netdevsim as well, so the
> same test covers real devices and the netdevsim pair CI already uses.
> 
> No crypto is done, like the IPsec, MACsec and PSP emulation netdevsim
> already has: TX puts the plaintext record on the wire.  That only works
> with netdevsim on both ends and offload on in both directions, which is
> what the netdevsim environment of the drivers/net tests gives.  It still
> covers record assembly and the offload lifecycle.
> 
> [1] https://lore.kernel.org/netdev/20260901154914.11637-3-jiayuan.chen@linux.dev/
> 
> v2 -> v3:
>    - fix the build with CONFIG_IPV6=n (kernel test robot)
>    - address some of the issues Sashiko reported
> v2: https://lore.kernel.org/netdev/20261117140642.4008-1-jiayuan.chen@linux.dev/
> v1 -> v2:
>    - drop the netdevsim-only selftest, run the upstream tls_hw_offload.py
>      on netdevsim instead so the test also covers real hardware (Jakub)
>    - rebase on net-next
> v1: https://lore.kernel.org/netdev/20260901154914.11637-1-jiayuan.chen@linux.dev/
> RFC (July): https://lore.kernel.org/netdev/20260728125658.390500-1-jiayuan.chen@linux.dev/
Applied, thanks!

Paolo


      parent reply	other threads:[~2026-11-25 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  6:48 Jiayuan Chen
2026-11-19  6:48 ` [PATCH net-next v3 1/2] netdevsim: add TLS device offload emulation Jiayuan Chen
2026-11-20  6:51   ` netdev-bot+sashiko
2026-11-19  6:48 ` [PATCH net-next v3 2/2] selftests: drv-net: run tls_hw_offload on netdevsim Jiayuan Chen
2026-11-20  6:51   ` netdev-bot+sashiko
2026-11-25 14:53 ` Paolo Abeni [this message]

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=31551b64-3286-4f75-8b6c-b18e42286545@redhat.com \
    --to=pabeni@redhat.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=jiayuan.chen@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sd@queasysnail.net \
    --cc=shuah@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

all inboxes | Powered by JetHome®