[PATCH] net/cnxk: restore MAC address table during port reset

2025-04-08 Thread skori
From: Sunil Kumar Kori When user requests to configure a device which is already in configured state then first device gets resets to default and then reconfigured with latest parameters. While resetting the device, MAC address table is left stale which causes entry update in later state. Hence

RE: [PATCH] doc/linux_gsg: remove note referring to old pkg-config

2025-04-08 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Tuesday, 8 April 2025 19.19 > > Latest DPDK releases no longer officially support RHEL 7 as a target > platform, so remove the note about pkg-config not working on those > systems. > > Signed-off-by: Bruce Richardson > --- > d

RE: [PATCH] doc/linux_gsg: update recommended compiler versions

2025-04-08 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Tuesday, 8 April 2025 19.19 > > Rather than specifying a minimum compiler version, update the docs to > recommend a particular compiler version. In other words, earlier > versions may work, but are not officially supported, or ma

Re: [PATCH] net/igc: fix xstats name

2025-04-08 Thread Stephen Hemminger
On Wed, 9 Apr 2025 09:07:11 +0800 Kaiwen Deng wrote: > The xstats name needs to be changed correctly > tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets. > > Fixes: e6defdfddc3b ("net/igc: enable statistics") > Cc: sta...@dpdk.org > > Signed-off-by: Kaiwen Deng > --- > driver

[PATCH] doc: update kernel version requirement

2025-04-08 Thread Stephen Hemminger
The 4.19 kernel version was end of life in December 2024. Update to 5.4 and also add better description of what "not supported" means in this case. Signed-off-by: Stephen Hemminger Acked-by: Morten Brørup --- doc/guides/linux_gsg/sys_reqs.rst | 17 - 1 file changed, 12 insertion

[PATCH v2 08/10] net/thunderx: use common base code build handling

2025-04-08 Thread Bruce Richardson
Use the base code build handling logic in the drivers/meson.build file, rather than re-implementing it in the driver itself. Signed-off-by: Bruce Richardson --- drivers/net/thunderx/base/meson.build | 10 +- drivers/net/thunderx/meson.build | 3 --- 2 files changed, 1 insertion(+),

Re: [RFC PATCH] drivers: add generic build of SVE files

2025-04-08 Thread Bruce Richardson
On Mon, Apr 07, 2025 at 04:28:57PM +0100, Bruce Richardson wrote: > For SVE, as for AVX2 and AVX-512, support building files for these ISAs > from the top-level drivers/meson.build file, rather than having each > driver re-implement it. > > This removes the remaining build task for drivers in DPDK

[PATCH v1] net/zxdh: fix using static assert in macro definition

2025-04-08 Thread Junlong Wang
using static_assert(RTE_BUILD_BUG_ON) replaced BUILD_BUG_ON. Fixes: 9c3a123f9e08 ("net/zxdh: optimize msg processing ops and modify some issues") Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_common.h | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/

[PATCH] net/igb: fix xstats name

2025-04-08 Thread Kaiwen Deng
The xstats name needs to be changed correctly. tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets. Fixes: 38552317dcef ("igb: add extended stats") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/intel/e1000/igb_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH v4 1/1] mbuf: enable to be compiled with MSVC

2025-04-08 Thread Andre Muezerie
Now that the issues preventing this lib from being compiled with MSVC are fixed it can be included in the compilation. The "net" library will automatically get compiled as well as it has a dependency on "mbuf" which will now get fulfilled. Signed-off-by: Andre Muezerie Acked-by: Bruce Richardson

[PATCH v5 3/3] hash_readwrite_autotest: fix printf parameters

