DPDK usage discussions
 help / color / mirror / Atom feed
* is RSS and Flow director can work together
@ 2024-03-11  9:17 Balakrishnan K
  2024-03-11 15:46 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Balakrishnan K @ 2024-03-11  9:17 UTC (permalink / raw)
  To: dev, users

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

Hi All,
    I want to use the dpdk application with RSS and flow director.
is possible to use both at a time in application.
In RSS, I am using
action_rss_tcp.types = ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY;
to receive the similar traffic to same core.
One specific case where I wanted to distribute the traffic across core, here the incoming traffic having same src and dst IP
Example( src ip : 10.10.10.1 dst ip :20.20.20.2) .
With RSS enabled all the traffic going to end up in one core ,where the remaining cores are being idle impacting the performance.
Planning enable flow director and create rule to distribute the traffic for the combination src /dst ip (10.10.10.1 /20.20.20.2) along with RSS.

if RSS and flow rule having same criteria which one takes the priority .

Regards,
Bala




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: is RSS and Flow director can work together
  2024-03-11  9:17 is RSS and Flow director can work together Balakrishnan K
@ 2024-03-11 15:46 ` Stephen Hemminger
  2024-03-12  5:38   ` Balakrishnan K
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2024-03-11 15:46 UTC (permalink / raw)
  To: Balakrishnan K; +Cc: dev, users

On Mon, 11 Mar 2024 09:17:01 +0000
Balakrishnan K <Balakrishnan.K1@tatacommunications.com> wrote:

> Hi All,
>     I want to use the dpdk application with RSS and flow director.
> is possible to use both at a time in application.
> In RSS, I am using
> action_rss_tcp.types = ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY;
> to receive the similar traffic to same core.
> One specific case where I wanted to distribute the traffic across core, here the incoming traffic having same src and dst IP
> Example( src ip : 10.10.10.1 dst ip :20.20.20.2) .
> With RSS enabled all the traffic going to end up in one core ,where the remaining cores are being idle impacting the performance.
> Planning enable flow director and create rule to distribute the traffic for the combination src /dst ip (10.10.10.1 /20.20.20.2) along with RSS.
> 
> if RSS and flow rule having same criteria which one takes the priority .
> 
> Regards,
> Bala

You can do that with rte_flow action of rte_flow_action_rss.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: is RSS and Flow director can work together
  2024-03-11 15:46 ` Stephen Hemminger
@ 2024-03-12  5:38   ` Balakrishnan K
  0 siblings, 0 replies; 3+ messages in thread
From: Balakrishnan K @ 2024-03-12  5:38 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, users

Hi Stephen,
Thank you!
Will there be any conflict occur between rss and the flow pattern that I am going to create.
RSS and flow rule having same criteria which one takes the priority

Regards,
Bala 



-----Original Message-----
From: Stephen Hemminger <stephen@networkplumber.org> 
Sent: Monday, March 11, 2024 9:16 PM
To: Balakrishnan K <Balakrishnan.K1@tatacommunications.com>
Cc: dev@dpdk.org; users@dpdk.org
Subject: Re: is RSS and Flow director can work together

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 Mon, 11 Mar 2024 09:17:01 +0000
Balakrishnan K <Balakrishnan.K1@tatacommunications.com> wrote:

> Hi All,
>     I want to use the dpdk application with RSS and flow director.
> is possible to use both at a time in application.
> In RSS, I am using
> action_rss_tcp.types = ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY 
> | ETH_RSS_L3_DST_ONLY; to receive the similar traffic to same core.
> One specific case where I wanted to distribute the traffic across 
> core, here the incoming traffic having same src and dst IP Example( src ip : 10.10.10.1 dst ip :20.20.20.2) .
> With RSS enabled all the traffic going to end up in one core ,where the remaining cores are being idle impacting the performance.
> Planning enable flow director and create rule to distribute the traffic for the combination src /dst ip (10.10.10.1 /20.20.20.2) along with RSS.
>
> if RSS and flow rule having same criteria which one takes the priority .
>
> Regards,
> Bala

You can do that with rte_flow action of rte_flow_action_rss.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-12  5:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-11  9:17 is RSS and Flow director can work together Balakrishnan K
2024-03-11 15:46 ` Stephen Hemminger
2024-03-12  5:38   ` Balakrishnan K

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).