]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f1410d2e8cf45ff7398ce403edcba065427c2f2
treee107dc1f6ba2b93a44fda8fe617f8f6b57a8405a
parent687721d2ce8caf18312b3b817b6bc7baf6a9b3dc
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