diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-09-18 03:13:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 22:54:23 +0200 |
commit | b311b001dea14555753c6c4f1f089689a18413bb (patch) | |
tree | 745636472c89a39a87e303e6bc3f502f600b11d6 /drivers/net/netdevsim/dev.c | |
parent | devlink: collect flash notify params into a struct (diff) | |
download | linux-b311b001dea14555753c6c4f1f089689a18413bb.tar.xz linux-b311b001dea14555753c6c4f1f089689a18413bb.zip |
netdevsim: devlink flash timeout message
Add a simple devlink flash timeout message to exercise
the message mechanism.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/dev.c')
-rw-r--r-- | drivers/net/netdevsim/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c index 32f339fedb21..e41f85c75699 100644 --- a/drivers/net/netdevsim/dev.c +++ b/drivers/net/netdevsim/dev.c @@ -768,6 +768,8 @@ static int nsim_dev_flash_update(struct devlink *devlink, const char *file_name, component, NSIM_DEV_FLASH_SIZE, NSIM_DEV_FLASH_SIZE); + devlink_flash_update_timeout_notify(devlink, "Flash select", + component, 81); devlink_flash_update_status_notify(devlink, "Flashing done", component, 0, 0); devlink_flash_update_end_notify(devlink); |