RDMA/hns: Fix incorrect lsn field
authorYixing Liu <liuyixing1@huawei.com>
Wed, 25 Aug 2021 09:19:29 +0000 (17:19 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Aug 2021 16:55:11 +0000 (13:55 -0300)
commit9bed8a70716ba65d300b9cc30eb7e0276353f7bf
tree2132673d60cbb717712d4f3cb43d5c6ccf7623eb
parentfc3bf30f1ba8b3e8e4f56eb932f971598bbe400c
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: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/1629883169-2306-1-git-send-email-liangwenpeng@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c