]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: implement couple of testing devlink health reporters
authorJiri Pirko <jiri@mellanox.com>
Thu, 10 Oct 2019 13:18:50 +0000 (15:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Oct 2019 04:02:30 +0000 (21:02 -0700)
commiteedb6f9722fafbb72e532aca4056302685291973
treebd0edc2d995559ac5c57fcf25009ccf127ea2785
parent531e4c471477c5d3ba1726c7a869f7e1b0e51162
netdevsim: implement couple of testing devlink health reporters

Implement "empty" and "dummy" reporters. The first one is really simple
and does nothing. The other one has debugfs files to trigger breakage
and it is able to do recovery. The ops also implement dummy fmsg
content.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/Makefile
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/health.c [new file with mode: 0644]
drivers/net/netdevsim/netdevsim.h