This series add new interfaces to get capablities from firmware of different types of hardware. If it fails, all capabilities will be set with a default value. In addition, we remove some redundant fields in struct hns_roce_caps. Lijun Ou (2): RDMA/hns: Add interfaces to get pf capabilities from firmware RDMA/hns: Get pf capabilities from firmware Weihang Li (1): RDMA/hns: Remove some redundant variables related to capbilities drivers/infiniband/hw/hns/hns_roce_device.h | 9 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 437 ++++++++++++++++++++++------ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 156 ++++++++++ drivers/infiniband/hw/hns/hns_roce_main.c | 2 +- 4 files changed, 511 insertions(+), 93 deletions(-) -- 2.8.1