linux/drivers/ntb/test
Logan Gunthorpe ca93c45755 NTB: ntb_pingpong: Choose doorbells based on port number
This commit fixes pingpong support for existing drivers that do not
implement ntb_default_port_number() and ntb_default_peer_port_number().
This is required for hardware (like the crosslink topology of
switchtec) which cannot assign reasonable port numbers to each port due
to its perfect symmetry.

Instead of picking the doorbell to use based on the the index of the
peer, we use the peer's port number. This is a bit clearer and easier
to understand.

Fixes: c7aeb0afdc ("NTB: ntb_pp: 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:08 -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: avoid false dma unmap of destination address 2020-06-05 20:02:08 -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