Skip to content

Commit ff18176

Browse files
ayalevin123davem330
authored andcommitted
selftests: Add a test of large binary to devlink health test
Add a test of 2 PAGEs size (exceeds devlink previous length limitation) of binary data on a 'devlink health dump show' command. Set binary length to 8192, issue a dump show command and clear it. Signed-off-by: Aya Levin <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8fdcd8f commit ff18176

File tree

1 file changed

+9
-0
lines changed
  • tools/testing/selftests/drivers/net/netdevsim

1 file changed

+9
-0
lines changed

tools/testing/selftests/drivers/net/netdevsim/devlink.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,15 @@ dummy_reporter_test()
431431

432432
check_reporter_info dummy healthy 3 3 10 true
433433

434+
echo 8192> $DEBUGFS_DIR/health/binary_len
435+
check_fail $? "Failed set dummy reporter binary len to 8192"
436+
437+
local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
438+
check_err $? "Failed show dump of dummy reporter"
439+
440+
devlink health dump clear $DL_HANDLE reporter dummy
441+
check_err $? "Failed clear dump of dummy reporter"
442+
434443
log_test "dummy reporter test"
435444
}
436445

0 commit comments

Comments
 (0)