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>
This commit is contained in:

committed by
David S. Miller

parent
97691069dc
commit
2670ac2625
@@ -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,
|
||||
|
Reference in New Issue
Block a user