OSDN Git Service

RDMA/hns: Fix the state of rereg mr
authorYixian Liu <liuyixian@huawei.com>
Sun, 3 Feb 2019 08:13:04 +0000 (16:13 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 14 Feb 2019 20:20:18 +0000 (13:20 -0700)
commitab22bf05216a6bb4812448f3a8609489047cf311
treef65275b2510beb185c590825e750e16b9d6ab38a
parent704e0e613a6d584fde1c80ead0329e918b4f8671
RDMA/hns: Fix the state of rereg mr

The state of mr after reregister operation should be set to valid
state. Otherwise, it will keep the same as the state before reregistered.

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