]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Simplify the state judgment code of qp
authorLang Cheng <chenglang@huawei.com>
Wed, 15 Apr 2020 08:14:34 +0000 (16:14 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 24 Apr 2020 13:19:11 +0000 (10:19 -0300)
commit1f38bda1b0b69f70738b82b8b8393a29a56d427c
treed452f80797ac82ede35a8fd79d30e7504f7e5740
parent8a8029fc5ab517e08d0c5f3a29d200bbf606884b
RDMA/hns: Simplify the state judgment code of qp

Use state table to make the qp state migrate code more readable.

Link: https://lore.kernel.org/r/1586938475-37049-6-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c