]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91daadf1ad641421790a7015f365958c50eb7b4e
tree773fe23b69a74fdf28d5ff071eece45c6173d270
parente3d9f937e5b66f90c4562bed50285c7b2462fd4d
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