summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/dev.c
diff options
context:
space:
mode:
authorShannon Nelson <snelson@pensando.io>2020-09-18 04:13:25 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-18 23:54:23 +0300
commitb311b001dea14555753c6c4f1f089689a18413bb (patch)
tree745636472c89a39a87e303e6bc3f502f600b11d6 /drivers/net/netdevsim/dev.c
parent6700acc5f1fe97b5705832f2678cba9e9756a0dc (diff)
downloadlinux-b311b001dea14555753c6c4f1f089689a18413bb.tar.xz
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.c2
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);