DPDK patches and discussions
 help / color / mirror / Atom feed
From: kumaraparameshwaran rathinavel <kumaraparamesh92@gmail.com>
To: 胡嘉瑜 <hujiayu.hu@foxmail.com>,
	"Thomas Monjalon" <thomas@monjalon.net>,
	"Stephen Hemminger" <stephen@networkplumber.org>
Cc: dev <dev@dpdk.org>
Subject: Re: RFC - GRO Flowlookup Optimisation
Date: Mon, 5 Jan 2026 17:45:04 +0530	[thread overview]
Message-ID: <CANxNyavogrpWUvE1M65xWxEsBjTYj-s_EHdw-VFNAJ7BBUWgqw@mail.gmail.com> (raw)
In-Reply-To: <CANxNyavqQNqaF9Mx+QEBY5PVMzk45Yd7D703P5tCkXUfnU_RLw@mail.gmail.com>

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

Hi Jiayu, Thomas,

I had recently posted a patch to do flow operations based on hash for the
timer mode GRO. Stephen had started reviewing it. The implementation would
not work for the burst mode GRO where we try to coalesce the packets
received in single burst. To make this work for the burst mode, it’s not
straightforward as the tables are just declared in the stack and the new
hash based implementation cannot fit in to this design easily.

To address this and keep it simple, can we have just one mode where we try
do GRO as long as the burst never returns 0 or we receive a packet with
flags like FIN/PSH. I think this is similar to kernel GRO as well. We
should have a timer / logic to periodically to scavenge to flush the flows
which is the current timer based implementation.

Please let me know your thoughts on this.

Thanks.
Kumara


On Wed, 22 Nov 2023 at 9:06 PM, kumaraparameshwaran rathinavel <
kumaraparamesh92@gmail.com> wrote:

>
>
> On Wed, Nov 22, 2023 at 8:44 PM 胡嘉瑜 <hujiayu.hu@foxmail.com> wrote:
>
>> Hi Kumara,
>>
>> It is a good idea. You can send the code and I will help to review.
>>
>>> Thanks Jiyau. Will try to get out a PR in few days.
>>>
>>
>> Thanks,
>> Jiayu
>> ------------------------------
>> 发自我的iPhone
>>
>>
>> ------------------ Original ------------------
>> *From:* kumaraparameshwaran rathinavel <kumaraparamesh92@gmail.com>
>> *Date:* Wed,Nov 22,2023 2:01 PM
>> *To:* dev <dev@dpdk.org>, hujiayu.hu <hujiayu.hu@foxmail.com>
>> *Subject:* Re: RFC - GRO Flowlookup Optimisation
>>
>> Hi Folks,
>>
>> The current GRO code uses an unoptimised version of flow lookup where
>> each flow in the table is iterated over during the flow matching process.
>> For a rte_gro_reassemble_burst in lightweight mode this would not cause
>> much of an impact. But with rte_gro_reassemble which is done with a timeout
>> interval, this causes higher CPU utilisation during throughput tests. The
>> proposal here is to use a Hash based flowtable which could make use of the
>> rte_hash table implementation in DPDK. There could be a hash table for each
>> of the GRO types. The lookup function and the key could be different for
>> each one of the types. If there is a consensus that this could have a
>> better performance impact I would work on an initial patch set. Please let
>> me know your thoughts.
>>
>> Thanks,
>> Kumara.
>>
>

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

  reply	other threads:[~2026-01-05 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22 15:14 胡嘉瑜
2023-11-22 15:36 ` kumaraparameshwaran rathinavel
2026-01-05 12:15   ` kumaraparameshwaran rathinavel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-22  6:01 kumaraparameshwaran rathinavel
2023-11-22 10:35 ` Ferruh Yigit
2023-11-22 15:35   ` kumaraparameshwaran rathinavel

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=CANxNyavogrpWUvE1M65xWxEsBjTYj-s_EHdw-VFNAJ7BBUWgqw@mail.gmail.com \
    --to=kumaraparamesh92@gmail.com \
    --cc=dev@dpdk.org \
    --cc=hujiayu.hu@foxmail.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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).