2025-04-08 Thread Andre Muezerie
Compiling with MSVC logs the warnings below, which result in build error: ../app/test/test_hash_readwrite.c(73): warning C4476: 'printf' : unknown type field character ''' in format specifier ../app/test/test_hash_readwrite.c(75): warning C4474: 'printf' : too many arguments passed for for

[PATCH v5 1/3] eal: add function rte_size_to_str

2025-04-08 Thread Andre Muezerie
It's common to use %' in the printf format specifier to make large numbers more easily readable by having the thousands grouped. However, this grouping does not work on Windows. Therefore, a function is needed to make uint64_t numbers more easily readable. There are at least two tests that can bene

[PATCH v5 2/3] hash_multiwriter_autotest: fix printf parameters

2025-04-08 Thread Andre Muezerie
Compiling with MSVC logs the warnings below, which result in build error: ../app/test/test_hash_multiwriter.c(71): warning C4476: 'printf' : unknown type field character ''' in format specifier ../app/test/test_hash_multiwriter.c(73): warning C4474: 'printf' : too many arguments passed for

[PATCH v5 0/3] fix how large numbers are printed by hash tests

2025-04-08 Thread Andre Muezerie
v5: - Rebased and updated to conform to new function versioning mechanism. v4: - Added parameter "unit", which allows rte_size_to_str() to be smarter about the need to append a space after the number. This keeps the function easy to use and avoids the need for complex explanations about

Re: [PATCH] net/cpfl: enable AVX2 for singleq Rx/Tx

2025-04-08 Thread Bruce Richardson
On Wed, Mar 12, 2025 at 09:22:42PM +0530, Shaiq Wani wrote: > In case some CPUs don't support AVX512. Enable AVX2 for them to > get better per-core performance. > > The single queue model processes all packets in order while > the split queue model separates packet data and metadata into > differe

[patch v5 1/6] net/netvsc: introduce private data for storing vmbus device for secondary process

2025-04-08 Thread longli
From: Long Li To prepare for supporting to set hyperv event from secondary process when the channel has monitoring disable, introduce a private data region for storing the vmbus device. The secondary process will get access to its vmbus device in case it needs to signal the host. Signed-off-by:

[patch v5 6/6] bus/vmbus: set event for channel without monitoring support

2025-04-08 Thread longli
From: Long Li For vmbus channels without monitoring support, use kernel UIO interface to indicate packet through interrupt page and UIO file handle. Signed-off-by: Long Li --- Changes: v4: replace RTE_ATOMIC(uint32_t) * with RTE_ATOMIC(uint32_t *) for declaring variable drivers/bus/vmbus/vmb

RE: [EXTERNAL] Re: [patch v4 6/6] bus/vmbus: set event for channel without monitoring support

2025-04-08 Thread Long Li
> Subject: [EXTERNAL] Re: [patch v4 6/6] bus/vmbus: set event for channel > without > monitoring support > > On Mon, 7 Apr 2025 15:45:04 -0700 > lon...@linuxonhyperv.com wrote: > > > From: Long Li > > > > For vmbus channels without monitoring support, use kernel UIO > > interface to indicate p

[patch v5 4/6] bus/vmbus: support channels without monitoring enabled

2025-04-08 Thread longli
From: Long Li Hyperv host may offer channels without monitor enabled. The max monitor ID it supports is 128. Over those channels without monitor enabled, Hyperv does not send or receive large amount of data traffic and almost all the data traffic is going over the VF. Change the code to not fail

[patch v5 2/6] net/netvsc: introduce get_vmbus_device to get the vmbus device

2025-04-08 Thread longli
From: Long Li Introduce a function get the vmbus device from hn_data. For secondary process, the vmbus device is in eth_dev's private region. Signed-off-by: Long Li --- drivers/net/netvsc/hn_nvs.c | 15 +++ drivers/net/netvsc/hn_nvs.h | 2 ++ 2 files changed, 17 insertions(+) dif

[patch v5 5/6] bus/vmbus: add rte_vmbus_device to all functions accessing vmbus

