[PATCH v2] examples/l3fwd: adjust Tx burst size based on Rx burst

huangdengdui huangdengdui at huawei.com
Tue Jun 10 08:42:00 CEST 2025


On 2025/6/9 23:21, Stephen Hemminger wrote:
> On Mon, 9 Jun 2025 09:58:27 +0000
> Sivaprasad Tummala <sivaprasad.tummala at amd.com> wrote:
> 
>> Previously, the TX burst size was fixed at 256, leading to performance
>> degradation in certain scenarios.
>>
>> This patch introduces logic to set the TX burst size to match the
>> configured RX burst size (--burst option, default 32, max 512)
>> for better efficiency.
>>
>> Fixes: d5c4897ecfb2 ("examples/l3fwd: add option to set Rx burst size")
>> Cc: haijie1 at huawei.com
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala at amd.com>
>> Tested-by: Venkat Kumar Ande <VenkatKumar.Ande at amd.com>
>> Tested-by: Dengdui Huang <huangdengdui at huawei.com>
> 
> What driver? Why not fix the driver.
> If RX burst is small, there should be no way to get TX burst larger
> than that to happen.

If the Tx burst is too large, a number of mbufs will be temporarily stored in l3fwd's mbuf_table in a short period of time.
This leads to a decrease in the hit rate of the mempool cache, resulting in a drop in performance.



More information about the dev mailing list