RDMA/hns: Combine enable flags of qp
authorLang Cheng <chenglang@huawei.com>
Tue, 5 May 2020 10:30:07 +0000 (18:30 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 12 May 2020 23:37:06 +0000 (20:37 -0300)
commit90ae0b57e4a515342fe74ffa21f6972f5145d645
treee107dc1f6ba2b93a44fda8fe617f8f6b57a8405a
parent30661322b8c32e020c6638dc4317034ec95a1b3f
RDMA/hns: Combine enable flags of qp

It's easier to understand and maintain enable flags of qp using a single
field in type of unsigned long than defining a field for every flags in
the structure hns_roce_qp, and we can add new flags for features more
conveniently in the future.

Link: https://lore.kernel.org/r/1588674607-25337-4-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_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c