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)
commit0e60778efb072d47efc7100c4009b5bd97273b0b
tree32c918e35403ec8dc4f6f06ae147ac98d0dec765
parent571fb4fb78a3bf0fcadbe65eca9ca4ccee885af4
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: fbed9d2be292 ("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