OSDN Git Service

IB/hfi1: List all receive contexts from debugfs
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Thu, 19 Dec 2019 21:19:28 +0000 (16:19 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 20:44:50 +0000 (16:44 -0400)
commit44ec5aa3c6158122412b3018fdea1474edf0898e
treed66038768f6a89fe0993a05e554e666028f1c123
parent2fb3b5ae1ca77109209bd886094224faa37a43e8
IB/hfi1: List all receive contexts from debugfs

The current debugfs output for receive contexts (rcds), stops after the
kernel receive contexts have been displayed.  This is not enough
information to fully diagnose packet drops.

Display all of the receive contexts.

Augment the output with some more context information.

Limit the ring buffer header output to 5 entries to avoid overextending
the sequential file output.

Fixes: bf808b5039c ("IB/hfi1: Add kernel receive context info to debugfs")
Link: https://lore.kernel.org/r/20191219211928.58387.20737.stgit@awfm-01.aw.intel.com
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/debugfs.c
drivers/infiniband/hw/hfi1/driver.c