RDMA/hns: Query the number of functions supported by the PF
authorWei Xu <xuwei5@hisilicon.com>
Tue, 6 Apr 2021 13:25:10 +0000 (21:25 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 13 Apr 2021 23:01:27 +0000 (20:01 -0300)
commit5b03a4226c42cf805c0ea11519c936cd76103ddd
tree8c831c5d26a5ba605e1fa3effb8d339bef4093bc
parent0fb46da051aec3c143e41adc321f3c8a7506d19c
RDMA/hns: Query the number of functions supported by the PF

Query how many functions are supported by the PF from the FW and store it
in the hns_roce_dev structure which will be used to support the
configuration of virtual functions.

Link: https://lore.kernel.org/r/1617715514-29039-3-git-send-email-liweihang@huawei.com
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Shengming Shu <shushengming1@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h