linux/drivers/ntb/test
Logan Gunthorpe b54369a248 NTB: perf: Fix support for hardware that doesn't have port numbers
Legacy drivers do not have port numbers (but is reliably only two ports)
and was broken by the recent commit that added mult-port support to
ntb_perf. This is especially important to support the cross link
topology which is perfectly symmetric and cannot assign unique port
numbers easily.

Hardware that returns zero for both the local port and the peer should
just always use gidx=0 for the only peer.

Fixes: 5648e56d03 ("NTB: ntb_perf: Add full multi-port NTB API support")
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Tested-by: Alexander Fomichev <fomichev.ru@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2020-06-05 20:02:09 -04:00
..
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
ntb_msi_test.c NTB: Introduce NTB MSI Test Client 2019-06-13 09:02:51 -04:00
ntb_perf.c NTB: perf: Fix support for hardware that doesn't have port numbers 2020-06-05 20:02:09 -04:00
ntb_pingpong.c NTB: ntb_pingpong: Choose doorbells based on port number 2020-06-05 20:02:08 -04:00
ntb_tool.c NTB: ntb_tool: reading the link file should not end in a NULL byte 2020-06-05 20:02:08 -04:00