summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@nvidia.com>2023-06-12 10:57:11 +0300
committerJakub Kicinski <kuba@kernel.org>2023-06-14 06:49:14 +0300
commitb39d8c41c7a8336ce85c376b5d4906089524a0ae (patch)
treec45e2bfb52ad7b0d14c92ca6fb292a6a3ce59b87 /scripts/gdb/linux/utils.py
parentb849c566ee9c6ed78288a522278dcaf419f8e239 (diff)
downloadlinux-b39d8c41c7a8336ce85c376b5d4906089524a0ae.tar.xz
selftests/tc-testing: Fix SFB db test
Setting very small value of db like 10ms introduces rounding errors when converting to/from jiffies on some kernel configs. For example, on 250hz the actual value will be set to 12ms which causes the test to fail: # $ sudo ./tdc.py -d eth2 -e 3410 # -- ns/SubPlugin.__init__ # Test 3410: Create SFB with db setting # # All test results: # # 1..1 # not ok 1 3410 - Create SFB with db setting # Could not match regex pattern. Verify command output: # qdisc sfb 1: root refcnt 2 rehash 600s db 12ms limit 1000p max 25p target 20p increment 0.000503548 decrement 4.57771e-05 penalty_rate 10pps penalty_burst 20p Set the value to 100ms instead which currently seem to work on 100hz, 250hz, 300hz and 1000hz kernel configs. Fixes: 6ad92dc56fca ("selftests/tc-testing: add selftests for sfb qdisc") Signed-off-by: Vlad Buslov <vladbu@nvidia.com> Reviewed-by: Pedro Tammela <pctammela@mojatatu.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions