OSDN Git Service

RDMA/hns: Add constraint on the setting of local ACK timeout
authorLijun Ou <oulijun@huawei.com>
Wed, 12 Dec 2018 09:49:08 +0000 (17:49 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 7 Jan 2019 19:13:34 +0000 (12:13 -0700)
commit44754b95dd35ee07c462b5425ae9c4cde8c7e7c8
tree2ee9dfdfc63d5f87951fb37683fd54f820fad85f
parent4d103905eb1e4f14cb62fcf962c9d35da7005dea
RDMA/hns: Add constraint on the setting of local ACK timeout

According to IB protocol, local ACK timeout shall be a 5 bit
value. Currently, hip08 could not support the possible max value 31. Fail
the request in this case.

Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c