DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ivan Malov <ivan.malov@arknetworks.am>
To: Thomas Wilks <thomas.wilks@arm.com>
Cc: dev@dpdk.org, Paul Szczepanek <paul.szczepanek@arm.com>,
	 Luca Vizzarro <luca.vizzarro@arm.com>,
	Patrick Robb <probb@iol.unh.edu>
Subject: Re: [RFC PATCH v3 0/2] dts: add RSS functions and test suite
Date: Fri, 18 Jul 2025 21:00:32 +0400 (+04)	[thread overview]
Message-ID: <0d58b9ac-ad4c-b4f9-159b-47ed9f7f4891@arknetworks.am> (raw)
In-Reply-To: <20250718150404.200096-1-thomas.wilks@arm.com>

[-- Attachment #1: Type: text/plain, Size: 3041 bytes --]

Hi Thomas,

On Fri, 18 Jul 2025, Thomas Wilks wrote:

> Hi all,
>
> This is v3 of the RSS test suites which has been rebased onto the latest patches.
> I’m also requesting comments and some help with an issue where the packet RSS queue and
> the predicted RSS queue differ when running on ConnectX-6 NICs while being the same on E810-C NICs.

Looking at patch [2/2], 'test_key_hash_default_hash_algorithm_queues' might do
the following:

1) insert a flow rule with action 'rss' and a specific/single random queue "A",
    which is expressed as 'rss types ipv4-udp end queues {self.queue} end';
2) set the GLOBAL rss table ('reta') for the port, with the queue indices
    going in some random order (say, [ACBBAAADCDAA..C], of size 512);
3) send/receive the packet;
4) based on the packet mbuf hash value, offset into the GLOBAL table ('reta')
    and retrieve the "expected" queue index;
5) compare the actual receive queue index with the predicted one.

Is this understanding correct?

If my understanding is correct, then I'm afraid this design might be flawed.
Why does it assume the GLOBAL table effect on action 'rss" with some specific
queue index listed in it? In fact, the 'queue' array of the action, at least,
when non-empty, defines exact subset of queues where the packet can land, which
might effectively form a distinct, per-flow 'reta'. In this case, where only one
queue index "A" is specified, the effective 'reta' for this particular flow
match is going to be [AAAAAAAAA..A] (say, of size 512 by default), isn't it?
If so, then why does the code try to peek at the GLOBAL reta instead, when it
has in fact wittingly reduced action 'rss' behaviour to such of action 'queue'?

Once again, I apologise in case I've got something wrong.

> I’m currently in the process of refactoring the test suites and addressing
> the review comments from v2. Below is a summary of the changes made so far that are included in this version:
>

As a separate question, doesn't one also want to verify the "expected" hash
value (SW hash based on the IP/UDP 2/4-tuple) versus the "actual" value?
Or is this too inconvenient to automate in testpmd environment?

Thank you.

> Changes in v3:
> - Merged the RSS test suites into a single file for better maintainability.
> - Moved the supporting functions into the same test suite file and removed the previous separate function file.
> - Combined the reta_key_reta_queues test cases into a single test case.
> - Added new test cases to support flow rule creation on ConnectX-6 NICs.
> - Removed requirements for specific hashing algorithms which has been replaced the flow_validate function.
>
> Regards,
> Thomas Wilks
>
> Alex Chapman (1):
>  dts: add RSS functions to testpmd
>
> Thomas Wilks (1):
>  dts: add PMD RSS testsuite
>
> dts/framework/remote_session/testpmd_shell.py | 132 +++-
> dts/tests/TestSuite_pmd_rss.py                | 610 ++++++++++++++++++
> 2 files changed, 729 insertions(+), 13 deletions(-)
> create mode 100644 dts/tests/TestSuite_pmd_rss.py
>
> -- 
> 2.43.0
>
>

  parent reply	other threads:[~2025-07-18 17:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 12:50 [PATCH] dts: add RSS functions to testpmd Alex Chapman
2024-09-06 14:29 ` Juraj Linkeš
2025-02-25 15:33 ` [PATCH v2 0/6] Added RSS functions and tests Thomas Wilks
2025-02-25 15:33   ` [PATCH v2 1/6] dts: add RSS functions to testpmd Thomas Wilks
2025-04-14  3:11     ` Patrick Robb
2025-02-25 15:33   ` [PATCH v2 2/6] dts: add utils for PMD RSS testsuites Thomas Wilks
2025-04-14  3:11     ` Patrick Robb
2025-02-25 15:33   ` [PATCH v2 3/6] dts: add PMD RSS hash testsuite Thomas Wilks
2025-04-14  3:30     ` Patrick Robb
2025-02-25 15:33   ` [PATCH v2 4/6] dts: add PMD RSS RETA testsuite Thomas Wilks
2025-02-25 15:33   ` [PATCH v2 5/6] dts: add PMD RSS key update testsuite Thomas Wilks
2025-02-25 15:33   ` [PATCH v2 6/6] dts: add NIC capabilities for hash algorithms Thomas Wilks
2025-07-18 15:03   ` [RFC PATCH v3 0/2] dts: add RSS functions and test suite Thomas Wilks
2025-07-18 15:04     ` [RFC PATCH v3 1/2] dts: add RSS functions to testpmd Thomas Wilks
2025-07-18 15:04     ` [RFC PATCH v3 2/2] dts: add PMD RSS testsuite Thomas Wilks
2025-07-18 18:37       ` Dean Marx
2025-07-18 17:00     ` Ivan Malov [this message]
2025-07-18 18:22       ` [RFC PATCH v3 0/2] dts: add RSS functions and test suite Ivan Malov

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=0d58b9ac-ad4c-b4f9-159b-47ed9f7f4891@arknetworks.am \
    --to=ivan.malov@arknetworks.am \
    --cc=dev@dpdk.org \
    --cc=luca.vizzarro@arm.com \
    --cc=paul.szczepanek@arm.com \
    --cc=probb@iol.unh.edu \
    --cc=thomas.wilks@arm.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;
as well as URLs for NNTP newsgroup(s).