devlink: allow driver to update progress of flash update
Introduce a function to be called from drivers during flash. It sends notification to userspace about flash update progress. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
44f18db5c1
commit
191ed2024d
@@ -741,6 +741,14 @@ void
|
||||
devlink_health_reporter_state_update(struct devlink_health_reporter *reporter,
|
||||
enum devlink_health_reporter_state state);
|
||||
|
||||
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,
|
||||
const char *status_msg,
|
||||
const char *component,
|
||||
unsigned long done,
|
||||
unsigned long total);
|
||||
|
||||
#if IS_ENABLED(CONFIG_NET_DEVLINK)
|
||||
|
||||
void devlink_compat_running_version(struct net_device *dev,
|
||||
|
Reference in New Issue
Block a user