summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-10-06 13:58:20 +0300
committerJakub Kicinski <kuba@kernel.org>2026-10-08 10:44:21 -0700
commitb056ca4d3742d0769f91137bb1ce3215428398f7 (patch)
tree9c0c42b1bbfa6218f34ee241a308774b4b4f1893 /tools/lib/python
parent726be6a0e81ac603b34a5953623bb39c86cf495a (diff)
downloadlinux-next-b056ca4d3742d0769f91137bb1ce3215428398f7.tar.gz
linux-next-b056ca4d3742d0769f91137bb1ce3215428398f7.zip
net/mlx5e: Order ICOSQ cc update after CQ doorbell
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. Fixes: fd9b4be8002c ("net/mlx5e: RX, Support multiple outstanding UMR posts") Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/20261006105820.257208-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions