Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Mark Zhang <markzhang@nvidia.com>
To: Sylvain Didelot <didelot.sylvain@gmail.com>, linux-rdma@vger.kernel.org
Subject: Re: [Question] Is address format "gid" supported by RDMACM with RoCE?
Date: Tue, 8 Mar 2022 18:49:15 +0800	[thread overview]
Message-ID: <b612cd5a-b3ad-c8fb-cb01-32aeafbb9e7a@nvidia.com> (raw)
In-Reply-To: <CAOrWFD8Kb3R0OZ8A04QF4fPdMM6Xa_-sze0tLHboAJnz3SLivw@mail.gmail.com>

On 3/7/2022 9:57 PM, Sylvain Didelot wrote:
> External email: Use caution opening links or attachments
> 
> 
> Hi,
> 
> I have configured one of my Mellanox network adapters for RoCE:
> ---
> CA 'roceP1p1s0f1'
>      CA type: MT4123
>      Number of ports: 1
>      Firmware version: 20.32.1010
>      Hardware version: 0
>      Node GUID: 0xb8cef603002d1707
>      System image GUID: 0xb8cef603002d1706
>      Port 1:
>          State: Active
>          Physical state: LinkUp
>          Rate: 100
>          Base lid: 0
>          LMC: 0
>          SM lid: 0
>          Capability mask: 0x00010000
>          Port GUID: 0xbacef6fffe2d1707
>          Link layer: Ethernet
> ---
> 
> The Infiniband stack was installed from the official Ubuntu repository
> (20.04.4 LTS):
> ---
> $ apt search ibverbs
> Sorting... Done
> Full Text Search... Done
> ibverbs-providers/focal,now 28.0-1ubuntu1 arm64 [installed]
>    User space provider drivers for libibverbs
> 
> ibverbs-utils/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Examples for the libibverbs library
> 
> libibverbs-dev/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Development files for the libibverbs library
> 
> libibverbs1/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Library for direct userspace use of RDMA (InfiniBand/iWARP)
> 
> librdmacm-dev/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Development files for the librdmacm library
> 
> librdmacm1/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Library for managing RDMA connections
> 
> rdmacm-utils/focal,now 28.0-1ubuntu1 arm64 [installed]
>    Examples for the librdmacm library
> ---
> 
> When I start the ucmatose server with the address format "gid", the
> tool fails binding with the error "No such device"
> 
> Here is an example of the output:
> ---
> $ cat /sys/class/infiniband/roceP1p1s0f1/ports/1/gids/0
> fe80:0000:0000:0000:bace:f6ff:fe2d:1707
> 
> $ ucmatose -b fe80:0000:0000:0000:bace:f6ff:fe2d:1707 -P ib -f gid
> cmatose: starting server
> cmatose: bind address failed: No such device
> test complete
> return status -1
> ---
> 
> Does rdmacm support connection establishment using GID with RoCE? Or
> Is it a known limitation for RoCE?
> FYI, the same experiment without RoCE (Link layer: Infiniband) works perfectly.
> 
> Thanks for your help and your feedback.
> 
> Sylvain Didelot

I think ucmatose doesn't support RoCE when using "-f gid", as in this 
case ai_family is set to AF_IB.

  reply	other threads:[~2022-03-08 10:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07 13:57 [Question] Is address format "gid" supported by RDMACM with RoCE? Sylvain Didelot
2022-03-08 10:49 ` Mark Zhang [this message]
2022-03-08 10:54   ` Sylvain Didelot
2022-03-08 12:43     ` Mark Zhang
2022-03-08 13:04       ` Sylvain Didelot

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=b612cd5a-b3ad-c8fb-cb01-32aeafbb9e7a@nvidia.com \
    --to=markzhang@nvidia.com \
    --cc=didelot.sylvain@gmail.com \
    --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