OSDN Git Service

RDMA/hns: Fix configuration of ack_req_freq in QPC
authorWeihang Li <liweihang@huawei.com>
Sat, 19 Sep 2020 10:03:21 +0000 (18:03 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Sep 2020 18:56:27 +0000 (15:56 -0300)
commitfbed9d2be292504e04caa2057e3a9477a1e1d040
treef4c8259485e40aededfb63208566abc8d9946c34
parent99fcf82521d91468ee6115a3c253aa032dc63cbc
RDMA/hns: Fix configuration of ack_req_freq in QPC

The hardware will add AckReq flag in BTH header according to the value of
ack_req_freq to request ACK from responder for the packets with this flag.
It should be greater than or equal to lp_pktn_ini instead of using a fixed
value.

Fixes: 7b9bd73ed13d ("RDMA/hns: Fix wrong assignment of lp_pktn_ini in QPC")
Link: https://lore.kernel.org/r/1600509802-44382-8-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c