2025-04-08 Thread longli
From: Long Li The secondary process can access its vmbus device through device private region. Add and pass it on all call chains leading to vmbus code. Signed-off-by: Long Li --- Change log. v5: rebased to the latest net-next drivers/bus/vmbus/linux/vmbus_uio.c | 2 +- drivers/bus/vmbus/pri

[patch v5 3/6] bus/vmbus: store UIO fd for secondary process

2025-04-08 Thread longli
From: Long Li Secondary process will get access to vmbus device and this UIO fd for signaling hyperv host on channels without monitoring support. Signed-off-by: Long Li --- drivers/bus/vmbus/vmbus_common_uio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers

[patch v5 0/6] Support VMBUS channels without monitoring enabled

2025-04-08 Thread longli
From: Long Li Hyperv may expose VMBUS channels without monitoring enabled. In this case, it programs almost all the data traffic to VF. This patchset enabled vmbus/netvsc to use channels without monitoring enabled. This needs to change the APIs exposed by drivers/bus/vmbus. Because those APIs a

[PATCH v4 0/1] mbuf: enable to be compiled with MSVC

2025-04-08 Thread Andre Muezerie
Now that the issues preventing this lib from being compiled with MSVC are fixed it can be included in the compilation. v4: - removed all symbol-related changes, leaving only the change to enable MSVC compilation. - only adding cflags '-mpclmul' and '-maes' when the compiler used supports them.

Re: [PATCH v3 6/6] mbuf: enable to be compiled with MSVC

2025-04-08 Thread Andre Muezerie
On Mon, Apr 07, 2025 at 03:53:06PM +0200, David Marchand wrote: > Hello Andre, > > On Thu, Feb 20, 2025 at 9:32 PM Andre Muezerie > wrote: > > > > Now that the issues preventing this lib from be compiled with MSVC > > are fixed it can be included in the compilation. > > > > The "net" library will

[PATCH] app/testpmd: revert auto attach/detach

2025-04-08 Thread Stephen Hemminger
Revert "app/testpmd: add port attach/detach for multiple process" This reverts commit 994635edb2c038e64617bcf2790a8cd326c3e8e0. This commit breaks using pdump and other secondary processes that create there own devices. The patch makes testpmd grab any new hotplug device and configure it. It may

[DPDK/testpmd Bug 1695] pdump regression caused by test-pmd change

2025-04-08 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1695 Bug ID: 1695 Summary: pdump regression caused by test-pmd change Product: DPDK Version: 25.03 Hardware: All OS: All Status: UNCONFIRMED Severity: major

Re: [RFC] eal: remove support for I/O port

2025-04-08 Thread Stephen Hemminger
On Tue, 8 Apr 2025 11:30:32 -0700 Stephen Hemminger wrote: > In early days of virtio, the x86 I/O instructions were used > to ring the doorbell for host access. To support these DPDK > needed to enable IO access. This is no longer necessary and > the vestiage can be marked deprecated. > > Signe

Re: 22.11.8 patches review and test

2025-04-08 Thread Luca Boccassi
On Tue, 8 Apr 2025 at 19:31, Ali Alnubani wrote: > > > -Original Message- > > From: luca.bocca...@gmail.com > > Sent: Wednesday, March 26, 2025 1:51 PM > > To: sta...@dpdk.org > > Cc: dev@dpdk.org; Ali Alnubani ; David Christensen > > ; Hemant Agrawal ; Ian > > Stokes ; Jerin Jacob ; John

DPDK Release Status Meeting 2025-04-08

2025-04-08 Thread Mcnamara, John
Release status meeting minutes 2025-04-08 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * ARM * Debian * Intel * Marvell * Red Hat Release Dates - The following are the proposed working dates for 27.03:

RE: 22.11.8 patches review and test

2025-04-08 Thread Ali Alnubani
> -Original Message- > From: luca.bocca...@gmail.com > Sent: Wednesday, March 26, 2025 1:51 PM > To: sta...@dpdk.org > Cc: dev@dpdk.org; Ali Alnubani ; David Christensen > ; Hemant Agrawal ; Ian > Stokes ; Jerin Jacob ; John > McNamara ; Kevin Traynor > ; Luca Boccassi ; Pei Zhang > ; Rasl

