linux/drivers/ntb/test
Logan Gunthorpe bfcaa39652 ntb_tool: Add link status and files to debugfs
In order to more successfully script with ntb_tool it's useful to
have a link file to check the link status so that the script
doesn't use the other files until the link is up.

This commit adds a 'link' file to the debugfs directory which reads
boolean (Y or N) depending on the link status. Writing to the file
change the link state using ntb_link_enable or ntb_link_disable.

A 'link_event' file is also provided so an application can block until
the link changes to the desired state. If the user writes a 1, it will
block until the link is up. If the user writes a 0, it will block until
the link is down.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2016-08-05 10:21:07 -04:00
..
Kconfig ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
Makefile ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
ntb_perf.c ntb_perf: Wait for link before running test 2016-08-05 10:21:07 -04:00
ntb_pingpong.c
ntb_tool.c ntb_tool: Add link status and files to debugfs 2016-08-05 10:21:07 -04:00