diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-09-18 04:13:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 23:54:22 +0300 |
commit | f92970c694b36a4dbac2b650b173c78c0f0954cc (patch) | |
tree | 2b7f579740d10f8bfd17a83ea839e7bcc17c2205 /drivers/net/netdevsim/dev.c | |
parent | 0e4be9e57e8cb8f2130280c26a2d6de9c06a8500 (diff) | |
download | linux-f92970c694b36a4dbac2b650b173c78c0f0954cc.tar.xz |
devlink: add timeout information to status_notify
Add a timeout element to the DEVLINK_CMD_FLASH_UPDATE_STATUS
netlink message for use by a userland utility to show that
a particular firmware flash activity may take a long but
bounded time to finish. Also add a handy helper for drivers
to make use of the new timeout value.
UI usage hints:
- if non-zero, add timeout display to the end of the status line
[component] status_msg ( Xm Ys : Am Bs )
using the timeout value for Am Bs and updating the Xm Ys
every second
- if the timeout expires while awaiting the next update,
display something like
[component] status_msg ( timeout reached : Am Bs )
- if new status notify messages are received, remove
the timeout and start over
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/dev.c')
0 files changed, 0 insertions, 0 deletions