From: Leon Romanovsky <leon@kernel.org>
To: Andrew Sheinberg <as1669@princeton.edu>
Cc: linux-rdma@vger.kernel.org
Subject: Re: Seeking Guidance: Creating an IBV Multicast Group?
Date: Tue, 30 Jul 2024 16:30:23 +0300 [thread overview]
Message-ID: <20240730133023.GC4209@unreal> (raw)
In-Reply-To: <1FF42574-65B2-493A-A779-D27F853063A7@princeton.edu>
On Mon, Jul 29, 2024 at 01:10:29PM -0400, Andrew Sheinberg wrote:
> Hello all,
>
> I’m not sure if this the right place to ask, but I will give it a try.
>
> I have a system with many initialized UD queue pairs (info for address handle creations and qp numbers exchanged out-of-band). I am only using libibverbs for establishment (purposefully not using librdmacm, to allow for more flexible environment configuration) — everything is working smoothly for unicast. Now I would like to create a multicast group and attach some of these queue pairs (ibv_mcast_attach); however I am struggling to find any details on how to create such a group (and obtain a proper MGID and MLID).
First call to ibv_attach_mcast() will create a new multicast group.
>
> I found a few examples online but am left with questions:
> - There is code within perftest's "multicast_resources.c", but this seems a bit hacky and oddly verbose
> - There is code within Nvidia Docs’ "Programming Examples using IBV” showcasing joining an already created multicast group at a given IP address using rdma_cm, but It is unclear how to create the group in the first place
>
>
> Questions (please correct me if these do not make sense):
>
> 1. What is the role of the OpenSM — is there a C API?
SM stands for subnet management and its goal to oversee fabric topology
and manage path routing among the nodes.
Thanks
next prev parent reply other threads:[~2024-07-30 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 17:10 Seeking Guidance: Creating an IBV Multicast Group? Andrew Sheinberg
2024-07-30 11:52 ` Zhu Yanjun
2024-07-30 13:30 ` Leon Romanovsky [this message]
2024-07-30 15:26 ` Konstantin Taranov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240730133023.GC4209@unreal \
--to=leon@kernel.org \
--cc=as1669@princeton.edu \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox