Re: [PATCH 02/08] NTB: ntb_test: Add ntb_tool port tests

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 02:42 PM, Serge Semin wrote: +function find_pidx() +{ + PORT=$1 + PPATH=$2 + + for ((i = 0; i < 64; i++)); do + PEER_DIR="$PPATH/peer$i" + + check_file ${PEER_DIR} || break + + PEER_PORT=$(read_file "${PEER_DIR}/port") +

[PATCH 02/08] NTB: ntb_test: Add ntb_tool port tests

2017-11-30 Thread Serge Semin
Multi-port interface is now available in ntb_tool driver. According to the new NTB API, there might be more than two devices connected over NTB. It means each device can have multiple freely enumerated ports. Each port got index assigned by NTB hardware driver. This test is performed to determine t