From: Zhu Yanjun <yanjun.zhu@linux.dev>
To: Andrew Sheinberg <as1669@princeton.edu>, linux-rdma@vger.kernel.org
Subject: Re: Seeking Guidance: Creating an IBV Multicast Group?
Date: Tue, 30 Jul 2024 19:52:02 +0800 [thread overview]
Message-ID: <90ece72b-3dc2-470f-b141-141e8263849e@linux.dev> (raw)
In-Reply-To: <1FF42574-65B2-493A-A779-D27F853063A7@princeton.edu>
在 2024/7/30 1:10, Andrew Sheinberg 写道:
> 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).
>
> 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?
> - Are there any examples using opensm programmatically and not with CLI?
> - Does the API differ on InfiniBand vs. RoCEv2 fabric?
I have made tests with Infiniband vs. RoCEv2. From my perspective, I
think, there are some differences between the 2 fabrics.
To the basic functionalities, the difference between 2 fabrics is small.
But to the extended functionalities, the difference is big.
The difference is based on the different features.
I just made some simple tests. Perhaps some engineers who made a lot of
tests can give more suggestions about this.
Zhu Yanjun
>
> 2. Is there any high-level documentation to describe the role of libibumad? (Looking at the man pages on a per-function basis is a bit too fine-grained for my understanding as of now).
> - I also see libibmad — what is the responsibility breakdown between these two?
> - How do they relate to OpenSM?
>
> Any guidance is greatly appreciated.
>
> Thanks,
> Andrew Sheinberg
next prev parent reply other threads:[~2024-07-30 11:52 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 [this message]
2024-07-30 13:30 ` Leon Romanovsky
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=90ece72b-3dc2-470f-b141-141e8263849e@linux.dev \
--to=yanjun.zhu@linux.dev \
--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