mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 08:13:56 -04:00
netdevsim: add fw_update_flash_chunk_time_ms debugfs knobs
Netdevsim emulates firmware update and it takes 5 seconds to complete. For some use cases, this is too long and unnecessary. Allow user to configure the time by exposing debugfs a knob to set chunk time. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20250722091945.79506-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
1bbdb81a98
commit
9a5bbab285
@@ -40,6 +40,8 @@ fw_flash_test()
|
||||
return
|
||||
fi
|
||||
|
||||
echo "10"> $DEBUGFS_DIR/fw_update_flash_chunk_time_ms
|
||||
|
||||
devlink dev flash $DL_HANDLE file $DUMMYFILE
|
||||
check_err $? "Failed to flash with status updates on"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user