RDMA/hns: Increase checking CMQ status timeout value
authorWei Hu(Xavier) <xavier.huwei@huawei.com>
Wed, 23 May 2018 10:16:28 +0000 (18:16 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 21:41:52 +0000 (15:41 -0600)
This patch increases checking CMQ status timeout value and
uses the same value with NIC driver to avoid deficiency of
time.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.h

index 983c0be2afd0c97de090ffc2e6af879cad97c459..2caeb4cdad5c2330283f3d4916d187c694af7d60 100644 (file)
@@ -76,7 +76,7 @@
 #define HNS_ROCE_V2_PAGE_SIZE_SUPPORTED                0xFFFFF000
 #define HNS_ROCE_V2_MAX_INNER_MTPT_NUM         2
 #define HNS_ROCE_INVALID_LKEY                  0x100
-#define HNS_ROCE_CMQ_TX_TIMEOUT                        200
+#define HNS_ROCE_CMQ_TX_TIMEOUT                        30000
 
 #define HNS_ROCE_CONTEXT_HOP_NUM               1
 #define HNS_ROCE_MTT_HOP_NUM                   1