[RFC] eal: remove support for I/O port

2025-04-08 Thread Stephen Hemminger
In early days of virtio, the x86 I/O instructions were used to ring the doorbell for host access. To support these DPDK needed to enable IO access. This is no longer necessary and the vestiage can be marked deprecated. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst |

[PATCH] doc/linux_gsg: remove note referring to old pkg-config

2025-04-08 Thread Bruce Richardson
Latest DPDK releases no longer officially support RHEL 7 as a target platform, so remove the note about pkg-config not working on those systems. Signed-off-by: Bruce Richardson --- doc/guides/linux_gsg/sys_reqs.rst | 7 --- 1 file changed, 7 deletions(-) diff --git a/doc/guides/linux_gsg/sy

RE: [RFC PATCH] drivers: add generic build of SVE files

2025-04-08 Thread Wathsala Wathawana Vithanage
> -Original Message- > From: David Marchand > Sent: Monday, April 7, 2025 10:50 AM > To: Bruce Richardson > Cc: dev@dpdk.org; Jie Hai > Subject: Re: [RFC PATCH] drivers: add generic build of SVE files > > On Mon, Apr 7, 2025 at 5:29 PM Bruce Richardson > wrote: > > > > For SVE, as fo

Re: [PATCH v6 0/4] net/intel: using common functions in idpf driver

2025-04-08 Thread Bruce Richardson
On Thu, Apr 03, 2025 at 04:54:25PM +0530, Shaiq Wani wrote: > reworked the drivers to use the common functions > and structures from drivers/net/intel/common. > > Shaiq Wani (4): > net/intel: align Tx queue struct field names > net/intel: use common Tx entry structure > net/intel: use common

Re: [PATCH v6 4/4] net/idpf: use common Tx free fn in idpf

2025-04-08 Thread Bruce Richardson
On Thu, Apr 03, 2025 at 04:54:29PM +0530, Shaiq Wani wrote: > Switch the idpf driver to use the common Tx free function for > AVX2 and AVX512 > > Signed-off-by: Shaiq Wani > --- > .../net/intel/idpf/idpf_common_rxtx_avx2.c| 61 + > .../net/intel/idpf/idpf_common_rxtx_avx512.c | 230 +--

Re: [PATCH v6 3/4] net/intel: use common Tx queue structure

2025-04-08 Thread Bruce Richardson
On Thu, Apr 03, 2025 at 04:54:28PM +0530, Shaiq Wani wrote: > Merge in additional fields used by the idpf driver and then convert it > over to using the common Tx queue structure > > Signed-off-by: Shaiq Wani > --- > drivers/net/intel/common/tx.h | 18 ++ > drivers/net/intel/

Re: [PATCH v6 1/4] net/intel: align Tx queue struct field names

2025-04-08 Thread Bruce Richardson
On Thu, Apr 03, 2025 at 04:54:26PM +0530, Shaiq Wani wrote: > Align the Tx queue struct field names in idpf and > cpfl driver with the common Tx queue struct. > > Signed-off-by: Shaiq Wani > --- Acked-by: Bruce Richardson

Re: [PATCH] net/cpfl: enable AVX2 for singleq Rx/Tx

2025-04-08 Thread Bruce Richardson
On Tue, Apr 08, 2025 at 05:16:11PM +0100, Bruce Richardson wrote: > On Wed, Mar 12, 2025 at 09:22:42PM +0530, Shaiq Wani wrote: > > In case some CPUs don't support AVX512. Enable AVX2 for them to > > get better per-core performance. > > > > The single queue model processes all packets in order whi

[PATCH] net/ice: fix Rx of large packets

