diff options
| author | Koichiro Den <den@valinux.co.jp> | 2026-01-07 13:24:58 +0900 |
|---|---|---|
| committer | Jon Mason <jdmason@kudzu.us> | 2026-02-20 17:31:55 -0500 |
| commit | 8c1f92ca8bca3ce2d2c085571af89503bc7bc7c4 (patch) | |
| tree | a1c884e6cee606b88d656dfd7c1ddc8cc9e6502d /scripts/include | |
| parent | 6a4b50585d74fe45d3ade1e3e86ba8aae79761a5 (diff) | |
NTB: ntb_transport: Use seq_file for QP stats debugfs
The ./qp*/stats debugfs file for each NTB transport QP is currently
implemented with a hand-crafted kmalloc() buffer and a series of
scnprintf() calls. This is a pre-seq_file style pattern and makes future
extensions easy to truncate.
Convert the stats file to use the seq_file helpers via
DEFINE_SHOW_ATTRIBUTE(), which simplifies the code and lets the seq_file
core handle buffering and partial reads.
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'scripts/include')
0 files changed, 0 insertions, 0 deletions
