summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/netdevsim.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-06 08:30:01 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-06 18:28:42 +0200
commit155ddfc5e54a68f0e8d20f31f2b4b6b25e1071b5 (patch)
tree98dbd13c3689d12b080dc20bdd33edcd2305e1e1 /drivers/net/netdevsim/netdevsim.h
parentd44dc741327906b6eaf9f69c626cfc48d13f7250 (diff)
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>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r--drivers/net/netdevsim/netdevsim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h
index 8168a5475fe7..24358385d869 100644
--- a/drivers/net/netdevsim/netdevsim.h
+++ b/drivers/net/netdevsim/netdevsim.h
@@ -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;
};