[PATCH v2] net/mlx5: fix spurious CPU wakeups caused by invalid CQE

Dariusz Sosnowski dsosnowski at nvidia.com
Fri Nov 14 14:07:56 CET 2025


On Tue, Nov 11, 2025 at 03:40:57AM +0000, Sivaprasad Tummala wrote:
> Previously, the PMD used a common monitor callback to determine
> CQE ownership for power-aware polling. However, when a CQE contained
> an invalid opcode(MLX5_CQE_INVALID), ownership bit was not reliable.
> As a result, the monitor condition could falsely indicate CQE
> availability and cause the CPU to wake up unnecessarily during
> low traffic periods.
> 
> This resulted in spurious wakeups in monitor-wait mode and reduced
> the expected power savings, as cores exited the sleep state even
> when no valid CQEs were available.
> 
> This patch introduces a dedicated callback that skips invalid CQEs
> and optimizes power efficiency by preventing false wakeups caused
> by hardware-owned or invalid entries.
> 
> Fixes: a8f0df6bf98d ("net/mlx5: support power monitoring")
> Cc: akozyrev at nvidia.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala at amd.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Thank you for the contribution.

Best regards,
Dariusz Sosnowski


More information about the dev mailing list