RE: I need help with the rdmacm tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks.

-----Original Message-----
From: Jason Gunthorpe <jgg@xxxxxxxxxx> 
Sent: Monday, April 12, 2021 7:05 AM
To: Bob Pearson <rpearsonhpe@xxxxxxxxx>
Cc: Zhu Yanjun <zyjzyj2000@xxxxxxxxx>; Edward Srouji <edwards@xxxxxxxxxx>; linux-rdma@xxxxxxxxxxxxxxx
Subject: Re: I need help with the rdmacm tests

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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux