Re: [PATCH net-next 4/5] net/mlx4: track whether a TX doorbell is pending

From: Daniel Machon

Date: Thu Nov 12 2026 - 08:51:04 EST


> When the stack sets xmit_more, mlx4_en_xmit() skips the doorbell and
> relies on a later call in the same batch to write it. Nothing records
> that a doorbell is owed, so a path that ends the batch without writing
> the doorbell leaves the WQEs posted before it unannounced to HW.
>
> Add ring->doorbell_pending, set when the doorbell is deferred and
> cleared whenever a doorbell or a BlueFlame write is issued, so such a
> path can flush the deferred doorbell.
>
> Signed-off-by: Joe Damato <joe@xxxxxxx>

Reviewed-by: Daniel Machon <daniel.machon@xxxxxxxxxxxxx>