mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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 <gal@nvidia.com> Reviewed-by: Joe Damato <jdamato@fastly.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6b8a024d25
commit
10fbe8c082
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user