]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitb713128de7a17c7173f869323f8a5f0593e52538
tree8f4cff06dd99c427a08467c48d455cdbb8eeecc8
parent23190b8f47de2d2983d6052f6eb7781779db8eb3
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