Skip to content

Commit 9bed8a7

Browse files
Yixing Liujgunthorpe
authored andcommitted
RDMA/hns: Fix incorrect lsn field
In RNR NAK screnario, according to the specification, when no credit is available, only the first fragment of the send request can be sent. The LSN(Limit Sequence Number) field should be 0 or the entire packet will be resent. Fixes: 926a01d ("RDMA/hns: Add QP operations support for hip08 SoC") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixing Liu <[email protected]> Signed-off-by: Wenpeng Liang <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent fc3bf30 commit 9bed8a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,9 +4483,6 @@ static int modify_qp_rtr_to_rts(struct ib_qp *ibqp,
44834483

44844484
hr_reg_clear(qpc_mask, QPC_CHECK_FLG);
44854485

4486-
hr_reg_write(context, QPC_LSN, 0x100);
4487-
hr_reg_clear(qpc_mask, QPC_LSN);
4488-
44894486
hr_reg_clear(qpc_mask, QPC_V2_IRRL_HEAD);
44904487

44914488
return 0;

0 commit comments

Comments
 (0)