aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2020-01-11 18:32:41 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-01-15 14:11:34 -0400
commit80a785701660ba3a36b0f72e1674b82ca7ca3ce0 (patch)
tree30aa261a1f7262afd67728c20c8655fb9b3976bd /drivers/infiniband/hw/hns/hns_roce_hw_v2.h
parentRDMA/hns: Add interfaces to get pf capabilities from firmware (diff)
downloadlinux-dev-80a785701660ba3a36b0f72e1674b82ca7ca3ce0.tar.xz
linux-dev-80a785701660ba3a36b0f72e1674b82ca7ca3ce0.zip
RDMA/hns: Get pf capabilities from firmware
Get pf capabilities from firmware according to different hardwares, if it fails, all capabilities will be set with a default value. Link: https://lore.kernel.org/r/1578738761-3176-4-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>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
index c56bd3182d86..539cea28bda9 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
@@ -114,6 +114,8 @@
#define HNS_ROCE_EXT_SGE_HOP_NUM 1
#define HNS_ROCE_RQWQE_HOP_NUM 2
+#define HNS_ROCE_BA_PG_SZ_SUPPORTED_256K 6
+#define HNS_ROCE_BA_PG_SZ_SUPPORTED_16K 2
#define HNS_ROCE_V2_GID_INDEX_NUM 256
#define HNS_ROCE_V2_TABLE_CHUNK_SIZE (1 << 18)