linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* a run_tests question
@ 2020-08-21 22:46 Bob Pearson
  2020-08-24  8:49 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Pearson @ 2020-08-21 22:46 UTC (permalink / raw)
  To: Leon Romanovsky, linux-rdma

I think I figured out why the create/destroy_ah test cases are failing for rxe.
The test_addr.py test uses sgid_index = 0 which is supposed to "always work", but when the device is created the rdma core fills in the first entry with the link local IPV6 address based on the port guid which is the swizzled MAC address.

This doesn't match any of the interface addresses. Once RC traffic has passed the address gets replaced with a 'better' address and create_ah works. The test runs of you just pick sgid_index = 1 instead. This behavior is determined by the core not the driver. The driver doesn't manage the gid table AFAIK.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: a run_tests question
  2020-08-21 22:46 a run_tests question Bob Pearson
@ 2020-08-24  8:49 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2020-08-24  8:49 UTC (permalink / raw)
  To: Bob Pearson; +Cc: linux-rdma

On Fri, Aug 21, 2020 at 05:46:46PM -0500, Bob Pearson wrote:
> I think I figured out why the create/destroy_ah test cases are failing for rxe.
> The test_addr.py test uses sgid_index = 0 which is supposed to "always work", but when the device is created the rdma core fills in the first entry with the link local IPV6 address based on the port guid which is the swizzled MAC address.
>
> This doesn't match any of the interface addresses. Once RC traffic has passed the address gets replaced with a 'better' address and create_ah works. The test runs of you just pick sgid_index = 1 instead. This behavior is determined by the core not the driver. The driver doesn't manage the gid table AFAIK.

So what is the question?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-24  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21 22:46 a run_tests question Bob Pearson
2020-08-24  8:49 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).