Thread (4 messages) 4 messages, 4 authors, 6d ago

Re: [PATCH net V2] net/mlx5e: Order ICOSQ cc update after CQ doorbell

flat view

From: Daniel Machon <daniel.machon@microchip.com>
Date: 2026-10-07 18:40:17
Also in: linux-rdma, lkml

From: Li RongQing <redacted>

mlx5e_poll_ico_cq() requires sq->cc to be updated only after
mlx5_cqwq_update_db_record(), otherwise a CQ overrun may occur.

The current implementation updates sq->cc before the CQ doorbell
record, violating this ordering requirement.

Update the CQ doorbell record first and use dma_wmb() before updating
sq->cc. This ensures that the CQ space is released to the device
before the corresponding ICOSQ consumer index is updated by software.
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help