devlink: Add health diagnose command
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 7 Feb 2019 09:36:38 +0000 (11:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 18:34:28 +0000 (10:34 -0800)
commitfca42a2794e31379855c7d687055da43a6e05eef
treeb262b1a436ec9971068718ae5214e2f1aa9c4e9a
parent20a0943a5b237f7d59dc581e9e3637f5c87f1fde
devlink: Add health diagnose command

Add devlink health diagnose command, in order to run a diagnose
operation over a specific reporter.

It is expected from driver's callback for diagnose command to fill it
via the devlink fmsg API. Devlink will parse it and convert it to
netlink nla API in order to pass it to the user.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/devlink.h
net/core/devlink.c