]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/mana_ib: Report max_msg_sz in mana_ib_query_port
authorShiraz Saleem <shirazsaleem@microsoft.com>
Tue, 12 May 2026 09:42:09 +0000 (02:42 -0700)
committerLeon Romanovsky <leon@kernel.org>
Tue, 19 May 2026 22:32:48 +0000 (19:32 -0300)
Report max_msg_sz for mana_ib, which is 16MB.

Fixes: 4bda1d5332ec ("RDMA/mana_ib: Implement port parameters")
Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://patch.msgid.link/20260512094209.264955-1-kotaranov@linux.microsoft.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/main.c

index ac5e75dd3494d70f7585aadd204c081046044d24..afc2fc124fee30ee86c2cae8c729db770eb8d93a 100644 (file)
@@ -606,6 +606,7 @@ int mana_ib_query_port(struct ib_device *ibdev, u32 port,
        if (mana_ib_is_rnic(dev)) {
                props->gid_tbl_len = 16;
                props->ip_gids = true;
+               props->max_msg_sz = SZ_16M;
                if (port == 1)
                        props->port_cap_flags = IB_PORT_CM_SUP;
        }