NTB: ntb_test: Update ntb_tool link tests
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 6 Dec 2017 14:32:00 +0000 (17:32 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
commit0298e5b9d0107a2c9d6e5ddf52ab90b405c3802d
treedb8666009f562a69c05db593758259ad92e15e10
parentdd151d7200ae6c5cfddbec7eb1a55ba8319e12b2
NTB: ntb_test: Update ntb_tool link tests

Link Up and Down methods are used to change NTB link settings on
local side only for multi-port devices. Link is considered up
only if both sides local and peer set it up. Intel/AMD hardware
acts a bit different by assigning the Primary and Secondary roles,
so Primary device only is able to change the link state. Such behaviour
should be reflected in the test code.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
tools/testing/selftests/ntb/ntb_test.sh