RDMA/hns: Set reset flag when hw resetting
authorLang Cheng <chenglang@huawei.com>
Mon, 24 Jun 2019 11:47:48 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 15:02:00 +0000 (12:02 -0300)
commit726be12f5ca0a9b464e7d91add512071e4c224f6
tree84fd6a5887b4cb59712ec7bbc2cc7daa90a8a16c
parentf5662b4ddc9db20033f310694edbd3fc7041f6f2
RDMA/hns: Set reset flag when hw resetting

When hw resetting, there is no response from hw when driver sending cmdq.
If driver still send cmdq to hw, the reset process may be blocked.  So
reset flag should be set to intercept the cmdq command when driver
receiving "notify down" signal.

Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c