RDMA/hns: Add interfaces to get pf capabilities from firmware
authorLijun Ou <oulijun@huawei.com>
Sat, 11 Jan 2020 10:32:40 +0000 (18:32 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 15 Jan 2020 18:11:34 +0000 (14:11 -0400)
commitba6bb7e974212ef9c114ad94708fb88a82e240ea
tree6494cf5d80d3df03e0367d1bd54394eee8438fce
parenta91e093cad37c60dc16ca382ed6f869c4c99fb77
RDMA/hns: Add interfaces to get pf capabilities from firmware

pf capabilities are set by default for hip08 previously which should
depends on different types of hardware. So add new interfaces to get them
from firmware.

Link: https://lore.kernel.org/r/1578738761-3176-3-git-send-email-liweihang@huawei.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.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