diff options
| author | Konstantin Taranov <kotaranov@microsoft.com> | 2026-09-23 06:11:54 -0700 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-28 15:13:27 -0400 |
| commit | 9d3fccc58efe4a868474d6356db3fec80159dad7 (patch) | |
| tree | e7b5dbda0ea53dc7d2f3eff0d05697477608e487 /tools/lib/python | |
| parent | 387c51aa0ee0aeeac4571d11aca759fa74dd3ed2 (diff) | |
RDMA/mana_ib: Make kernel CQ arming robust
Track CQ polling credits and ring the doorbell promptly to advance the
hardware CQ tail pointer. The distance between the new and previously
armed tails must remain below four times the CQ length.
Expose CQ arming to mana_ib through mana_gd_wq_ring_doorbell_ext().
RC QPs will also use this helper to ring special doorbell offsets.
MANA hardware ignores duplicate doorbells. Calculate the arming offset
from the previously armed offset and poll_credit to avoid duplicates.
Do not arm the CQ if no CQE was produced, because the CQ remains armed.
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://patch.msgid.link/20260923131155.4055875-5-kotaranov@linux.microsoft.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
