]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4f913b2d9db512c9b5f9fcab95dec8519f65003
treea1ccbc94df77a7f0d9cfd759a6fcbcd277f09eaa
parent0f9449f3b687853f426c7e57497aa913a3bc7069
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