aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/hw/rss_ctx.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2024-08-10 05:37:17 +0000
committerDavid S. Miller <[email protected]>2024-08-12 13:16:23 +0000
commit10fbe8c082fdde74b1f0814bc30e194cf330cdf7 (patch)
treeaa030885ccd3272bae5e8fb37377b0a1ee4c3fa5 /tools/testing/selftests/drivers/net/hw/rss_ctx.py
parentnet: vxlan: remove duplicated initialization in vxlan_xmit (diff)
downloadkernel-10fbe8c082fdde74b1f0814bc30e194cf330cdf7.tar.gz
kernel-10fbe8c082fdde74b1f0814bc30e194cf330cdf7.zip
selftests: drv-net: rss_ctx: add identifier to traffic comments
Include the "name" of the context in the comment for traffic checks. Makes it easier to reason about which context failed when we loop over 32 contexts (it may matter if we failed in first vs last, for example). Reviewed-by: Gal Pressman <[email protected]> Reviewed-by: Joe Damato <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_ctx.py')
-rwxr-xr-xtools/testing/selftests/drivers/net/hw/rss_ctx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/drivers/net/hw/rss_ctx.py b/tools/testing/selftests/drivers/net/hw/rss_ctx.py
index 011508ca604b..1da6b214f4fe 100755
--- a/tools/testing/selftests/drivers/net/hw/rss_ctx.py
+++ b/tools/testing/selftests/drivers/net/hw/rss_ctx.py
@@ -90,10 +90,10 @@ def _send_traffic_check(cfg, port, name, params):
ksft_ge(directed, 20000, f"traffic on {name}: " + str(cnts))
if params.get('noise'):
ksft_lt(sum(cnts[i] for i in params['noise']), directed / 2,
- "traffic on other queues:" + str(cnts))
+ f"traffic on other queues ({name})':" + str(cnts))
if params.get('empty'):
ksft_eq(sum(cnts[i] for i in params['empty']), 0,
- "traffic on inactive queues: " + str(cnts))
+ f"traffic on inactive queues ({name}): " + str(cnts))
def test_rss_key_indir(cfg):