NTB: ntb_pp: Add full multi-port NTB API support
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 6 Dec 2017 14:31:55 +0000 (17:31 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
commitc7aeb0afdcc2d1ec5945e164d3fb97c5ae3edd1a
treecbd5dd7df8516051d6b47ce25f16dd48a5ecc02e
parentf1678a4c66a5c2cb43f744f7dc7e048d59690166
NTB: ntb_pp: Add full multi-port NTB API support

Current Ping Pong driver can't truly work with multi-port devices.
Additionally it requires the Scratchpad registers being available
on NTB device. This patches rewrites the driver so one would
perform the cyclic Ping-Pong algorithm around all the available
NTB peers and makes it working with NTB hardware, which doesn't
support Scratchpads, but such alternative as NTB Message register.
Additional cleanups are also added here.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_pingpong.c