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

2025-06-09 Thread huangdengdui
On 2025/6/9 23:21, Stephen Hemminger wrote: > On Mon, 9 Jun 2025 09:58:27 + > Sivaprasad Tummala 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 >>

Re: Question regarding rte_hash_hash and rte_hash_add_key_with_hash_data

2025-06-09 Thread venkatesh bs
Hi @Stephen Hemminger , Thanks for the reply , please find the details below. DPDK version : 20.11.6 #define LOADBAL_HASH_ENTRIES_MAX (1024*1024*36) #define LOADBAL_HASH_TABLE_SIZE_MULTIPLIER 2 hashSizeMultiplier = LOADBAL_HASH_TABLE_SIZE_MULTIPLIER; struct rte_hash_parameters loadbal_hash_

acpi_cpufreq driver suggestion

2025-06-09 Thread רועי שבי
Hello, I have a suggestion for a small fix/feature for the acpi_cpufreq power environment. acpi_cpufreq already saves the original governor setting and reverts it back after a `rte_power_exit` call, which is good; The problem I am facing is that on `power_acpi_cpufreq_init`, the frequency is immed

Re: [PATCH v4 2/2] test/dma: add functions to verify zero and one fill

2025-06-09 Thread fengchengwen
Hi Vidya, How about add a wrap function and keep this function (could modify it's name). static int test_enqueue_fill() { uint64_t pattern[3] = {0x0, 0xfedcba9876543210, 0x}; int i; for (i = 0; i < RTE_DIM(pattern); i++) { ret = test_enqueue

RE: [EXTERNAL] Re: [PATCH v2 1/1] ethdev: add support to provide link type

2025-06-09 Thread Morten Brørup
> From: Sunil Kumar Kori [mailto:sk...@marvell.com] > Sent: Tuesday, 10 June 2025 07.02 > > > On Fri, 6 Jun 2025 11:54:52 +0200 > > Morten Brørup wrote: > > > > > > From: sk...@marvell.com [mailto:sk...@marvell.com] > > > > Sent: Friday, 6 June 2025 11.28 > > > > > > > > From: Sunil Kumar Kori >

[PATCH] net/ixgbe: fix unexpected data in the xstats info

2025-06-09 Thread Kaiwen Deng
E610 device does not support MACsec. This commit will excluding MACsec stats from the xstats info display for E610 device. Fixes: b35d309710fe ("net/ixgbe: add MACsec offload") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/intel/ixgbe/ixgbe_ethdev.c | 121 ++---

Re: [PATCH v4 1/2] test/dma: update the sg test to verify wrap around case

2025-06-09 Thread fengchengwen
Hi Vidya, On 2025/6/9 11:03, Vidya Sagar Velumuri wrote: > Run the sg test in a loop to verify wrap around case. > Total number commands submitted to be more than the number descriptors > allocated to verify the scenario. > > Signed-off-by: Vidya Sagar Velumuri > Acked-by: Amit Prakash Shukla >

[PATCH v1 8/8] net/r8169: update HW configuration for 8127

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/base/rtl8127.c | 44 --- drivers/net/r8169/base/rtl8127_mcu.c | 109 --- drivers/net/r8169/r8169_hw.h | 2 +- drivers/net/r8169/r8169_phy.c| 1 - 4 files changed, 80 insertions(+), 76 deletio

[PATCH v1 5/8] net/r8169: add RTL8127AP dash support

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/r8169_dash.c | 1 + drivers/net/r8169/r8169_hw.c | 32 ++-- drivers/net/r8169/r8169_phy.c | 34 ++ 3 files changed, 13 insertions(+), 54 deletions(-) diff --git a/drivers/net/r8169/r8

[PATCH v1 7/8] net/r8169: add support for RTL8127ATF serdes interface

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/meson.build| 1 + drivers/net/r8169/r8169_ethdev.h | 3 + drivers/net/r8169/r8169_fiber.c | 201 +++ drivers/net/r8169/r8169_fiber.h | 42 +++ drivers/net/r8169/r8169_hw.c | 93 +- drivers

[PATCH v1 6/8] net/r8169: add support for RTL8125CP

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/base/rtl8125cp.c | 73 drivers/net/r8169/base/rtl8125cp_mcu.c | 78 ++ drivers/net/r8169/base/rtl8125cp_mcu.h | 10 drivers/net/r8169/meson.build | 2 + drivers/net/r8169/r8169_com

[PATCH v1 3/8] net/r8169: add support for RTL8127

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- doc/guides/nics/r8169.rst |5 +- drivers/net/r8169/base/rtl8125a.c |8 +- drivers/net/r8169/base/rtl8125a.h |1 - drivers/net/r8169/base/rtl8125a_mcu.c | 17 +- drivers/net/r8169/base/rtl8125b.c |5 +- drivers/net/r8169

[PATCH v1 4/8] net/r8169: remove cmac feature for RTL8125AP

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/r8169_dash.c | 23 +++ drivers/net/r8169/r8169_dash.h | 1 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/r8169/r8169_dash.c b/drivers/net/r8169/r8169_dash.c index c26d7a5280..1fdbe5c4ae 100644 -

[PATCH v1 0/8] net/r8169: support more cards

2025-06-09 Thread Howard Wang
This patch series includes the following updates: Add support for the RTL8168 1G NIC series. Add support for the RTL8127 10G NIC. Add support for the RTL8125CP 2.5G NIC. Update hardware configuration for RTL8125 and RTL8126. Howard Wang (8): net/r8169: add support for RTL8168 series net/r8169

[PATCH 7/8] net/r8169: add support for RTL8127ATF serdes interface

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/meson.build| 1 + drivers/net/r8169/r8169_ethdev.h | 3 + drivers/net/r8169/r8169_fiber.c | 201 +++ drivers/net/r8169/r8169_fiber.h | 42 +++ drivers/net/r8169/r8169_hw.c | 93 +- drivers

[PATCH 5/8] net/r8169: add RTL8127AP dash support

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/r8169_dash.c | 1 + drivers/net/r8169/r8169_hw.c | 32 ++-- drivers/net/r8169/r8169_phy.c | 34 ++ 3 files changed, 13 insertions(+), 54 deletions(-) diff --git a/drivers/net/r8169/r8

[PATCH 6/8] net/r8169: add support for RTL8125CP

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/base/rtl8125cp.c | 73 drivers/net/r8169/base/rtl8125cp_mcu.c | 78 ++ drivers/net/r8169/base/rtl8125cp_mcu.h | 10 drivers/net/r8169/meson.build | 2 + drivers/net/r8169/r8169_com

[PATCH 4/8] net/r8169: remove cmac feature for RTL8125AP

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- drivers/net/r8169/r8169_dash.c | 23 +++ drivers/net/r8169/r8169_dash.h | 1 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/r8169/r8169_dash.c b/drivers/net/r8169/r8169_dash.c index c26d7a5280..1fdbe5c4ae 100644 -

[PATCH 3/8] net/r8169: add support for RTL8127

2025-06-09 Thread Howard Wang
Signed-off-by: Howard Wang --- doc/guides/nics/r8169.rst |5 +- drivers/net/r8169/base/rtl8125a.c |8 +- drivers/net/r8169/base/rtl8125a.h |1 - drivers/net/r8169/base/rtl8125a_mcu.c | 17 +- drivers/net/r8169/base/rtl8125b.c |5 +- drivers/net/r8169

RE: [PATCH] net/mlx5: fix transceiver warning when not exist

2025-06-09 Thread Maayan Kashani
Sometimes it’s just a failure in the testing system and needs to retrigger the tests. Regards, Maayan Kashani From: Yogev Chaimovich Sent: Monday, 9 June 2025 16:11 To: Maayan Kashani ; Stephen Hemminger Cc: Dariusz Sosnowski ; Slava Ovsiienko ; Bing Zhao ; Ori Kam ; Suanming Mou ; Matan Az

RE: [PATCH v2 2/2] ethdev: remove callback checks from fast path

2025-06-09 Thread Sunil Kumar Kori
> > From: Sunil Kumar Kori > > Sent: Monday, 12 May 2025 17.07 > > > > rte_eth_fp_ops contains ops for fast path APIs. Each API validates > > availability of callback and then invoke it. > > These checks impact data path performace. > > Picking up the discussion from another thread [1]: > > > Fr

Re: [PATCH 1/3] net/hns3: fix the hardware GRO function is abnormal

2025-06-09 Thread huangdengdui
On 2025/6/10 1:13, Stephen Hemminger wrote: > On Mon, 9 Jun 2025 21:06:49 +0800 > Dengdui Huang wrote: > >> +rem = dma_addr & (HNS3_RX_DMA_ADDR_ALIGN_128 - 1); >> +if ((rx_offload & RTE_ETH_RX_OFFLOAD_TCP_LRO) && rem > 0) { >> +hns3_err(hw, "Hardware GRO is not supported whe

Re: [PATCH 3/3] net/hns3: fix can't use vector for Rx when set VLAN filter

2025-06-09 Thread huangdengdui
On 2025/6/10 1:12, Stephen Hemminger wrote: > On Mon, 9 Jun 2025 21:06:51 +0800 > Dengdui Huang wrote: > >> Currently, When RTE_ETH_RX_OFFLOAD_VLAN_FILTER offload is set, >> driver wouldn't select Rx vector algorithm. Actually, this >> algorithm support it, so open it. >> >> Fixes: a3d4f4d291d7

Re: [PATCH v9 0/3] net/macb: updated net macb driver

2025-06-09 Thread Stephen Hemminger
On Fri, 6 Jun 2025 09:05:14 + Wencheng Li wrote: > v9: > - Added RTE_PMD_REGISTER_KMOD_DEP macro to > declare dependency on macb_uio kernel module. > - The source link for the macb_uio module > can be found in macb.rst. > > v8: > - Delete log level reset code. > - Delete code that links t

Re: [PATCH v2] eal: force compilation of RTE_ASSERT expression

2025-06-09 Thread Thomas Monjalon
04/02/2025 20:46, Stephen Hemminger: > Even if RTE_ENABLE_ASSERT is not enabled, the expression used should > still be checked for compiler warnings. Use sizeof() > and ternary operator in same manner as the assert() macro to > cause the expression to be evaluated but not generate code. > > This w

Re: [PATCH v1 0/4] Adjust wording for NUMA vs. socket ID in DPDK

2025-06-09 Thread Thomas Monjalon
26/11/2024 14:14, Anatoly Burakov: > While initially, DPDK has used the term "socket ID" to refer to physical > package > ID, the last time DPDK read "physical_package_id" for socket ID was ~9 years > ago, so it's been a while since we've actually switched over to using the term > "socket" to mean

[PATCH v2] pcapng: allow any protocol link type for the interface block

2025-06-09 Thread Schneide
From: Dylan Schneider Allow the user to specify protocol link type when creating pcapng files. This change is needed to specify the protocol type in the pcapng file, DLT_EN10MB specifies ethernet packets only. This will allow dissectors for other protocols to be used on files generated by pcapng.

[PATCH] test/pmu: disable failing test

2025-06-09 Thread Thomas Monjalon
The PMU test is reported to fail on some platforms. Disabling until a fix is found. Signed-off-by: Thomas Monjalon --- app/test/test_pmu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_pmu.c b/app/test/test_pmu.c index 74cc88f949..10513bf9c9 100644 --- a

Re: [PATCH 1/3] net/hns3: fix the hardware GRO function is abnormal

2025-06-09 Thread Stephen Hemminger
On Mon, 9 Jun 2025 21:06:49 +0800 Dengdui Huang wrote: > + rem = dma_addr & (HNS3_RX_DMA_ADDR_ALIGN_128 - 1); > + if ((rx_offload & RTE_ETH_RX_OFFLOAD_TCP_LRO) && rem > 0) { > + hns3_err(hw, "Hardware GRO is not supported when mbuf DMA " > + "address is 64

[PATCH v18] trace: add PMU

2025-06-09 Thread Thomas Monjalon
From: Tomasz Duszynski In order to profile app, one needs to store significant amount of samples somewhere for an analysis later on. Since trace library supports storing data in a CTF format, lets take advantage of that and add a dedicated PMU tracepoint. Signed-off-by: Tomasz Duszynski --- v17

Re: [PATCH 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-09 Thread Stephen Hemminger
On Fri, 30 May 2025 12:43:33 +0530 Gagandeep Singh wrote: > This patch series introduces enhancements and fixes to the > NXP DPAA2 Ethernet driver. > It includes support for > - software taildrop on ordered queues. > - setup speed capabilities. > - DPAA2 resource version. > - MAC level stati

Re: [PATCH v17 0/4] add support for self monitoring

2025-06-09 Thread Thomas Monjalon
06/06/2025 18:27, Tomasz Duszynski: > Hi Thomas, > > >Hello, > > > >17/01/2025 10:00, Tomasz Duszynski: > >> lib/pmu/meson.build | 22 + > >> lib/pmu/pmu_arm64.c | 94 > >> lib/pmu/pmu_private.h| 32 ++ > >> lib/pmu/rte_pmu.c

Re: [PATCH v1 0/2] e1000 base code update

2025-06-09 Thread Bruce Richardson
On Mon, Jun 09, 2025 at 11:16:40AM +0100, Anatoly Burakov wrote: > Update e1000 base code version to 2025-06-04-14.40 > > Anatoly Burakov (1): > net/e1000: update README > > Vitaly Lifshits (1): > net/e1000: better clock synchronization workaround > > drivers/net/intel/e1000/base/README

Re: [PATCH v2] pcapng: allow any protocol link type for the interface block

2025-06-09 Thread Dylan Schneider
Hey Stephen, In this case, is it best to just pass 1 with a comment saying that is DLT_EN10MB? Or is there a way we can get it defined in all configs? From: Stephen Hemminger Sent: Sunday, June 8, 2025 4:34 PM To: Dylan Schneider Cc: dev@dpdk.org ; Thomas Monjalo

Re: [PATCH v6 1/1] net/intel: define __builtin_add_overflow for MSVC

2025-06-09 Thread Bruce Richardson
On Thu, Jun 05, 2025 at 04:57:24PM +0200, Morten Brørup wrote: > +TO: David and Thomas, were part of the discussion > +CC: Stephen > > > From: Andre Muezerie [mailto:andre...@linux.microsoft.com] > > Sent: Thursday, 5 June 2025 16.47 > > > > __builtin_add_overflow is gcc specific. A macro needs t

[PATCH v6 13/33] net/ixgbe: rename vector txq free mbufs

2025-06-09 Thread Anatoly Burakov
There is no reason why scalar and vector implementations of tx free mbufs function have to share the same name, in fact it is counter-productive because including `ixgbe_rxtx_vec_common.h` from `ixgbe_rxtx.c` will cause naming clashes. Rename the vector implementation to avoid naming clashes. Sign

RE: [RFC PATCH] mempool: Fix some Coverity defects

2025-06-09 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 9 June 2025 17.26 > > On Mon, 9 Jun 2025 14:42:26 + > Morten Brørup wrote: > > > @@ -141,8 +141,13 @@ rte_mem_page_size(void) > > { > > static size_t page_size; > > > > - if (!page_size) > > + if (page_si

[PATCH v6 33/33] net/intel: add common Tx mbuf recycle

2025-06-09 Thread Anatoly Burakov
Currently, there are duplicate implementations of Tx mbuf recycle in some drivers, specifically ixgbe and i40e. Move them into a common header. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Use the common desc_done function to check for DD bit status

[PATCH v6 32/33] net/intel: add common Rx mbuf recycle

2025-06-09 Thread Anatoly Burakov
Currently, there are duplicate implementations of Rx mbuf recycle in some drivers, specifically ixgbe and i40e. Move them into a common header. While we're at it, also support no-IOVA-in-mbuf case. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v5: - Renamed paddr

[PATCH v6 31/33] net/intel: support wider x86 vectors for Rx rearm

2025-06-09 Thread Anatoly Burakov
Currently, for 32-byte descriptor format, only SSE instruction set is supported. Add implementation for AVX2 and AVX512 instruction sets. Since we are using Rx descriptor definitions from common code, we can just use the generic descriptor definition, as we only ever write the first 16 bytes of it,

[PATCH v6 30/33] net/ixgbe: use common Rx rearm code

2025-06-09 Thread Anatoly Burakov
The ixgbe driver has implementations of vectorized mbuf rearm code that is identical to the ones in the common code, so just use those. Since ixgbe Rx descriptors are always 16-byte wide, force using 16-byte definitions in the common headers with a define flag. While we're at it, also make sure t

[PATCH v6 29/33] net/iavf: use common Rx rearm code

2025-06-09 Thread Anatoly Burakov
The iavf driver has implementations of vectorized mbuf rearm code that is identical to the ones in the common code, so just use those. While we're at it, also make sure to use common definitions for things like burst size, rearm threshold, and descriptors per loop, which is currently defined separ

[PATCH v6 28/33] net/i40e: use common Rx rearm code

2025-06-09 Thread Anatoly Burakov
The i40e driver has an implementation of vectorized mbuf rearm code that is identical to the one in the common code, so just use that. In addition, the i40e has implementations of Rx queue rearm for Neon and AltiVec instruction sets, so create common headers for each of the instruction sets, and u

[PATCH v6 24/33] net/i40e: use the common Rx queue structure

2025-06-09 Thread Anatoly Burakov
Make the i40e driver use the new common Rx queue structure. The i40e driver supports 16-byte and 32-byte Rx descriptor formats, which is shared by other drivers. To have fewer driver-specific definitions in common structures, add a header file defining shared descriptor formats, and switch between

[PATCH v6 27/33] net/intel: generalize vectorized Rx rearm

2025-06-09 Thread Anatoly Burakov
There is certain amount of duplication between various drivers when it comes to Rx ring rearm. This patch takes implementation from ice driver as a base because it has support for no IOVA in mbuf as well as all vector implementations, and moves them to a common file. While we're at it, also make s

[PATCH v6 25/33] net/ice: use the common Rx queue structure

2025-06-09 Thread Anatoly Burakov
Make the ice driver use the new common Rx queue structure. In addition to 16-byte and 32-byte descriptors supported by other drivers which we adjust ice driver to use where necessary, ice driver also supports flex descriptor format that is also shared by some of the other drivers, so add a common

[PATCH v6 26/33] net/iavf: use the common Rx queue structure

2025-06-09 Thread Anatoly Burakov
Make the iavf driver use the new common Rx queue structure. The iavf driver only supports 32-byte descriptors but they are of a common format, so replace all usages of iavf-specific descriptors with the common ones, and force the common queue structure to only use 32-byte descriptor formats for IA

[PATCH v6 23/33] net/ixgbe: create common Rx queue structure

2025-06-09 Thread Anatoly Burakov
In preparation for deduplication effort, generalize the Rx queue structure. The entire Rx queue structure is moved to common/rx.h, clarifying the comments where necessary, and separating common parts from ixgbe-specific parts. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes

[PATCH v6 20/33] net/i40e: clean up definitions

2025-06-09 Thread Anatoly Burakov
This commit does the following cleanups: - Remove RTE_ and RTE_PMD_ prefix from internal definitions - Mark vector-PMD related definitions with I40E_VPMD_ prefix - Remove unused definitions - Create "descriptors per loop" for different vector implementations (regular for SSE, Neon, AltiVec, wide

[PATCH v6 22/33] net/iavf: clean up definitions

2025-06-09 Thread Anatoly Burakov
This commit does the following cleanups: - Mark vector-PMD related definitions with IAVF_VPMD_ prefix - Create "descriptors per loop" for different vector implementations (regular for SSE, Neon, AltiVec, wide for AVX2, AVX512) - Make definitions' names match naming conventions used in other driv

[PATCH v6 21/33] net/ice: clean up definitions

2025-06-09 Thread Anatoly Burakov
This commit does the following cleanups: - Mark vector-PMD related definitions with ICE_VPMD_ prefix - Remove unused definitions - Create "descriptors per loop" for different vector implementations (regular for SSE, Neon, wide for AVX2, AVX512) Signed-off-by: Anatoly Burakov Acked-by: Bruce Ri

[PATCH v6 15/33] net/ixgbe: move vector Rx/Tx code to vec common

2025-06-09 Thread Anatoly Burakov
There is no reason why bits and pieces of vectorized code should be defined in `ixgbe_rxtx.c`, so move them to the vec common file. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v5: - Add this patch drivers/net/intel/ixgbe/ixgbe_rxtx.c | 41

[PATCH v6 19/33] net/ixgbe: clean up definitions

2025-06-09 Thread Anatoly Burakov
This patch does the following cleanups: - Remove RTE_ and RTE_PMD_ prefix from internal definitions - Mark vector-PMD related definitions with IXGBE_VPMD_ prefix Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Add this commit drivers/net/intel/ixgbe/i

[PATCH v6 18/33] net/ixgbe: add a desc done function

2025-06-09 Thread Anatoly Burakov
Add a function to check DD bit status, and use it everywhere we do these checks. Signed-off-by: Anatoly Burakov --- Notes: v6: - Move ixgbe_tx_desc_done() to ixgbe_rxtx.h to avoid compile errors on platforms that do not support vector driver v5: - Add this commit dri

[PATCH v6 17/33] net/ixgbe: replace always-true check

2025-06-09 Thread Anatoly Burakov
There is an option `RTE_PMD_PACKET_PREFETCH` in `rte_config.h` that is always set to 1 by default, and that controls some prefetch behavior in the driver. However, there's another prefetch behavior that is controlled by `RTE_PMD_USE_PREFETCH`, which is always defined unconditionally (literally usin

[PATCH v6 16/33] net/ixgbe: simplify vector PMD compilation

2025-06-09 Thread Anatoly Burakov
Currently, vector code is guarded by platform checks, and unused functions are implemented using stubs. Simplify things the following way: - Define a compilation flag `IXGBE_VPMD_SUPPORTED` that will enable or disable vector code support regardless of platform - Wrap platform checks with said d

[PATCH v6 14/33] net/ixgbe: refactor vector common code

2025-06-09 Thread Anatoly Burakov
Each vector driver provides its own Rx queue setup etc. functions, but actually they're entirely identical, and can be merged. Rename the `ixgbe_recycle_mbufs_vec_common.c` to `ixgbe_rxtx_vec_common.c` and move all common code there from each respective vector driver. Signed-off-by: Anatoly Burako

[PATCH v6 11/33] net/ixgbe: remove unnecessary platform checks

2025-06-09 Thread Anatoly Burakov
Some of the things that are only used by vector drivers is guarded by platform define checks, but there is actually no real reason to have those checks, because this code won't run anyway. Remove all of the unnecessary platform checks, and provide function stubs where necessary to make compilation

[PATCH v6 12/33] net/ixgbe: decouple scalar and vec rxq free mbufs

2025-06-09 Thread Anatoly Burakov
Currently, vector Rx queue release mbufs function is only called from inside the scalar variant. Decouple them to allow both to be defined separately from each other, and provide a common function that picks between the two when necessary. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson

[PATCH v6 08/33] net/iavf: remove 16-byte descriptor define

2025-06-09 Thread Anatoly Burakov
There are no physical functions that support having VF use 16-byte descriptors, so remove all 16-byte descriptor related code from the driver. Suggested-by: Bruce Richardson Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v4 -> v5: - Remove 16-byte descriptor relat

[PATCH v6 10/33] net/ixgbe: adjust indentation

2025-06-09 Thread Anatoly Burakov
There is wrong indentation in `ixgbe_set_tx_function`. Fix it. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v5: - Add this patch drivers/net/intel/ixgbe/ixgbe_rxtx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/intel/ixgb

[PATCH v6 09/33] net/ixgbe: simplify packet type support check

2025-06-09 Thread Anatoly Burakov
There are no differences between scalar and vector paths when it comes to packet type support, and the only data path currently not covered by the check is the VF representor path, because it's not meant to be used directly anyway. Simplify the check to reflect that fact. Signed-off-by: Anatoly Bu

[PATCH v6 07/33] net/ice: rename 16-byte descriptor define

2025-06-09 Thread Anatoly Burakov
In preparation for having a common definition for 16-byte and 32-byte Rx descriptors, rename RTE_LIBRTE_ICE_16BYTE_RX_DESC to RTE_NET_INTEL_USE_16BYTE_DESC. Suggested-by: Bruce Richardson Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Add this commit

[PATCH v6 05/33] net/ice: match variable name to other drivers

2025-06-09 Thread Anatoly Burakov
Currently, the ice driver has a variable that have the same semantics as in other drivers, but has a different name. Rename `rx_ring_dma` to `rx_ring_phys_addr` for consistency with other drivers. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Make this

[PATCH v6 04/33] net/i40e: match variable name to other drivers

2025-06-09 Thread Anatoly Burakov
Currently, the i40e driver has a variable that has the same semantics as in other drivers, but has a different name. Rename `rx_using_sse` to `vector_rx` to match it to other drivers. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Make this commit separ

[PATCH v6 06/33] net/i40e: rename 16-byte descriptor define

2025-06-09 Thread Anatoly Burakov
In preparation for having a common definition for 16-byte and 32-byte Rx descriptors, rename `RTE_LIBRTE_I40E_16BYTE_RX_DESC` to `RTE_NET_INTEL_USE_16BYTE_DESC``. Suggested-by: Bruce Richardson Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: v3 -> v4: - Add this co

[PATCH v6 03/33] net/ixgbe: match variable names to other drivers

2025-06-09 Thread Anatoly Burakov
Currently, the ixgbe driver has variables that have the same semantics as in other drivers, but have different names. Rename these variables to match ones in other drivers: - rdt_reg_addr -> qrx_tail (Rx ring tail register address) - rx_using_sse -> vector_rx (indicates if vectorized path is enabl

[PATCH v6 02/33] net/iavf: make IPsec stats dynamically allocated

2025-06-09 Thread Anatoly Burakov
Currently, the stats structure is directly embedded in the queue structure. We're about to move iavf driver to a common Rx queue structure, so we can't have driver-specific structures that aren't pointers, inside the common queue structure. To prepare, we replace direct embedding into the queue str

[PATCH v6 01/33] net/ixgbe: remove unused field in Rx queue struct

2025-06-09 Thread Anatoly Burakov
The `rdh` (read head) field in the `ixgbe_rx_queue` struct is not used anywhere in the codebase, and can be removed. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- drivers/net/intel/ixgbe/ixgbe_rxtx.c | 9 ++--- drivers/net/intel/ixgbe/ixgbe_rxtx.h | 1 - 2 files changed, 2 i

[PATCH v6 00/33] Intel PMD drivers Rx cleanup

2025-06-09 Thread Anatoly Burakov
There is certain amount of duplication between different ixgbe, i40e, ice, and iavf. This patchset specifically focuses on laying groundwork for deduplicating the Rx side of things - providing common queue definitions, using common Rx descriptor formats, and some low hanging fruit in terms of Rx co

Re: [PATCH v3 5/6] net/intel: add AVX512 Support for TxPP

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:22AM +, Soumyadeep Hore wrote: > Tx Time based queues are supported using AVX512 vector. > > Signed-off-by: Soumyadeep Hore > --- This looks to have a lot of duplicated code compared to the AVX2 version, can they be merged? /Bruce > drivers/net/intel/ice/ice_

Re: [PATCH v3 4/6] net/intel: add AVX2 Support for TxPP

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:21AM +, Soumyadeep Hore wrote: > Tx Time based queues are supported using AVX2 vector. > > Signed-off-by: Soumyadeep Hore > --- > drivers/net/intel/ice/ice_rxtx_vec_avx2.c | 135 +++- > drivers/net/intel/ice/ice_rxtx_vec_common.h | 17 +++ > 2

Re: [PATCH v5 32/34] net/intel: support wider x86 vectors for Rx rearm

2025-06-09 Thread Burakov, Anatoly
On 6/9/2025 1:54 PM, Bruce Richardson wrote: On Fri, Jun 06, 2025 at 06:17:07PM +0100, Anatoly Burakov wrote: Currently, for 32-byte descriptor format, only SSE instruction set is supported. Add implementation for AVX2 and AVX512 instruction sets. Since we are using Rx descriptor definitions fro

[RFC PATCH] mempool: Fix some Coverity defects

2025-06-09 Thread Morten Brørup
Coverity reports some issues regarding the mempool library. I have tried fixing them. How to test if Coverity is satisfied with these fixes? Function rte_mem_page_size() returns a negative number. This seems to be the root cause of the following mempool defects. And since the function is used else

Re: [PATCH v3 3/6] net/intel: add TxPP Support for E830

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:20AM +, Soumyadeep Hore wrote: > Add support for Tx Time based queues. This is used to schedule > packets based on Tx timestamp. > > Signed-off-by: Soumyadeep Hore Hi more review comments inline below. > --- > drivers/net/intel/common/tx.h | 14

Re: [PATCH v3 2/6] net/intel: add read clock feature in ICE

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:19AM +, Soumyadeep Hore wrote: > Adding eth_ice_read_clock() feature to get current time > for scheduling Packets based on Tx time. > > Signed-off-by: Soumyadeep Hore > --- > drivers/net/intel/ice/ice_ethdev.c | 13 + > 1 file changed, 13 insertions(

Re: [PATCH v3 6/6] doc: announce TxPP support for E830 adapters

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:23AM +, Soumyadeep Hore wrote: > E830 adapters currently support Tx Time based queues. > > Signed-off-by: Soumyadeep Hore > --- > doc/guides/nics/ice.rst | 16 > 1 file changed, 16 insertions(+) > > diff --git a/doc/guides/nics/ice.rst b/doc/gu

Re: [PATCH V4] Add new tracepoint function for type time_t

2025-06-09 Thread Thomas Monjalon
27/05/2025 14:04, changqing...@windriver.com: > From: Changqing Li > > To support Y2038 issue, for 32bit system, -D_TIME_BITS=64 is passed to > gcc, struct timespec time->tv_sec is 64bit, but size_t is 32bits, so > dpdk will compile failed with error: > "../git/lib/ethdev/ethdev_trace.h: In funct

Re: [PATCH] net/mlx5: fix transceiver warning when not exist

2025-06-09 Thread Yogev Chaimovich
Hi, Actually looks like we're going with another workaround, so I might not be needing my original patch. Also, I do not understand how my patch (not printing a log) makes a test fail - I couldn't find that test in DPDK to verify. I'm not that familiar though.. Yogev

[PATCH 2/3] net/hns3: fix can't use vector for Tx when not set fast free

2025-06-09 Thread Dengdui Huang
Currently, select Tx vector algorithm only when tx_offload is RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE. Actually, this algorithm already supported the case that tx_offload isn't fast free. Fixes: e31f123db06b ("net/hns3: support NEON Tx") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/ne

[PATCH 0/3] net/hns3: bugfix for hns3

2025-06-09 Thread Dengdui Huang
This patchset fixes some bugs. Dengdui Huang (3): net/hns3: fix the hardware GRO function is abnormal net/hns3: fix can't use vector for Tx when not set fast free net/hns3: fix can't use vector for Rx when set VLAN filter drivers/net/hns3/hns3_rxtx.c | 12 drivers/net/hns3

[PATCH 1/3] net/hns3: fix the hardware GRO function is abnormal

2025-06-09 Thread Dengdui Huang
Currently, the alignment requirements of the data address in mbuf is 64-byte on HIP08 platform. However, the GRO feature will be abnormal in this case. Many online applications already use 64-byte aligned. So a check is added to avoid using the GRO function when 64-byte aligned is used. Fixes: d1

[PATCH 3/3] net/hns3: fix can't use vector for Rx when set VLAN filter

2025-06-09 Thread Dengdui Huang
Currently, When RTE_ETH_RX_OFFLOAD_VLAN_FILTER offload is set, driver wouldn't select Rx vector algorithm. Actually, this algorithm support it, so open it. Fixes: a3d4f4d291d7 ("net/hns3: support NEON Rx") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_rxtx_vec.c | 4

Re: [PATCH v3 3/6] net/intel: add TxPP Support for E830

2025-06-09 Thread Bruce Richardson
On Sun, Jun 08, 2025 at 11:32:20AM +, Soumyadeep Hore wrote: > Add support for Tx Time based queues. This is used to schedule > packets based on Tx timestamp. > > Signed-off-by: Soumyadeep Hore Some initial review comments inline below. /Bruce > --- > drivers/net/intel/common/tx.h

Re: [PATCH v2 2/2] fix eal/freebsd: unregister alarm callback before free

2025-06-09 Thread Thomas Monjalon
03/06/2025 10:29, Bruce Richardson: > On Fri, May 30, 2025 at 09:18:44AM +0100, Rui Ferreira wrote: > > Unregister callback on cleanup to avoid use after free from the > > interrupt thread (eal_intr_thread_main). > > > > To be more defensive, set ptr to NULL if we can unregister. > > > > rte_intr

Re: [PATCH v4] build: reduce use of AVX compiler flags

2025-06-09 Thread Bruce Richardson
On Mon, Jun 09, 2025 at 01:23:18PM +0100, Bruce Richardson wrote: > On Mon, Jun 09, 2025 at 11:59:15AM +, Varghese, Vipin wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > > > > -Original Message- > > > From: Bruce Richardson > > > Sent: Monday, June 9, 2025 1:28

Re: [PATCH v4] build: reduce use of AVX compiler flags

2025-06-09 Thread Bruce Richardson
On Mon, Jun 09, 2025 at 11:59:15AM +, Varghese, Vipin wrote: > [AMD Official Use Only - AMD Internal Distribution Only] > > > -Original Message- > > From: Bruce Richardson > > Sent: Monday, June 9, 2025 1:28 PM > > To: Varghese, Vipin > > Cc: dev@dpdk.org; Song, Keesang > > Subject:

RE: [PATCH v4] build: reduce use of AVX compiler flags

2025-06-09 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] > -Original Message- > From: Bruce Richardson > Sent: Monday, June 9, 2025 1:28 PM > To: Varghese, Vipin > Cc: dev@dpdk.org; Song, Keesang > Subject: Re: [PATCH v4] build: reduce use of AVX compiler flags > > Caution: This message

Re: [PATCH v5 19/34] net/ixgbe: add a desc done function

2025-06-09 Thread Bruce Richardson
On Mon, Jun 09, 2025 at 11:04:39AM +0200, Burakov, Anatoly wrote: > On 6/6/2025 7:08 PM, Anatoly Burakov wrote: > > Add a function to check DD bit status, and use it everywhere we do these > > checks. > > > > Signed-off-by: Anatoly Burakov > > --- > > > > Notes: > > v5: > > - Add this

Re: [PATCH v5 32/34] net/intel: support wider x86 vectors for Rx rearm

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:17:07PM +0100, Anatoly Burakov wrote: > Currently, for 32-byte descriptor format, only SSE instruction set is > supported. Add implementation for AVX2 and AVX512 instruction sets. Since > we are using Rx descriptor definitions from common code, we can just use > the gener

Re: [PATCH v5 27/34] net/iavf: use the common Rx queue structure

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:16:31PM +0100, Anatoly Burakov wrote: > Make the iavf driver use the new common Rx queue structure. > > The iavf driver only supports 32-byte descriptors but they are of a common > format, so replace all usages of iavf-specific descriptors with the > common ones, and for

Re: [PATCH v5 16/34] net/ixgbe: move vector Rx/Tx code to vec common

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:08:55PM +0100, Anatoly Burakov wrote: > There is no reason why bits and pieces of vectorized code should be > defined in `ixgbe_rxtx.c`, so move them to the vec common file. > > Signed-off-by: Anatoly Burakov > --- > drivers/net/intel/ixgbe/ixgbe_rxtx.c | 38 +

Re: [PATCH v5 15/34] net/ixgbe: refactor vector common code

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:08:54PM +0100, Anatoly Burakov wrote: > Each vector driver provides its own Rx queue setup etc. functions, but > actually they're entirely identical, and can be merged. Rename the > `ixgbe_recycle_mbufs_vec_common.c` to `ixgbe_rxtx_vec_common.c` and move > all common code

Re: [PATCH v5 14/34] net/ixgbe: rename vector txq free mbufs

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:08:53PM +0100, Anatoly Burakov wrote: > There is no reason why scalar and vector implementations of tx free mbufs > function have to share the same name. Fix it. > > Signed-off-by: Anatoly Burakov > --- > Acked-by: Bruce Richardson

Re: [PATCH v5 13/34] net/ixgbe: decouple scalar and vec rxq free mbufs

2025-06-09 Thread Bruce Richardson
On Fri, Jun 06, 2025 at 06:08:52PM +0100, Anatoly Burakov wrote: > Currently, vector Rx queue release mbufs function is only called from > inside the scalar variant. Decouple them to allow both to be defined > separately from each other, and provide a common function that picks > between the two wh

[PATCH v2 7/7] crypto/cnxk: copy 8B iv into sess in aes ctr

2025-06-09 Thread Tejasree Kondoj
From: Nithinsen Kaithakadan Copy 8 bytes of the IV into the iv field within the session for the AES CTR algorithm. Signed-off-by: Nithinsen Kaithakadan --- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 7 --- drivers/crypto/cnxk/cn20k_ipsec_la_ops.h | 7 --- 2 files changed, 8 insertions(

[PATCH v2 6/7] common/cnxk: update qsize in CPT iq enable

2025-06-09 Thread Tejasree Kondoj
From: Nithinsen Kaithakadan Reconfigure qsize in each CPT iq enable call. Fixes: 3bf87839559 ("common/cnxk: move instruction queue enable to ROC") Cc: sta...@dpdk.org Signed-off-by: Nithinsen Kaithakadan --- drivers/common/cnxk/roc_cpt.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 5/7] crypto/cnxk: support asymmetric sessionless mode

2025-06-09 Thread Tejasree Kondoj
From: Rupesh Chiluka Add support for sessionless asymmetric operations in cnxk CPT PMD. Signed-off-by: Rupesh Chiluka Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/cryptodevs/features/cn9k.ini | 1 + doc

[PATCH v2 3/7] crypto/cnxk: extend check for max supported gather entries

2025-06-09 Thread Tejasree Kondoj
From: Rupesh Chiluka Extend check for max supported gather entries in CNXK CPT PMD. Signed-off-by: Rupesh Chiluka --- drivers/common/cnxk/roc_cpt_sg.h | 1 + drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 10 ++ drivers/crypto/cnxk/cn10k_tls_ops.h | 10 ++ drivers/cry

[PATCH v2 4/7] crypto/cnxk: add meta variable in CPT structure

2025-06-09 Thread Tejasree Kondoj
Adding meta variable in CPT high level structure to pass custom metadata to CN20K firmware. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h b/drivers/crypto/cnxk/cnxk_cry

  1   2   >