]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/hns: Notify ULP of remaining soft-WCs during reset
authorChengchang Tang <tangchengchang@huawei.com>
Sun, 4 Jan 2026 06:40:57 +0000 (14:40 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 4 Jan 2026 15:09:51 +0000 (10:09 -0500)
commit0789f929900d85b80b343c5f04f8b9444e991384
treed3e02d82c54343bfce0b597f528b3218bb6a4710
parent84bd5d60f0a2b9c763c5e6d0b3d8f4f61f6c5470
RDMA/hns: Notify ULP of remaining soft-WCs during reset

During a reset, software-generated WCs cannot be reported via
interrupts. This may cause the ULP to miss some WCs.

To avoid this, add check in the CQ arm process: if a hardware reset
has occurred and there are still unreported soft-WCs, notify the ULP
to handle the remaining WCs, thereby preventing any loss of completions.

Fixes: 626903e9355b ("RDMA/hns: Add support for reporting wc as software mode")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20260104064057.1582216-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c