netdevsim: add couple of debugfs bools to debug devlink reload

Add flag to disallow reload and another one that causes reload to
always fail.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jiri Pirko
2019-10-06 08:30:01 +02:00
committed by David S. Miller
parent d44dc74132
commit 155ddfc5e5
2 changed files with 22 additions and 0 deletions

View File

@@ -161,6 +161,8 @@ struct nsim_dev {
bool fw_update_status;
u32 max_macs;
bool test1;
bool dont_allow_reload;
bool fail_reload;
struct devlink_region *dummy_region;
};