RDMA/hns: Support query information of functions from FW
authorWei Xu <xuwei5@hisilicon.com>
Thu, 25 Mar 2021 13:33:55 +0000 (21:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 18:23:08 +0000 (15:23 -0300)
commite079d87d1d9a5c27415bf5b71245566ae434372f
tree5d5f5aa2ae75e1b3f3563eae91c65f45bc6d89bd
parent194f64a3cad3ab9e381e996a13089de3215d1887
RDMA/hns: Support query information of functions from FW

Add a new type of command to query mac id of functions from the firmware,
it is used to select the template of congestion algorithm. More info will
be supported in the future.

Link: https://lore.kernel.org/r/1616679236-7795-2-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