From: Martin Habets <habetsm.xilinx@gmail.com>
To: edward.cree@amd.com
Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com,
pabeni@redhat.com, Edward Cree <ecree.xilinx@gmail.com>,
netdev@vger.kernel.org, linux-net-drivers@amd.com,
horms@kernel.org, andrew+netdev@lunn.ch, shuah@kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next 3/5] selftest: include dst-ip in ethtool ntuple rules
Date: Thu, 14 Nov 2024 09:54:49 +0000 [thread overview]
Message-ID: <20241114095449.GA667167@gmail.com> (raw)
In-Reply-To: <8e5d23c8f21310c23c080cc7bcd31b76f8fd3096.1731499022.git.ecree.xilinx@gmail.com>
On Wed, Nov 13, 2024 at 12:13:11PM +0000, edward.cree@amd.com wrote:
>
> From: Edward Cree <ecree.xilinx@gmail.com>
>
> sfc hardware does not support filters with only ipproto + dst-port;
> adding dst-ip to the flow spec allows the rss_ctx test to be run on
> these devices.
>
> Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Martin Habets <habetsm.xilinx@gmail.com>
> ---
> I'm not sure if this change will break the test for other drivers that
> perhaps support the old filter but not the new one. If so we might
> need to add an option to cfg to control this choice.
>
> tools/testing/selftests/drivers/net/hw/rss_ctx.py | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/tools/testing/selftests/drivers/net/hw/rss_ctx.py b/tools/testing/selftests/drivers/net/hw/rss_ctx.py
> index 29995586993c..fb61dae20fd8 100755
> --- a/tools/testing/selftests/drivers/net/hw/rss_ctx.py
> +++ b/tools/testing/selftests/drivers/net/hw/rss_ctx.py
> @@ -215,7 +215,7 @@ def test_rss_queue_reconfigure(cfg, main_ctx=True):
> defer(ethtool, f"-X {cfg.ifname} default")
> else:
> other_key = 'noise'
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {port} context {ctx_id}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {port} context {ctx_id}"
> ntuple = ethtool_create(cfg, "-N", flow)
> defer(ethtool, f"-N {cfg.ifname} delete {ntuple}")
>
> @@ -429,7 +429,7 @@ def test_rss_context(cfg, ctx_cnt=1, create_with_cfg=None):
> ksft_eq(max(data['rss-indirection-table']), 2 + i * 2 + 1, "Unexpected context cfg: " + str(data))
>
> ports.append(rand_port())
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {ports[i]} context {ctx_id}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {ports[i]} context {ctx_id}"
> ntuple = ethtool_create(cfg, "-N", flow)
> defer(ethtool, f"-N {cfg.ifname} delete {ntuple}")
>
> @@ -516,7 +516,7 @@ def test_rss_context_out_of_order(cfg, ctx_cnt=4):
> ctx.append(defer(ethtool, f"-X {cfg.ifname} context {ctx_id} delete"))
>
> ports.append(rand_port())
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {ports[i]} context {ctx_id}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {ports[i]} context {ctx_id}"
> ntuple_id = ethtool_create(cfg, "-N", flow)
> ntuple.append(defer(ethtool, f"-N {cfg.ifname} delete {ntuple_id}"))
>
> @@ -569,7 +569,7 @@ def test_rss_context_overlap(cfg, other_ctx=0):
>
> port = rand_port()
> if other_ctx:
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {port} context {other_ctx}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {port} context {other_ctx}"
> ntuple_id = ethtool_create(cfg, "-N", flow)
> ntuple = defer(ethtool, f"-N {cfg.ifname} delete {ntuple_id}")
>
> @@ -587,7 +587,7 @@ def test_rss_context_overlap(cfg, other_ctx=0):
> # Now create a rule for context 1 and make sure traffic goes to a subset
> if other_ctx:
> ntuple.exec()
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {port} context {ctx_id}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {port} context {ctx_id}"
> ntuple_id = ethtool_create(cfg, "-N", flow)
> defer(ethtool, f"-N {cfg.ifname} delete {ntuple_id}")
>
> @@ -620,7 +620,7 @@ def test_delete_rss_context_busy(cfg):
>
> # utilize context from ntuple filter
> port = rand_port()
> - flow = f"flow-type tcp{cfg.addr_ipver} dst-port {port} context {ctx_id}"
> + flow = f"flow-type tcp{cfg.addr_ipver} dst-ip {cfg.addr} dst-port {port} context {ctx_id}"
> ntuple_id = ethtool_create(cfg, "-N", flow)
> defer(ethtool, f"-N {cfg.ifname} delete {ntuple_id}")
>
next prev parent reply other threads:[~2024-11-14 9:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 12:13 [PATCH net-next 0/5] net: make RSS+RXNFC semantics more explicit edward.cree
2024-11-13 12:13 ` [PATCH net-next 1/5] net: ethtool: only allow set_rxnfc with rss + ring_cookie if driver opts in edward.cree
2024-11-14 9:21 ` Martin Habets
2024-11-25 7:11 ` Gal Pressman
2024-11-25 13:21 ` Edward Cree
2024-11-25 14:10 ` Gal Pressman
2024-11-25 14:20 ` Ahmed Zaki
2024-11-25 14:26 ` Gal Pressman
2024-11-25 14:42 ` Edward Cree
2024-11-25 19:01 ` Ahmed Zaki
2024-12-02 15:19 ` Ahmed Zaki
2024-11-25 18:13 ` Edward Cree
2024-11-13 12:13 ` [PATCH net-next 2/5] net: ethtool: account for RSS+RXNFC add semantics when checking channel count edward.cree
2024-11-13 12:13 ` [PATCH net-next 3/5] selftest: include dst-ip in ethtool ntuple rules edward.cree
2024-11-14 9:54 ` Martin Habets [this message]
2024-11-13 12:13 ` [PATCH net-next 4/5] selftest: validate RSS+ntuple filters with nonzero ring_cookie edward.cree
2024-11-13 12:13 ` [PATCH net-next 5/5] selftest: extend test_rss_context_queue_reconfigure for action addition edward.cree
2024-11-15 4:40 ` [PATCH net-next 0/5] net: make RSS+RXNFC semantics more explicit patchwork-bot+netdevbpf
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=20241114095449.GA667167@gmail.com \
--to=habetsm.xilinx@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=edward.cree@amd.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).