From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Andrew Lunn <andrew@lunn.ch>,
davem@davemloft.net, Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Heiner Kallweit <hkallweit1@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Oleksij Rempel <o.rempel@pengutronix.de>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
Florian Fainelli <f.fainelli@gmail.com>,
thomas.petazzoni@bootlin.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH net-next 1/3] selftests: drv-net: Introduce a selftest for ethtool flow control
Date: Wed, 23 Sep 2026 07:41:13 +0200 [thread overview]
Message-ID: <72bdfa09-34ea-43ab-88ad-b3c64c7e1f70@bootlin.com> (raw)
In-Reply-To: <20260922194251.06e00e2e@kernel.org>
Hi Jakub,
On 9/23/26 04:42, Jakub Kicinski wrote:
> On Sun, 20 Sep 2026 18:47:27 +0200 Maxime Chevallier (Netdev
> Foundation) wrote:
>> Future ethtool selftests are expected to use the same, these helpers
>> are put in the net selftest lib.
>
> Please resist the urge to create libraries.
>
> If you're doing this I suspect you didn't even read the README and
> you expect people to search around for libraries?
I did read the README and fought the urge, that was something Andrew
was asking for in the previous round :( I'm ok with either TBH.
>
> Put the code in your test, the duplication doesn't matter.
> If you _absolutely have to_ you can create a local lib under
> tools/testing/selftests/drivers/net/hw/ but please think really
> hard before you do.
>
>> + :param cfg: test config
>
> If you have nothing to say - don't say anything 🤷️
>
>> + :returns: tuple containing :
>> + - return code of the ethtool command,
>> + - rx status,
>> + - tx status,
>> + - aneg status
>
> Have you seen much code in netdev selftests using this style
> of comments?
Hmm that's a leftover from the previous round that was pretty much only
coments, I can trim that down.
>
>> + defer(cmd, f"ethtool -s {cfg.ifname} autoneg on", fail=False)
>
> Why are you putting fail=False on the defers? IIRC defer errors are
> logged and ignored. Is ethtool reporting an error when there's nothing
> to change?
IIRC I had the issue when running that on a USB dongle, it's likely this
is something I put there and actually forgot to remove after finding a
better solution :(
>
> Those are just some things that immediately jump out :)
> Please also fix the pylint --disable=R issues?
Sure no problem,
Thanks a lot for taking a look,
Maxime
next prev parent reply other threads:[~2026-09-23 5:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 16:47 [PATCH net-next 0/3] selftests: drv-net: Introduce flow-control selftest Maxime Chevallier (Netdev Foundation)
2026-09-20 16:47 ` [PATCH net-next 1/3] selftests: drv-net: Introduce a selftest for ethtool flow control Maxime Chevallier (Netdev Foundation)
2026-09-23 2:42 ` Jakub Kicinski
2026-09-23 5:41 ` Maxime Chevallier [this message]
2026-09-20 16:47 ` [PATCH net-next 2/3] selftests: drv-net: pause: tests against a controllable link partner Maxime Chevallier (Netdev Foundation)
2026-09-20 16:47 ` [PATCH net-next 2/3] selftests: drv-net: pause: Validate the pause autonegotiation with a partner Maxime Chevallier (Netdev Foundation)
2026-09-20 16:47 ` [PATCH net-next 3/3] selftests: drv-net: pause: pause autoneg tests Maxime Chevallier (Netdev Foundation)
2026-09-20 16:47 ` [PATCH net-next 3/3] selftests: drv-net: pause: Validate pause autoneg interactions with link autoneg Maxime Chevallier (Netdev Foundation)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72bdfa09-34ea-43ab-88ad-b3c64c7e1f70@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=skhan@linuxfoundation.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®