2025-04-08 Thread Bruce Richardson
The determination of whether or not the buffer size is less than the packet MTU is made in the Rx queue start function in the ice driver. This means that we cannot choose the Rx function before we have started the queues. Move the Rx function section down in the code to fix this. Fixes: 3c79a3d91d

Re: [RFC PATCH] add rust binding support to DPDK

2025-04-08 Thread Bruce Richardson
On Tue, Apr 08, 2025 at 03:58:38PM +0100, Bruce Richardson wrote: > Add a Cargo.toml file in the root folder and a number of other scripts > and rust-related files into buildtools/rust, which then enables DPDK to > be cloned and built as a rust crate - all-be-it one with only two > functions: rte_e

Re: 22.11.8 patches review and test

2025-04-08 Thread Luca Boccassi
On Wed, 26 Mar 2025 at 11:51, wrote: > > Hi all, > > Here is a list of patches targeted for stable release 22.11.8. > > The planned date for the final release is 2025/04/10. > > Please help with testing and validation of your use cases and report > any issues/results with reply-all to this mail. F

[RFC PATCH] add rust binding support to DPDK

2025-04-08 Thread Bruce Richardson
Add a Cargo.toml file in the root folder and a number of other scripts and rust-related files into buildtools/rust, which then enables DPDK to be cloned and built as a rust crate - all-be-it one with only two functions: rte_eal_init and rte_eal_cleanup. Signed-off-by: Bruce Richardson --- This R

[DPDK/ethdev Bug 1673] failed to parse device "net_tap0"

2025-04-08 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1673 Stephen Hemminger (step...@networkplumber.org) changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

Re: Inquiry About DPDK's Roadmap for Dynamic CPU Scaling Support

2025-04-08 Thread Stephen Hemminger
On Fri, 28 Mar 2025 12:37:31 +0900 郭春霞 wrote: > Dear DPDK Team, > > I hope this email finds you well.  > > I'm writing to inquire about DPDK's future plans regarding dynamic CPU > initialization support, particularly in Kubernetes environments where > exclusive CPU Pod scaling is being enhanc

[PATCH 2/7] net/hns3: fix memory leakage in failure path

2025-04-08 Thread Dengdui Huang
When the hns3_dfx_reg_fetch_data() function returns from processing failure, cmd_descs is not freed, which leads to leakage. This patch fit it. By the way, this patch uses calloc to apply for heap memory instead of hugepage memory. Fixes: ef1fbd355451 ("net/hns3: add more registers to dump") Cc:

[PATCH v4] event/dlb2: consolidate AVX512 and SSE changes

2025-04-08 Thread Tirthendu Sarkar
Streamline code for AVX512 and SSE by consolidating the common code and adding runtime check for selecting appropriate path based on CPU capability. Signed-off-by: Tirthendu Sarkar --- v4: - Modify some AVX512 instructions to resolve compilation error on older compliers v3: - Simplified cod

[RFC 0/1] support ThreadSanitizer

2025-04-08 Thread Dengdui Huang
When I tried to enable TSan on DPDK using this patch, DPDK cannot be initialized. When the DPDK initializes the memseg, a large number of address space is reserved. However, The introduction of ThreadSanitizer brings a large amount of memory overhead. As a result, the address space is insuffici

[RFC 1/1] build: support ThreadSanitizer

2025-04-08 Thread Dengdui Huang
ThreadSanitizer is a tool that detects data races. It consists of a compiler instrumentation module and a run-time library. Typical slowdown introduced by ThreadSanitizer is about 5x-15x. Typical memory overhead introduced by ThreadSanitizer is about 5x-10x. UBSan is integrated with gcc and clang

[PATCH 1/3] net/nfp: support get RSS algorithm capability

2025-04-08 Thread Chaoyong He
Implement the logic of get RSS algorithm capability, also add the logic of print RSS algorithm capability. Signed-off-by: Chaoyong He --- drivers/common/nfp/nfp_common.h | 1 + drivers/common/nfp/nfp_common_ctrl.h | 3 +++ .../net/nfp/flower/nfp_flower_representor.c |

