]> 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)
commit35e07d63aedd5e1171351e1afacb4321a46faafe
treebd0edc2d995559ac5c57fcf25009ccf127ea2785
parent295d60aa9454babfe6d40104ac6ef1d2dfc22baa
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