aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorPeter Seiderer <[email protected]>2025-02-19 08:45:23 +0000
committerJakub Kicinski <[email protected]>2025-02-21 01:24:55 +0000
commitb38504346a2400c822cc57d0164521405fb12757 (patch)
tree6ae4663551a3ac5433d256fb6b2721862d36608a /tools/testing/selftests/net/lib/py/utils.py
parentnet: pktgen: enable 'param=value' parsing (diff)
downloadkernel-b38504346a2400c822cc57d0164521405fb12757.tar.gz
kernel-b38504346a2400c822cc57d0164521405fb12757.zip
net: pktgen: fix hex32_arg parsing for short reads
Fix hex32_arg parsing for short reads (here 7 hex digits instead of the expected 8), shift result only on successful input parsing. - before the patch $ echo "mpls 0000123" > /proc/net/pktgen/lo\@0 $ grep mpls /proc/net/pktgen/lo\@0 mpls: 00001230 Result: OK: mpls=00001230 - with patch applied $ echo "mpls 0000123" > /proc/net/pktgen/lo\@0 $ grep mpls /proc/net/pktgen/lo\@0 mpls: 00000123 Result: OK: mpls=00000123 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/utils.py')
0 files changed, 0 insertions, 0 deletions