DPDK patches and discussions
 help / color / mirror / Atom feed
From: Raghavan V <Raghavan.V2@tatacommunications.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: FDIR packet distribution with specific multiple RX queues.
Date: Thu, 18 Jul 2024 16:39:35 +0000	[thread overview]
Message-ID: <TYZPR04MB54169EAD13C7C52D90030134C8AC2@TYZPR04MB5416.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <20240718083607.2b70d734@hermes.local>

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

Hi Stephen,
Thanks for your response.

As our application has limitations while using RSS,
I would prefer a similar approach to RTE_ACTION_TYPE_QUEUE.

Since flow director supports only one RXQ index, I could not be able to achieve desired outcome.

Please suggest if any approach like RTE_ACTION_TYPE_QUEUE but not RSS could match my requirement.

Thanks,
Raghavan V


________________________________
From: Stephen Hemminger <stephen@networkplumber.org>
Sent: Thursday, July 18, 2024 9:06:14 pm
To: Raghavan V <Raghavan.V2@tatacommunications.com>
Cc: dev@dpdk.org <dev@dpdk.org>; users@dpdk.org <users@dpdk.org>
Subject: Re: FDIR packet distribution with specific multiple RX queues.

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Thu, 18 Jul 2024 11:36:43 +0000
Raghavan V <Raghavan.V2@tatacommunications.com> wrote:

> Is there any way to distribute packets evenly (Like RSS) to specific multiple RX queues in RTE_FLOW_ACTION_TYPE_QUEUE DPDK Flow director?
>
> Desired action:
>
> uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};
> struct rte_flow_action_queue queue = {.index = queue_indices};
> struct rte_flow_action action[]={
>     [0]={.type = RTE_FLOW_ACTION_TYPE_QUEUE,.conf = &queue},
>     [1]={.type = RTE_FLOW_ACTION_TYPE_END}
> };

You want RTE_FLOW_ACTION_TYPE_RSS

uint16_t queue_indices[] = {10, 11, 12, 13, 14, 15};
struct rte_flow_action_rss rss = {
        .types =  RTE_ETH_RSS_UDP | RTE_ETH_RSS_TCP,
        .queue_num = RTE_DIM(queue_indicies),
        .queue = queue_indicies,
};

struct rte_flow_action action[]={
     [0]={.type = RTE_FLOW_ACTION_TYPE_RSS,.conf = &rss},
    [1]={.type = RTE_FLOW_ACTION_TYPE_END}
};

> Is this action limited to drivers specific?
Yes, drivers implement only what hardware can support.


[-- Attachment #2: Type: text/html, Size: 3496 bytes --]

  reply	other threads:[~2024-07-22  9:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-18 11:36 Raghavan V
2024-07-18 15:36 ` Stephen Hemminger
2024-07-18 16:39   ` Raghavan V [this message]
2024-07-18 17:28     ` Stephen Hemminger

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=TYZPR04MB54169EAD13C7C52D90030134C8AC2@TYZPR04MB5416.apcprd04.prod.outlook.com \
    --to=raghavan.v2@tatacommunications.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=users@dpdk.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).