public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Bob Pearson <rpearsonhpe@gmail.com>
Cc: Zhu Yanjun <zyjzyj2000@gmail.com>,
	Edward Srouji <edwards@nvidia.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: I need help with the rdmacm tests
Date: Mon, 12 Apr 2021 09:04:46 -0300	[thread overview]
Message-ID: <20210412120446.GE7405@nvidia.com> (raw)
In-Reply-To: <bc01d5dc-4d2c-81ca-0fb3-337d6a160b94@gmail.com>

On Fri, Apr 09, 2021 at 05:50:01PM -0500, Bob Pearson wrote:
> The tests in tests/test_rdmacm.py for rxe are failing because they
> are not able to compute an IP address for the rxe ports.
> 
> The python code depends on having the directory
> /sys/class/infiniband/<IB_DEVICE>/device/net present. But rxe does
> not have this directory. 

Oh this is a mistake the tests need to the use APIs to get this
information not muck about in sysfs.

> I can figure out how to add another way for the python code to find
> the netdev for rxe.

Yes. netlink and the gid table reports the netdev for all rdma
devices, that is what the tests should be using.

Call ibv_query_gid_table(), put every ndev_ifindex in a set, then that
set is the list of every netdev index affiliated with the rdma device.

if_indextoname() will convert to a string name

Jason

  reply	other threads:[~2021-04-12 12:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 22:50 I need help with the rdmacm tests Bob Pearson
2021-04-12 12:04 ` Jason Gunthorpe [this message]
2021-04-12 16:07   ` Pearson, Robert B

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=20210412120446.GE7405@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=edwards@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=rpearsonhpe@gmail.com \
    --cc=zyjzyj2000@gmail.com \
    /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