All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Pearson <rpearsonhpe@gmail.com>
To: Jason Gunthorpe <jgg@nvidia.com>,
	Zhu Yanjun <zyjzyj2000@gmail.com>,
	Edward Srouji <edwards@nvidia.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: I need help with the rdmacm tests
Date: Fri, 9 Apr 2021 17:50:01 -0500	[thread overview]
Message-ID: <bc01d5dc-4d2c-81ca-0fb3-337d6a160b94@gmail.com> (raw)

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. Apparently it would find a list of network devices in this directory and once it has that it can succeed. If I hack the
code in get_net_name in base.py to just return the Ethernet device rxe is using ("enp5s0") the tests all pass.

There are two ways to go forward here. I can figure out how to make rdma-core to create the missing directory or if that is not
correct I can figure out how to add another way for the python code to find the netdev for rxe.

I need help on which way to proceed and any hints how to fix this would be very helpful.

Bob

             reply	other threads:[~2021-04-09 22:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 22:50 Bob Pearson [this message]
2021-04-12 12:04 ` I need help with the rdmacm tests Jason Gunthorpe
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=bc01d5dc-4d2c-81ca-0fb3-337d6a160b94@gmail.com \
    --to=rpearsonhpe@gmail.com \
    --cc=edwards@nvidia.com \
    --cc=jgg@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --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 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.