From: Davide Caratti <dcaratti@redhat.com>
To: Victor Nogueira <victor@mojatatu.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Jamal Hadi Salim <jhs@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next v3 3/3] tc-testing: add a test case for ETS offload
Date: Wed, 18 Mar 2026 17:33:46 +0100 [thread overview]
Message-ID: <abrT6s2LbrlriuJa@dcaratti.users.ipa.redhat.com> (raw)
In-Reply-To: <CA+NMeC-XtOcp_TrmKZ7DxLvdAXjsRciX3NLHhpuCCaGoNBpGtg@mail.gmail.com>
On Wed, Mar 18, 2026 at 12:26:25PM -0300, Victor Nogueira wrote:
> On Tue, Mar 17, 2026 at 12:11 PM Davide Caratti <dcaratti@redhat.com> wrote:
> >
> > While reviewing the fix for unintentional u32 overflows in ets offload
> > code, Jamal said:
> >
> > [...]
> >
> > > otherwise a tdc test should cover it fine (when you get to the
> > > netdevsim change perhaps)
> >
> > Add a test case to reproduce the division by zero fixed in [1].
> >
> > [1] https://lore.kernel.org/all/CAM0EoMm17wsYZmdFLshH3_-GrZtzd=i0xnoO2yiVB=-N4761mw@mail.gmail.com/
> >
> > Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
> > Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
> > Reviewed-by: Victor Nogueira <victor@mojatatu.com>
> > Signed-off-by: Davide Caratti <dcaratti@redhat.com>
hello Victor, thanks for investigating!
> Sorry for not noticing this earlier.
> I tried some approaches with Jamal to avoid changing your patch,
> but changing it seems to be the cleanest way to do this.
> The issue is that tdc overwrites the environment when running
> the shell command from python so it can't find ethtool.
> We believe the cleanest approach here is to specify
> ethtool's path in tdc_config.py (as is done with tc and ip).
> Am sending a proposed change as an attached diff in this
> reply.
[...]
> diff --git a/tools/testing/selftests/tc-testing/tdc_config.py b/tools/testing/selftests/tc-testing/tdc_config.py
> index ccb0f06ef9e3..9488b03cbc2c 100644
> --- a/tools/testing/selftests/tc-testing/tdc_config.py
> +++ b/tools/testing/selftests/tc-testing/tdc_config.py
> @@ -17,6 +17,7 @@ NAMES = {
> 'DEV1': 'v0p1',
> 'DEV2': '',
> 'DUMMY': 'dummy1',
> + 'ETHTOOL': '/usr/sbin/ethtool',
> 'ETH': 'eth0',
> 'BATCH_FILE': './batch.txt',
> 'BATCH_DIR': 'tmp',
I see, and maybe now understand why I didn't see this problem before. My
fedora test setup does:
root@localhost:net# which ethtool
/usr/bin/ethtool
and inside virtme-ng:
root@virtme-ng:net# which ethtool
/bin/ethtool
Moreover {,/usr}/sbin is a symlink because of [1], so it always finds
ethtool _ and would find ethtool also with the $ETHTOOL assignment
you did above; I'm ok for editing patch 3/3 adding the above hunks.
--
davide
[1] https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
prev parent reply other threads:[~2026-03-18 16:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 15:06 [PATCH net-next v3 0/3] netdevsim: support ETS offload Davide Caratti
2026-03-17 15:06 ` [PATCH net-next v3 1/3] netdevsim: move TC offload code to a dedicated file Davide Caratti
2026-03-17 15:06 ` [PATCH net-next v3 2/3] netdevsim: support tc-ets offload Davide Caratti
2026-03-17 15:06 ` [PATCH net-next v3 3/3] tc-testing: add a test case for ETS offload Davide Caratti
2026-03-18 15:26 ` Victor Nogueira
2026-03-18 16:33 ` Davide Caratti [this message]
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=abrT6s2LbrlriuJa@dcaratti.users.ipa.redhat.com \
--to=dcaratti@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=victor@mojatatu.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