RDMA/hns: Add new command to support query vf caps
authorYixing Liu <liuyixing1@huawei.com>
Sat, 4 Mar 2023 09:15:54 +0000 (17:15 +0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 14 Mar 2023 09:57:56 +0000 (11:57 +0200)
commitfaa63656fc361e78ebccb288c0be638a6a4ffe35
treea8e82163b56e7f6230128f02fac6b6ad796e4460
parentb73a0b80c69de77d8d4942abb37066531c0169b2
RDMA/hns: Add new command to support query vf caps

The current resource query for vf caps is driven by the driver,
which is unreasonable.

This patch adds a new command HNS_ROCE_OPC_QUERY_VF_CAPS_NUM
to support obtaining vf caps information from firmware.

Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Link: https://lore.kernel.org/r/20230304091555.2241298-2-xuhaoyue1@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h