devlink: allow driver to update progress of flash update
authorJiri Pirko <jiri@mellanox.com>
Tue, 4 Jun 2019 13:40:40 +0000 (15:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 21:21:40 +0000 (14:21 -0700)
commit191ed2024de9fcfaab24106f9dbf7e544b07d633
tree668fd54779aa2452e5cd96391a0f4225a62fa8c5
parent44f18db5c16a83c0aeb039cc5df2d467460a2794
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>
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c