]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add health dump {get,clear} commands
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 17 Jan 2019 21:59:17 +0000 (23:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 22:51:23 +0000 (14:51 -0800)
commit9c08d7f2041a2fb5acc1e81cb4ef362f59844c29
treebc926ff94731344b9283b6d1dfec0faad13fce20
parent47494be14933602a537adbb555d882c3b22906a3
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 buffer descriptors 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/devlink.h
net/core/devlink.c