]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Adjust lp_pktn_ini dynamically
authorWeihang Li <liweihang@huawei.com>
Thu, 30 Apr 2020 10:31:30 +0000 (18:31 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 20:33:20 +0000 (17:33 -0300)
commit7670731f833d9ad45fdb0e614169ee82f96ebab6
tree8f4cff06dd99c427a08467c48d455cdbb8eeecc8
parent922fefbd6f81454631dfa3879d12c351738dcfce
RDMA/hns: Adjust lp_pktn_ini dynamically

lp_pktn_ini means the number of loopback slice packets for long messages,
it should depend on MTU(fixed to 4096B currently) and max size of SQ
inline.

Link: https://lore.kernel.org/r/1588242691-12913-3-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c