]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add health dump {get,clear} commands
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 7 Feb 2019 09:36:39 +0000 (11:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 18:34:29 +0000 (10:34 -0800)
commit2a212155f6234e9a1a87c01c1cf2c7fc4be82501
treed038837a171c9107cfe5dae9c614d361a3097fe3
parent48a8f8ccb1a2369f47d59a3e9f4f31618b0cac43
devlink: Add health dump {get,clear} commands

Add devlink health dump commands, in order to run an dump operation
over a specific reporter.

The supported operations are dump_get in order to get last saved
dump (if not exist, dump now) and dump_clear to clear last saved
dump.

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