From: Tariq Toukan <tariqt@nvidia.com>
To: Todd Freed <toddfreed@meta.com>, netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Björn Töpel" <bjorn@kernel.org>,
"Boris Pismenny" <borisp@nvidia.com>,
"Cosmin Ratiu" <cratiu@nvidia.com>,
"Daniel Zahka" <daniel.zahka@gmail.com>,
"David Ahern" <dsahern@kernel.org>,
"Dragos Tatulea" <dtatulea@nvidia.com>,
"Eric Dumazet" <edumazet@kernel.org>,
"Ido Schimmel" <idosch@nvidia.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"John Fastabend" <john.fastabend@gmail.com>,
"Leon Romanovsky" <leon@kernel.org>,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-rdma@vger.kernel.org, "Mark Bloch" <mbloch@nvidia.com>,
"Paolo Abeni" <pabeni@redhat.com>,
"Raed Salem" <raeds@nvidia.com>,
"Rahul Rameshbabu" <rrameshbabu@nvidia.com>,
"Sabrina Dubroca" <sd@queasysnail.net>,
"Saeed Mahameed" <saeedm@nvidia.com>,
"Shuah Khan" <shuah@kernel.org>,
"Simon Horman" <horms@kernel.org>,
"Tariq Toukan" <tariqt@nvidia.com>,
"Wei Wang" <weiwan@google.com>,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH net v7 1/9] net/mlx5e: ring the tx doorbell when an accel offload drops a packet
Date: Wed, 25 Nov 2026 13:16:06 +0200 [thread overview]
Message-ID: <923fa815-b22d-4546-a73b-9bb865beff2e@nvidia.com> (raw)
In-Reply-To: <20261124010601.3995693-2-toddfreed@meta.com>
On 24/11/2026 3:05, Todd Freed wrote:
> When mlx5e_accel_tx_begin() drops the skb, e.g. because PSP can't
> encapsulate it, mlx5e_xmit() returns without posting anything. The skbs
> before it in a bulk dequeue may have been posted with xmit_more, which
> defers the doorbell to the next one, and an MPWQE session may be open.
> The device then doesn't see them until the next transmit on that SQ, and
> since the queue isn't stopped, the TX watchdog doesn't fire.
>
> Flush the SQ on this drop like the DMA error paths do: close the MPWQE
> session, post a NOP and ring the doorbell.
>
> mlx5e_tx_flush() doesn't check whether the NOP leaves less than
> stop_room in the SQ. For the DMA error paths that is rare, but a run of
> offload drops would post NOPs without stopping the queue, and could
> overrun WQEs in flight. So check it in mlx5e_tx_flush(), like the other
> producers do. The completion of the NOP wakes the queue again.
>
> The next patch makes the PSP drop reachable from user space, with an
> IPv6 extension header set on a PSP socket.
>
> Fixes: 2ac9cfe78223 ("net/mlx5e: IPSec, Add Innova IPSec offload TX data path")
> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Todd Freed <toddfreed@meta.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Thanks.
next prev parent reply other threads:[~2026-11-25 11:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 1:05 [PATCH net v7 0/9] psp, tls: don't send offloaded contents in cleartext Todd Freed
2026-11-24 1:05 ` [PATCH net v7 1/9] net/mlx5e: ring the tx doorbell when an accel offload drops a packet Todd Freed
2026-11-25 11:16 ` Tariq Toukan [this message]
2026-11-24 1:05 ` [PATCH net v7 2/9] psp: don't encapsulate ipv6 packets with extension headers Todd Freed
2026-11-24 1:05 ` [PATCH net v7 3/9] net: don't fragment decrypted skbs Todd Freed
2026-11-24 1:05 ` [PATCH net v7 4/9] ipv4: icmp: don't quote decrypted payload in icmp errors Todd Freed
2026-11-24 1:05 ` [PATCH net v7 5/9] ipv6: icmpv6: don't quote decrypted payload in icmpv6 errors Todd Freed
2026-11-24 1:05 ` [PATCH net v7 6/9] ipv6: don't send redirects for decrypted skbs Todd Freed
2026-11-24 1:05 ` [PATCH net v7 7/9] selftests: drv-net: psp: test ipv6 tcp socket with extension headers Todd Freed
2026-11-24 1:06 ` [PATCH net v7 8/9] selftests: drv-net: psp: test that ipv4 psp packets aren't fragmented Todd Freed
2026-11-24 1:06 ` [PATCH net v7 9/9] net/mlx5e: psp: tso: replace only the length in checksum seed Todd Freed
2026-11-24 1:16 ` [PATCH net v7 0/9] psp, tls: don't send offloaded contents in cleartext sashiko-bot
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=923fa815-b22d-4546-a73b-9bb865beff2e@nvidia.com \
--to=tariqt@nvidia.com \
--cc=andrew+netdev@lunn.ch \
--cc=bjorn@kernel.org \
--cc=borisp@nvidia.com \
--cc=cratiu@nvidia.com \
--cc=daniel.zahka@gmail.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=dtatulea@nvidia.com \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=raeds@nvidia.com \
--cc=rrameshbabu@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=sd@queasysnail.net \
--cc=shuah@kernel.org \
--cc=stable@vger.kernel.org \
--cc=toddfreed@meta.com \
--cc=weiwan@google.com \
--cc=willemdebruijn.kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox