diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-09-12 11:49:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-13 23:11:14 +0300 |
commit | 2670ac2625f98557fd7e083f8aa22c297e49039e (patch) | |
tree | 28ebb70925a228cefd4eab0435e7e66f96e0719f /include/net/devlink.h | |
parent | 97691069dc5a4135e413d3d92200d70b46df9fe5 (diff) | |
download | linux-2670ac2625f98557fd7e083f8aa22c297e49039e.tar.xz |
net: devlink: move reload fail indication to devlink core and expose to user
Currently the fact that devlink reload failed is stored in drivers.
Move this flag into devlink core. Also, expose it to the user.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index ab8d56d12ffd..23e4b65ec9df 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -38,6 +38,7 @@ struct devlink { struct device *dev; possible_net_t _net; struct mutex lock; + bool reload_failed; char priv[0] __aligned(NETDEV_ALIGN); }; @@ -945,6 +946,8 @@ void devlink_health_reporter_state_update(struct devlink_health_reporter *reporter, enum devlink_health_reporter_state state); +bool devlink_is_reload_failed(const struct devlink *devlink); + void devlink_flash_update_begin_notify(struct devlink *devlink); void devlink_flash_update_end_notify(struct devlink *devlink); void devlink_flash_update_status_notify(struct devlink *devlink, |