NTB: Fix transport stats for multiple devices
authorDave Jiang <dave.jiang@intel.com>
Mon, 13 Jul 2015 12:07:09 +0000 (08:07 -0400)
committerJon Mason <jdmason@kudzu.us>
Sun, 9 Aug 2015 20:32:21 +0000 (16:32 -0400)
commitc8650fd03d320e9c39f44435a583933cacea5259
treea1ccbc94df77a7f0d9cfd759a6fcbcd277f09eaa
parentda2e5ae56164b86823c1bff5b4d28430ca4a7108
NTB: Fix transport stats for multiple devices

Currently the debugfs does not have files for all NTB transport queue
pairs.  When there are multiple NTBs present in a system, the QP names
of the last transport clobber the names of previously added transport
QPs.  Only the last added QPs can be observed via debugfs.

Create a directory per NTB transport to associate the QPs with that
transport.  Name the directory the same as the PCI device.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c