RDMA/hns: Reserve the resource for the VFs
authorWei Xu <xuwei5@hisilicon.com>
Tue, 6 Apr 2021 13:25:11 +0000 (21:25 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 13 Apr 2021 23:01:28 +0000 (20:01 -0300)
commit2a424e1d112aee2b74786b5d29125ea57da1146f
tree773fe23b69a74fdf28d5ff071eece45c6173d270
parent5b03a4226c42cf805c0ea11519c936cd76103ddd
RDMA/hns: Reserve the resource for the VFs

Query the resource including EQC/SMAC/SGID from the firmware in the PF and
distribute fairly among all the functions belong to the PF.

Link: https://lore.kernel.org/r/1617715514-29039-4-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