Re: pyverbs test regression

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

 



On 11/4/20 7:53 AM, Bernard Metzler wrote:
> -----"Bob Pearson" <rpearsonhpe@xxxxxxxxx> wrote: -----
> 
>> To: "Jason Gunthorpe" <jgg@xxxxxxxxxx>, "Leon Romanovsky"
>> <leon@xxxxxxxxxx>
>> From: "Bob Pearson" <rpearsonhpe@xxxxxxxxx>
>> Date: 11/04/2020 12:55AM
>> Cc: "linux-rdma@xxxxxxxxxxxxxxx" <linux-rdma@xxxxxxxxxxxxxxx>
>> Subject: [EXTERNAL] pyverbs test regression
>>
>> Since 5.10 some of the pyverbs tests are skipping with the warning
>> 	"Device rxe_0 doesn't have net interface"
>>
>> These occur in tests/test_rdmacm.py. As far as I can tell the error
>> occurs in
>>
>> RDMATestCase _add_gids_per_port after the following
>>
>> 	    if not
>> os.path.exists('/sys/class/infiniband/{}/device/net/'.format(dev)):
>>                self.args.append([dev, port, idx, None])
>>                continue
>>
>> In fact there is no such path which means it never finds an ip_addr
>> for the device.
>>
>> Did something change here? Do other RDMA devices have
>> /sys/class/infiniband/XXX/device/net?
>>
> 
> Hmm, with 5.10.0-rc1, I still see it for both rdma_rxe and siw. 
> 

Bernard,

	The script I use to setup the rxe device is

export LD_LIBRARY_PATH=/home/rpearson/src/rdma-core/build/lib/
sudo ip link set dev enp6s0 mtu 4500
sudo ip addr add dev enp6s0 scope link fe80::b62e:99ff:fef9:fa2e/64
sudo rdma link add rxe_0 type rxe netdev enp6s0

	After running this the rxe device is functional but I get

rpearson$ ls /sys/class/infiniband/rxe_0
fw_ver     node_guid  parent  power      sys_image_guid
node_desc  node_type  ports   subsystem  uevent

	with no 'device'. How are you seeing 'device'? We should be running the same bits.

Bob



[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