]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Modify the value of MAX_LP_MSG_LEN to meet hardware compatibility
authorYixing Liu <liuyixing1@huawei.com>
Fri, 29 Oct 2021 10:05:37 +0000 (18:05 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 29 Oct 2021 14:51:47 +0000 (11:51 -0300)
commitb380f8f468ec6ef135cc635f8891bd40b8da806a
tree32c918e35403ec8dc4f6f06ae147ac98d0dec765
parent27616e2935b8d5a589ad9827b4d3060773dd133a
RDMA/hns: Modify the value of MAX_LP_MSG_LEN to meet hardware compatibility

The upper limit of MAX_LP_MSG_LEN on HIP08 is 64K, and the upper limit on
HIP09 is 16K. Regardless of whether it is HIP08 or HIP09, only 16K will be
used. In order to ensure compatibility, it is unified to 16K.

Setting MAX_LP_MSG_LEN to 16K will not cause performance loss on HIP08.

Fixes: 80dc097b4747 ("RDMA/hns: Fix configuration of ack_req_freq in QPC")
Link: https://lore.kernel.org/r/20211029100537.27299-1-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