summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoshi Yu <boshiyu@linux.alibaba.com>2024-12-26 16:41:08 +0800
committerLeon Romanovsky <leon@kernel.org>2024-12-30 13:42:52 -0500
commit67831baff0d7a7ae12bba80c721fffacfab82e89 (patch)
tree69d0798cd68863ab7420ef10d9cf6b287a28a44d
parent123c13f10ed3627ba112172d8bd122a72cae226d (diff)
RDMA/erdma: Add missing fields to the erdma_device_ops_rocev2
Set the query_ah field to the erdma_create_ah() function and set the size_ib_ah field to the size of struct erdma_ah. Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com> Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com> Link: https://patch.msgid.link/20241226084141.74823-2-boshiyu@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
-rw-r--r--drivers/infiniband/hw/erdma/erdma_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/erdma/erdma_main.c b/drivers/infiniband/hw/erdma/erdma_main.c
index eabf435c77a3..9f512b642884 100644
--- a/drivers/infiniband/hw/erdma/erdma_main.c
+++ b/drivers/infiniband/hw/erdma/erdma_main.c
@@ -478,6 +478,9 @@ static const struct ib_device_ops erdma_device_ops_rocev2 = {
.query_pkey = erdma_query_pkey,
.create_ah = erdma_create_ah,
.destroy_ah = erdma_destroy_ah,
+ .query_ah = erdma_query_ah,
+
+ INIT_RDMA_OBJ_SIZE(ib_ah, erdma_ah, ibah),
};
static const struct ib_device_ops erdma_device_ops_iwarp = {