Re: [PATCH net v6 1/8] net/mlx5e: ring the tx doorbell when an accel offload drops a packet

From: Dragos Tatulea

Date: Wed Nov 18 2026 - 09:09:22 EST


On 17.11.26 21:31, 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")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Todd Freed <toddfreed@xxxxxxxx>

LGTM. Couldn't find any side effects besides the additonal NOP + db
dance which is ok.

Reviewed-by: Dragos Tatulea <dtatulea@xxxxxxxxxx>

Thanks,
Dragos