Inquiry About DPDK's Roadmap for Dynamic CPU Scaling Support

2025-04-08 Thread 郭春霞
Dear DPDK Team, I hope this email finds you well.  I'm writing to inquire about DPDK's future plans regarding dynamic CPU initialization support, particularly in Kubernetes environments where exclusive CPU Pod scaling is being enhanced. Backgroud:With Kubernetes upcoming improvements to In

[PATCH 5/5] app/eventdev: update eventdev app for SNOW-V

2025-04-08 Thread Radu Nicolau
Update eventdev app to handle SNOW-V correctly. Signed-off-by: Radu Nicolau --- app/test-eventdev/evt_options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c index 323d1e724d..7903b5959c 100644 --- a/app/te

[PATCH 2/5] examples/l2fwd-crypto: add support for SNOW-V

2025-04-08 Thread Radu Nicolau
Update l2fwd-crypto to be able to correctly handle SNOW-V Signed-off-by: Radu Nicolau --- examples/l2fwd-crypto/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index a441312f55..f1a6ca8899 100644 --- a/examp

[PATCH 4/5] app/crypto-perf: add support for SNOW-V

2025-04-08 Thread Radu Nicolau
Add suport for SNOW-V and SNOW-V AEAD algorithms. Signed-off-by: Radu Nicolau --- app/test-crypto-perf/cperf_ops.c | 6 -- doc/guides/tools/cryptoperf.rst | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops

[PATCH] cryptodev: add SNOW-V algorithms

2025-04-08 Thread Radu Nicolau
Add SNOW-V and SNOW-V AEAD mode algorithms to cryptodev API. Signed-off-by: Radu Nicolau --- lib/cryptodev/rte_crypto_sym.h | 17 - lib/cryptodev/rte_cryptodev.c | 4 +++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/crypt

Re: [PATCH] maintainers: update for hns3

2025-04-08 Thread fengchengwen
Acked-by: Chengwen Feng On 2025/4/3 18:01, lihuisong (C) wrote: > > 在 2025/4/2 16:47, Jie Hai 写道: >> I am moving on to other things and dengdui is going to >> take over the role of hns3 maintainer. Update the >> MAINTAINERS accordingly. >> >> Signed-off-by: Jie Hai > Thanks for your contributio

Re: [PATCH v4 0/2] node: add mbuf dynamic field for nodes

2025-04-08 Thread David Marchand
Hello Nitin, On Mon, Apr 7, 2025 at 9:48 AM Nitin Saxena wrote: > > Currently each rte_node registers separate mbuf dynamic fields for their > own purpose. This leads to wastage of mbuf space as once mbuf get passed > a particular node, the registered dynamic field(by that node) is no > longer us

Re: [PATCH v4 0/2] node: add mbuf dynamic field for nodes

2025-04-08 Thread Nitin Saxena
Hi David, Thanks, Nitin On Tue, Apr 8, 2025 at 1:05 PM David Marchand wrote: > > Hello Nitin, > > On Mon, Apr 7, 2025 at 9:48 AM Nitin Saxena wrote: > > > > Currently each rte_node registers separate mbuf dynamic fields for their > > own purpose. This leads to wastage of mbuf space as once mbuf

[PATCH 5/7] net/hns3: fix incorrect failed rollback

2025-04-08 Thread Dengdui Huang
When the port is started, if the Tx queue fails to be started, the map interrupt should be rolled back. Fixes: fdfde7a4a0f8 ("net/hns3: fix mbuf leakage") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 1/7] net/hns3: fix variable overflow

2025-04-08 Thread Dengdui Huang
The number of interrupt vector may exceed the range of uint8_t. So hns3_unmap_rx_interrupt() should use uint16_t for 'vec' variable. Fixes: 02a7b55657b2 ("net/hns3: support Rx interrupt") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_common.c | 4 ++-- 1 file change

