[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240805143555.4d59b14a@kernel.org>
Date: Mon, 5 Aug 2024 14:35:55 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Gal Pressman <gal@...dia.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, dxu@...uu.xyz, ecree.xilinx@...il.com,
przemyslaw.kitszel@...el.com, donald.hunter@...il.com, tariqt@...dia.com,
willemdebruijn.kernel@...il.com, jdamato@...tly.com
Subject: Re: [PATCH net-next v2 01/12] selftests: drv-net: rss_ctx: add
identifier to traffic comments
On Sun, 4 Aug 2024 09:40:58 +0300 Gal Pressman wrote:
> > 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 @@ from lib.py import ethtool, ip, defer, GenerateTraffic, CmdExitFailure
> > 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))
>
> You've already converted to an f-string, why not shove in the 'str(cnts)'?
For (possibly misguided) consistency, there are 2 other functions which
use the " + str(cnts)" format to append the per-queue stats to comment.
> Reviewed-by: Gal Pressman <gal@...dia.com>
Thanks!
Powered by blists - more mailing lists