netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tariq Toukan <tariqt@nvidia.com>
To: Rishikesh Jethwani <rjethwani@everpuredata.com>,
	Tariq Toukan <tariqt@nvidia.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>,
	Mark Bloch <mbloch@nvidia.com>, Gal Pressman <gal@nvidia.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Boris Pismenny <borisp@nvidia.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	John Fastabend <john.fastabend@gmail.com>,
	netdev@vger.kernel.org
Subject: Re: Question: net/mlx5e kTLS TX TIS reuse vs in-flight WQEs
Date: Tue, 10 Nov 2026 16:45:30 +0200	[thread overview]
Message-ID: <4271b227-a36d-4856-a297-b1fa678eb187@nvidia.com> (raw)
In-Reply-To: <CAKaoeS2YkHyrLHwbF0SAE7UtmhknmKEy+16VedDNLt5AMwthZg@mail.gmail.com>


On 10/11/2026 1:21, Rishikesh Jethwani wrote:
 > Thanks. I've now reviewed the seven-patch RFC [1]. The held-skb,
 > full-resync and pass-through changes cover the points I raised. I've
 > replied on patches 7 and 4 with two remaining holes in the one-SQ
 > guarantee: the selection-time ownership transfer, and the PTP SQs in
 > the drain.

Thanks for the review. Agreed on both, replied there.

 > The DEK question is still open: once all old-key WQEs have retired, may
 > the old DEK be destroyed or returned for reuse while an idle TIS still
 > names it? This needs to cover both standalone DEKs and pooled IDs reused
 > by another connection. A flushed replacement need not have installed
 > the new key, and deletion can return the still-bound TIS to its pool.
 > The resync fix restores the context on its next use, but does not by
 > itself establish that releasing the old DEK before then is safe.
 >
 > Please keep that HW/FW answer explicit. Until it is settled, I cannot
 > treat a flush/close alone as sufficient to release a still-named DEK;
 > the conservative alternative is to retain the possible bindings until
 > a successful replacement or TIS destruction, including through pooling.

Double checking. Will update.

 > Agreed. I'll replace v18's live TX del+add with the new callback and
 > implement mlx5e_ktls_rekey_tx() on the revised fixes.

Sounds good.

 > The delayed decrypted-clone case remains a separate core follow-up.

[...]

 > I'll Cc you when I post it.

Thanks, please do.

 > I do need patch 7, with the selection-time fix from my reply to it, as
 > a rekey dependency. Patches 1-6 alone do not cover egress skbedit or a
 > cached queue overwritten by another device on the route. A fenced
 > replacement on SQ B cannot order itself against old-key WQEs still on
 > SQ A. Keeping patch 7 in net-next is fine; I'll base rekey on it as
 > well as the net fixes.

Right, I missed those cases. Rekey depends on patch 7 too, and v2 of
the RFC will carry the selection-time fix.

Thanks,
Tariq

      reply	other threads:[~2026-11-10 14:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22 18:17 Question: net/mlx5e kTLS TX TIS reuse vs in-flight WQEs Rishikesh Jethwani
2026-11-03 14:45 ` Tariq Toukan
2026-11-04  5:01   ` Rishikesh Jethwani
2026-11-05  9:25     ` Tariq Toukan
2026-11-06 19:58       ` Rishikesh Jethwani
2026-11-08 19:45         ` Tariq Toukan
2026-11-09  9:21           ` Tariq Toukan
2026-11-09 23:21           ` Rishikesh Jethwani
2026-11-10 14:45             ` Tariq Toukan [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=4271b227-a36d-4856-a297-b1fa678eb187@nvidia.com \
    --to=tariqt@nvidia.com \
    --cc=borisp@nvidia.com \
    --cc=gal@nvidia.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=rjethwani@everpuredata.com \
    --cc=saeedm@nvidia.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;
as well as URLs for NNTP newsgroup(s).