[PATCH 7/7] net/hns3: fix unrelease some resources on reset case

2025-04-08 Thread Dengdui Huang
Some resources, like, unmapping Rx interrupt, doesn't perform when execute dev_stop on reset. This will lead to other issues. Fixes: 2790c6464725 ("net/hns3: support device reset") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_ethdev.c | 19 +++ 1 fi

[PATCH 4/7] net/hns3: fix memory leakage for indirect action

2025-04-08 Thread Dengdui Huang
Currently, when the application creates an indirect action, the hns3 driver allocates a memory for the structure rte_flow_action_handle and returns this structure pointer to application. When the application invokes the destroy function to destroy the indirect action, the driver releases the memory

[PATCH 6/7] net/hns3: fix divide by zero

2025-04-08 Thread Dengdui Huang
Driver may encounter divide-by-zero if the total_tqps_num and rss_size_max in hw structure from firmware are zero. So add some verification to them. Fixes: d51867db65c1 ("net/hns3: add initialization") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_ethdev.c | 10

[PATCH 3/7] net/hns3: fix extra waiting for link up

2025-04-08 Thread Dengdui Huang
If the link auto-negotiation of the NIC is disabled, or the flow control auto-negotiation is not supported, it's unnecessary to wait for link establishment. Fixes: 1f411e31a826 ("net/hns3: support flow control autoneg for copper port") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang --- driver

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

2025-04-08 Thread Dengdui Huang
This patchset fixes some bugs. Dengdui Huang (7): net/hns3: fix variable overflow net/hns3: fix memory leakage in failure path net/hns3: fix extra waiting for link up net/hns3: fix memory leakage for indirect action net/hns3: fix incorrect failed rollback net/hns3: fix divide by zero

[PATCH] common/mlx5: fix build on Linux in dlopen link mode

2025-04-08 Thread Thomas Monjalon
When using the Meson option "ibverbs_link=dlopen", a glue library is built. After the recent change requiring eal_export.h, the build stopped because the internal EAL include directory was unknown to this glue library: drivers/common/mlx5/linux/mlx5_glue.c:19:10: fatal error: eal_

Re: [PATCH] common/mlx5: fix build on Linux in dlopen link mode

2025-04-08 Thread Thomas Monjalon
08/04/2025 09:57, David Marchand: > On Tue, Apr 8, 2025 at 9:47 AM Thomas Monjalon wrote: > > > > When using the Meson option "ibverbs_link=dlopen", > > a glue library is built. > > > > After the recent change requiring eal_export.h, > > the build stopped because the internal EAL include directory

Re: [PATCH] common/mlx5: fix build on Linux in dlopen link mode

2025-04-08 Thread David Marchand
On Tue, Apr 8, 2025 at 9:47 AM Thomas Monjalon wrote: > > When using the Meson option "ibverbs_link=dlopen", > a glue library is built. > > After the recent change requiring eal_export.h, > the build stopped because the internal EAL include directory > was unknown to this glue library: > >

[PATCH 2/3] net/nfp: support get RSS algorithm configuration

2025-04-08 Thread Chaoyong He
Implement the logic of get RSS algorithm configuration, also do little refactor to related functions. Signed-off-by: Chaoyong He --- drivers/net/nfp/nfp_net_common.c | 84 ++-- 1 file changed, 57 insertions(+), 27 deletions(-) diff --git a/drivers/net/nfp/nfp_net_com

Re: [PATCH] vhost: fix wrapping on control virtqueue rings

2025-04-08 Thread Maxime Coquelin
On 4/2/25 8:53 AM, David Marchand wrote: The idx field of a virtqueue available ring is increased by the driver regardless of the ring size. It is for the device to mask this index modulo the ring size (2.7.6 of the virtio 1.3 specification). The same applies to the used ring. Failing to mask