Thread (20 messages) 20 messages, 3 authors, 2019-02-24

Re: [PATCH v2 iproute2-next 07/11] devlink: Add devlink health diagnose command

From: Jiri Pirko <jiri@resnulli.us>
Date: 2019-02-21 14:50:26

Thu, Feb 21, 2019 at 02:42:43PM CET, ayal@mellanox.com wrote:
Add devlink health diagnose command: enabling retrieval of diagnostics data
by the user on a reporter on a device. The command's output is a
free text defined by the reporter.

This patch also introduces an infra structure for flexible format
output. This allow the  command to display different data fields
according to the reporter.
Example:
$ devlink health diagnose pci/0000:00:0a.0 reporter tx
SQs:
 sqn: 4403 HW state: 1 stopped: false
 sqn: 4408 HW state: 1 stopped: false
 sqn: 4413 HW state: 1 stopped: false
 sqn: 4418 HW state: 1 stopped: false
 sqn: 4423 HW state: 1 stopped: false

$ devlink health diagnose pci/0000:00:0a.0 reporter tx -jp
{
"SQs":[
     {
      "sqn":4403,
      "HW state":1,
      "stopped":false
    },
     {
      "sqn":4408,
      "HW state":1,
      "stopped":false
    },
     {
      "sqn":4413,
      "HW state":1,
      "stopped":false
    },
     {
      "sqn":4418,
      "HW state":1,
      "stopped":false
    },
     {
      "sqn":4423,
      "HW state":1,
      "stopped":false
    }
  ]
}

Signed-off-by: Aya Levin <redacted>
Reviewed-by: Moshe Shemesh <redacted>
Acked-by: Jiri Pirko <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help