Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Mina Almasry <almasrymina@google.com>
Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>,
	Stanislav Fomichev <sdf@fomichev.me>,
	Bobby Eshleman <bobbyeshleman@meta.com>
Subject: Re: [PATCH net-next v2 1/2] selftests: drv-net: devmem: fix 5-tuple flow steering
Date: Thu, 6 Aug 2026 13:34:35 -0700	[thread overview]
Message-ID: <20260806133435.38c34e31@kernel.org> (raw)
In-Reply-To: <CAHS8izP=mgsdxv3AtjJo9JY5OHC17zeX-VbPPH_gFF=Ndb_qjw@mail.gmail.com>

On Thu, 6 Aug 2026 13:05:49 -0700 Mina Almasry wrote:
> Yes the test fails, but it gets past the flow steering configuration problem.
> 
> And in the code, the change looks correct to me. If flow_steer is
> False, then we don't pass the -c arg to ncdevmem. ncdevmem is written
> so that if -c is not set, 5-tuple flow steering is not possible (the
> client side port is random), so it falls back to 3-tuple flow
> steering, which doesn't work on GVE or any other driver that supports
> only 5-tuple flow steering.
> 
> run_rx (devmem.check_rx test case) doesn't have this problem because
> it does `flow_steer=not hasattr(cfg, 'netns')`, but run_rx_hds has
> this problem because it forgets to override flow_steer at all. This
> patch fixes that.
> 
> To be honest while looking at this there were a few weird things. Like
> I'm not sure why the python arg is named `flow_steer` (it likely
> should be 5_tuple_flow_steer), and why flow_steer setting is tied to
> hasattr(cfg, 'netns'), it should be a proprety of the driver you're
> runing on (unless all in-netns drivers will support 3-tuple flow
> steering).

Could we clean this up and add explicit test cases for inserting
specific rule types? We want the one-sided-tuple format at Meta,
falling back silently would be a loss of signal.

  reply	other threads:[~2026-08-06 20:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 18:18 [PATCH net-next v2 1/2] selftests: drv-net: devmem: fix 5-tuple flow steering Mina Almasry
2026-08-03 18:18 ` [PATCH net-next v2 2/2] selftests: drv-net: ncdevmem: gracefully retry bind() Mina Almasry
2026-08-06 19:16   ` Jakub Kicinski
2026-08-06 19:27     ` Mina Almasry
2026-08-06 19:16 ` [PATCH net-next v2 1/2] selftests: drv-net: devmem: fix 5-tuple flow steering Jakub Kicinski
2026-08-06 20:05   ` Mina Almasry
2026-08-06 20:34     ` Jakub Kicinski [this message]
2026-08-06 20:59       ` Mina Almasry

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=20260806133435.38c34e31@kernel.org \
    --to=kuba@kernel.org \
    --cc=almasrymina@google.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bobbyeshleman@meta.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=shuah@kernel.org \
    /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