All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kalentyev <comrad.karlovich@gmail.com>
To: "Pearson, Robert B" <robert.pearson2@hpe.com>
Cc: Yanjun Zhu <yanjun.zhu@linux.dev>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: rdma_rxe usage problem
Date: Thu, 20 Jan 2022 12:32:12 +0100	[thread overview]
Message-ID: <CABrV9Ys2QnOWJo=-m3fgz77=uLxtbKN4HcDgtxzFskXEObmL-Q@mail.gmail.com> (raw)
In-Reply-To: <PH7PR84MB14880DAC2578D1CBFAC7CC87BC599@PH7PR84MB1488.NAMPRD84.PROD.OUTLOOK.COM>

Dear Robert,

Thank you for your help!
What I did was :
ipv6calc --in prefix+mac fe80:: XX:XX:XX:XX:XX:XX
(with XX:XX:XX:XX:XX:XX one have to insert the MAC address of the NIC)
And then
udo ip addr add dev <dev> fe80::ZZZZ:ZZZZ:ZZZZ:ZZZZ/64
(with ZZZ:ZZZZ:ZZZZ the address genereted by ipv6calc)
sudo rdma link add rxe0 type rxe netdev <dev>
After that everything is working as expected:
>ibv_rc_pingpong -d rxe0 -g 0 192.168.0.176
  local address:  LID 0x0000, QPN 0x000012, PSN 0xf85048, GID
ZZZZ::ZZZZ:ZZZZ:ZZZZ:ZZZZ
  remote address: LID 0x0000, QPN 0x000011, PSN 0xf7c7b7, GID
ZZZZ::ZZZZ:ZZZZ:ZZZZ:ZZZZ
8192000 bytes in 0.01 seconds = 4743.49 Mbit/sec
1000 iters in 0.01 seconds = 13.82 usec/iter

So, I think it make sense to include this information in a README on
github. Otherwise somebody like me can spend a week trying to figure
out what is going on!

Thanks once again!
Regards,
Alexander Kalentev

ср, 19 янв. 2022 г. в 20:54, Pearson, Robert B <robert.pearson2@hpe.com>:
>
>
>
> -----Original Message-----
> From: Alexander Kalentyev <comrad.karlovich@gmail.com>
> Sent: Wednesday, January 19, 2022 11:53 AM
>
>
> Anyway the ibv_rc_pingpong shows an error:
>
> >ibv_rc_pingpong -d rxe0 -g 0
>   local address:  LID 0x0000, QPN 0x000015, PSN 0x015dd8, GID
> fe80::4a51:c5ff:fef6:e159
> Failed to modify QP to RTR
> Couldn't connect to remote QP
>
> >
> Alexander,
>
> I use a script to restart rxe after changing anything it looks like
>
>         #!/bin/bash
>
>         export LD_LIBRARY_PATH=<path to rdma-core>/rdma-core/build/lib:/usr/lib
>
>         sudo rmmod rdma_rxe
>         sudo modprobe rdma_rxe
>
>         sudo ip link set dev enp0s3 mtu 4500
>         sudo ip addr add dev enp0s3 fe80::0a00:27ff:fe35:5ea7/64
>         sudo rdma link add rxe0 type rxe netdev enp0s3
>
> The important line is adding the ipv6 address which corresponds with the MAC address of
> The ethernet nic which is
>
>         08:00:27:35:5e:a7
>
> Some OSes (like mine) do not create this address automatically but mangle the address.
> But the rdma core driver seems to expect all roce providers to have it.
>
> Hope this helps.
>
> Bob Pearson
> rpearson@hpe.com

  reply	other threads:[~2022-01-20 11:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 11:42 rdma_rxe usage problem Alexander Kalentyev
2022-01-19 14:12 ` Yanjun Zhu
2022-01-19 17:53   ` Alexander Kalentyev
2022-01-19 19:54     ` Pearson, Robert B
2022-01-20 11:32       ` Alexander Kalentyev [this message]
2022-01-20 12:23         ` Leon Romanovsky
2022-01-20 13:21     ` Yanjun Zhu

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='CABrV9Ys2QnOWJo=-m3fgz77=uLxtbKN4HcDgtxzFskXEObmL-Q@mail.gmail.com' \
    --to=comrad.karlovich@gmail.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=robert.pearson2@hpe.com \
    --cc=yanjun.zhu@linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.