aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py
diff options
context:
space:
mode:
authorPeter Seiderer <[email protected]>2025-02-19 08:45:24 +0000
committerJakub Kicinski <[email protected]>2025-02-21 01:24:56 +0000
commit3ba38c25a8c03b77ed448220a6c93dd5552a264e (patch)
tree9c6b455b76b56dd4ac1d08c473da978256ecd230 /tools/testing/selftests/net/lib/py
parentnet: pktgen: fix hex32_arg parsing for short reads (diff)
downloadkernel-3ba38c25a8c03b77ed448220a6c93dd5552a264e.tar.gz
kernel-3ba38c25a8c03b77ed448220a6c93dd5552a264e.zip
net: pktgen: fix 'rate 0' error handling (return -EINVAL)
Given an invalid 'rate' command e.g. 'rate 0' the return value is '1', leading to the following misleading output: - the good case $ echo "rate 100" > /proc/net/pktgen/lo\@0 $ grep "Result:" /proc/net/pktgen/lo\@0 Result: OK: rate=100 - the bad case (before the patch) $ echo "rate 0" > /proc/net/pktgen/lo\@0" -bash: echo: write error: Invalid argument $ grep "Result:" /proc/net/pktgen/lo\@0 Result: No such parameter "ate" - with patch applied $ echo "rate 0" > /proc/net/pktgen/lo\@0 -bash: echo: write error: Invalid argument $ grep "Result:" /proc/net/pktgen/lo\@0 Result: Idle Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py')
0 files changed, 0 insertions, 0 deletions