[PATCH v2] eal: fix unused memseg length

2025-01-01 Thread Yang Ming
Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When `eal_legacy_hugepage_init()` releases the VA space for unused memseg lists(MSLs), it does not reset MSLs' length to 0. As a result, `mlx5_mem_is_rte()` may incorrectly identify O

Re: [PATCH] Fix unused memseg length for memory issue

2025-01-01 Thread Yang Ming
On 2025/1/1 20:34, Dmitry Kozlyuk wrote: 2024-12-26 16:10 (UTC+0800), Yang Ming: Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When eal_legacy_hugepage_init releases the VA space for unused memseg lists, it does not reset thei

Re: [PATCH] lib/gro: use hash function for flow lookup

2025-01-01 Thread kumaraparameshwaran rathinavel
On Wed, Jan 1, 2025 at 10:51 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Wed, 1 Jan 2025 15:07:35 +0530 > Kumara Parameshwaran wrote: > > > From: Kumara Parameshwaran > > To: hujiayu...@foxmail.com > > Cc: dev@dpdk.org, Kumara Parameshwaran > > Subject: [PATCH] lib/gro: use

RE: [RFC PATCH] ethdev: add new API for enable/disable xstat counters by ID

2025-01-01 Thread Shani Peretz
I understand what you say about the per queue statistics, but note that we want to be able to enable/disable stat in general - the stat can be related to a specific queue, or a port, or else. but the PMD get the chance to disable the collection of it and save resources. > -Original Message--

Re: [PATCH] lib/gro: use hash function for flow lookup

2025-01-01 Thread Stephen Hemminger
On Wed, 1 Jan 2025 15:07:35 +0530 Kumara Parameshwaran wrote: > From: Kumara Parameshwaran > To: hujiayu...@foxmail.com > Cc: dev@dpdk.org, Kumara Parameshwaran > Subject: [PATCH] lib/gro: use hash function for flow lookup > Date: Wed, 1 Jan 2025 15:07:35 +0530 > X-Mailer: git-send-email 2.4

Re: [PATCH] Fix unused memseg length for memory issue

2025-01-01 Thread Dmitry Kozlyuk
2024-12-26 16:10 (UTC+0800), Yang Ming: > Fix the issue where OS memory is mistakenly freed with rte_free > by setting the length (len) of unused memseg to 0. > > When eal_legacy_hugepage_init releases the VA space for unused > memseg lists, it does not reset their length to 0. As a result, > mlx5

[PATCH] lib/gro: use hash function for flow lookup

2025-01-01 Thread Kumara Parameshwaran
optimize the GRO lookup using hash based implementation Signed-off-by: Kumara Parameshwaran --- The patch helps improving the CPU cycles during flow lookup in the GRO library. The current approach iterates over all the flows in the GRO table to find a matching flow for every incoming packet. T