aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
diff options
context:
space:
mode:
authorWei Xu <xuwei5@hisilicon.com>2021-04-06 21:25:10 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-04-13 20:01:27 -0300
commit5b03a4226c42cf805c0ea11519c936cd76103ddd (patch)
tree8c831c5d26a5ba605e1fa3effb8d339bef4093bc /drivers/infiniband/hw/hns/hns_roce_hw_v2.h
parentRDMA/hns: Simplify function's resource related command (diff)
downloadlinux-dev-5b03a4226c42cf805c0ea11519c936cd76103ddd.tar.xz
linux-dev-5b03a4226c42cf805c0ea11519c936cd76103ddd.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
index e535f945e939..340acbc7e338 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
@@ -1710,9 +1710,9 @@ struct hns_roce_cmq_desc {
union {
__le32 data[6];
struct {
- __le32 rsv1;
+ __le32 own_func_num;
__le32 own_mac_id;
- __le32 rsv2[4];
+ __le32 rsv[4];
} func_info;
};