diff options
author | Wei Hu (Xavier) <xavier.huwei@huawei.com> | 2016-11-23 20:41:05 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-03 20:20:42 +0100 |
commit | 6b877c32bc40bfa9fa13659ac4e1413b67ff1c3d (patch) | |
tree | 8a4cc6a7730c414fdd1795eb120fb32d98377729 /drivers/infiniband/hw/hns/hns_roce_cmd.h | |
parent | IB/hns: Fix the bug for qp state in hns_roce_v1_m_qp() (diff) | |
download | linux-6b877c32bc40bfa9fa13659ac4e1413b67ff1c3d.tar.xz linux-6b877c32bc40bfa9fa13659ac4e1413b67ff1c3d.zip |
IB/hns: Modify the macro for the timeout when cmd process
This patch modified the macro for the timeout when cmd is
processing as follows:
Before modification:
enum {
HNS_ROCE_CMD_TIME_CLASS_A = 10000,
HNS_ROCE_CMD_TIME_CLASS_B = 10000,
HNS_ROCE_CMD_TIME_CLASS_C = 10000,
};
After modification:
#define HNS_ROCE_CMD_TIMEOUT_MSECS 10000
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_cmd.h')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_cmd.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_cmd.h b/drivers/infiniband/hw/hns/hns_roce_cmd.h index e3997d312c55..ed14ad3d06ef 100644 --- a/drivers/infiniband/hw/hns/hns_roce_cmd.h +++ b/drivers/infiniband/hw/hns/hns_roce_cmd.h @@ -34,6 +34,7 @@ #define _HNS_ROCE_CMD_H #define HNS_ROCE_MAILBOX_SIZE 4096 +#define HNS_ROCE_CMD_TIMEOUT_MSECS 10000 enum { /* TPT commands */ @@ -57,12 +58,6 @@ enum { HNS_ROCE_CMD_QUERY_QP = 0x22, }; -enum { - HNS_ROCE_CMD_TIME_CLASS_A = 10000, - HNS_ROCE_CMD_TIME_CLASS_B = 10000, - HNS_ROCE_CMD_TIME_CLASS_C = 10000, -}; - struct hns_roce_cmd_mailbox { void *buf; dma_addr_t dma; |