[PATCH v2 3/3] app/eventdev: add vector adapter performance test

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh Add performance test for event vector adapter. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 +- app/test-eventdev/evt_options.c| 14 ++ app/test-eventdev/evt_options.h| 1 + app/test-eventdev/test_perf_atq.c | 61

[PATCH v2 2/3] eventdev: add default software vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh When event device PMD doesn't support vector adapter, the library will fallback to software implementation which relies on service core to check for timeouts and vectorizes the objects on enqueue. Signed-off-by: Pavan Nikhilesh --- app/test/meson.build

[PATCH v2 1/3] eventdev: introduce event vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). Applications can create a vector adapter associated with an event queue and enqueue objects to be vectorized. When the vector reaches the configured size or when

[PATCH v2 0/3] introduce event vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading the creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). An event vector adapter has the following working model: ┌──┐ │ Vector ├─┐ │ adapter0 │ │ └──┘ │

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

2025-05-29 Thread Stephen Hemminger
Full list of types is here https://www.tcpdump.org/linktypes.html On Thu, May 29, 2025, 10:16 Schneide wrote: > 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_EN10M

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

2025-05-29 Thread Stephen Hemminger
What other packet types would a DPDK app use. The possible type fields are quite limited see the spec. Plus it would be an ABI breakage would require versioning. On Thu, May 29, 2025, 10:16 Schneide wrote: > From: Dylan Schneider > > Allow the user to specify protocol link type when creating p

Re: [PATCH 7/7] doc: updates cnxk doc for new devargs

2025-05-29 Thread Jerin Jacob
On Wed, May 28, 2025 at 5:32 PM Rahul Bhansali wrote: > > Adds details of below nix devargs > - force_tail_drop > - disable_xqe_drop > > Signed-off-by: Rahul Bhansali Squashed this patch to relevant commit and Series Applied to dpdk-next-net-mrvl/for-main. Thanks > --- > doc/guides/nics/cnx

Re: [PATCH v2 1/1] net/cnxk: mark invalid MAC address if it doesn't exist

2025-05-29 Thread Jerin Jacob
On Wed, May 28, 2025 at 9:57 PM wrote: > > 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

[PATCH v8 1/2] ethdev: support RSS based on RoCEv2 header

2025-05-29 Thread kirankumark
From: Kiran Kumar K On supporting hardware, RoCEv2 header can be used to perform RSS in the ingress path. Signed-off-by: Kiran Kumar K --- V8 Changes: * Fixed doc V7 Changes; * Addressed review comments related to rss_type_table. app/test-pmd/config.c | 4 +++- doc/guides/rel

Re: [PATCH v2 1/2] app/testpmd: harmonize case in help strings

2025-05-29 Thread Burakov, Anatoly
On 5/26/2025 4:52 PM, Stephen Hemminger wrote: On Fri, 23 May 2025 11:36:04 +0100 Anatoly Burakov wrote: Most testpmd help strings are lower case. Amend those that aren't. Signed-off-by: Anatoly Burakov Why does DPDK not follow the convention used for years by the Unix man pages and comman

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

2025-05-29 Thread Bruce Richardson
When doing a build for a target that already has the instruction sets for AVX2/AVX512 enabled, skip emitting the AVX compiler flags, or the skylake-avx512 '-march' flags, as they are unnecessary. Instead, when the default flags produce the desired output, just use them unmodified, and don't bother

[PATCH v7 1/2] ethdev: support RSS based on RoCEv2 header

2025-05-29 Thread kirankumark
From: Kiran Kumar K On supporting hardware, RoCEv2 header can be used to perform RSS in the ingress path. Signed-off-by: Kiran Kumar K --- V7 Changes; * Addressed review comments related to rss_type_table. app/test-pmd/config.c | 4 +++- doc/guides/rel_notes/release_25_07.rst

[PATCH v9 1/2] ethdev: support RSS based on RoCEv2 header

2025-05-29 Thread kirankumark
From: Kiran Kumar K On supporting hardware, RoCEv2 header can be used to perform RSS in the ingress path. Signed-off-by: Kiran Kumar K --- V9 Changes: * Fix checkpatch warnings. V8 Changes: * Fixed doc V7 Changes; * Addressed review comments related to rss_type_table. app/test-pmd/config.c

[PATCH v9 2/2] drivers: add support for IB_BTH header for RSS in cnxk device

2025-05-29 Thread kirankumark
From: Kiran Kumar K Adding support for IB_BTH header for RSS in cnxk device. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/roc_mbox.h | 1 + drivers/net/cnxk/cnxk_ethdev.c | 3 +++ drivers/net/cnxk/cnxk_ethdev.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v8 2/2] drivers: add support for IB_BTH header for RSS in cnxk device

2025-05-29 Thread kirankumark
From: Kiran Kumar K Adding support for IB_BTH header for RSS in cnxk device. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/roc_mbox.h | 1 + drivers/net/cnxk/cnxk_ethdev.c | 3 +++ drivers/net/cnxk/cnxk_ethdev.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v7 2/2] drivers: add support for IB_BTH header for RSS in cnxk device

2025-05-29 Thread kirankumark
From: Kiran Kumar K Adding support for IB_BTH header for RSS in cnxk device. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/roc_mbox.h | 1 + drivers/net/cnxk/cnxk_ethdev.c | 3 +++ drivers/net/cnxk/cnxk_ethdev.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drive

Re: [PATCH 0/3] argparse additions and rework

2025-05-29 Thread Bruce Richardson
On Tue, May 27, 2025 at 10:21:10AM +0100, Bruce Richardson wrote: > This patchset is based off the work to adjust how we do argument parsing > inside EAL. To enable argparse to be effectively used for EAL, we have > new features and some changes in the first two patches, which are > relatively sma

Re: [PATCH v1 1/3] dts: rewrite README

2025-05-29 Thread Paul Szczepanek
Pls fix warning and I will merge On 27/05/2025 16:37, Dean Marx wrote: > Remove unnecessary information from README.md, and add new sections to clarify > the purpose/use of DTS along with clear setup instructions. > > Signed-off-by: Dean Marx > --- > dts/README.md | 104 +++-

[PATCH v1 1/1] vhost: handle virtqueue locking for memory hotplug

2025-05-29 Thread Danylo Vodopianov
For vDPA devices, virtqueues are not locked once the device has been configured. In the commit 5e8fcc60b59d ("vhost: enhance virtqueue access lock asserts"), the asserts were enhanced to trigger rte_panic functionality, preventing access to virtqueues without locking. However, this change introduce

[PATCH v1 0/1] Memory hotplug fix

2025-05-29 Thread Danylo Vodopianov
Hi everyone. We detected an issue with the memory hotplug feature and virtio devices while working with vitrio in DPDK.In general, the issue is around the user request VHOST_USER_SET_MEM_TABLE and locking queues for this request (https://git.dpdk.org/dpdk-stable/tree/lib/vhost/vhost_user.c#n1512)

[PATCH v1 1/1] vhost: handle virtqueue locking for memory hotplug

2025-05-29 Thread Danylo Vodopianov
For vDPA devices, virtqueues are not locked once the device has been configured. In the commit 5e8fcc60b59d ("vhost: enhance virtqueue access lock asserts"), the asserts were enhanced to trigger rte_panic functionality, preventing access to virtqueues without locking. However, this change introduce

[PATCH v1 0/1] Memory hotplug fix

2025-05-29 Thread Danylo Vodopianov
Hi everyone. We detected an issue with the memory hotplug feature and virtio devices while working with vitrio in DPDK.In general, the issue is around the user request VHOST_USER_SET_MEM_TABLE and locking queues for this request (https://git.dpdk.org/dpdk-stable/tree/lib/vhost/vhost_user.c#n1512)

Re: [PATCH v1 3/3] dts: fix doc generation bug

2025-05-29 Thread Paul Szczepanek
Patrick is right but it's OK, I'll merge as part of the series - in the end it's a separate commit. Reviewed-by: Paul Szczepanek On 28/05/2025 21:28, Patrick Robb wrote: > > > On Tue, May 27, 2025 at 11:37 AM Dean Marx > wrote: > > Fix a bug in the port stats ch

Re: [PATCH v1 1/3] dts: rewrite README

2025-05-29 Thread Paul Szczepanek
Reviewed-by: Paul Szczepanek On 28/05/2025 21:40, Patrick Robb wrote: > > > On Tue, May 27, 2025 at 11:37 AM Dean Marx > wrote: > > Remove unnecessary information from README.md, and add new sections > to clarify > the purpose/use of DTS along with clear

Re: [PATCH v1 2/3] dts: rewrite dts rst

2025-05-29 Thread Paul Szczepanek
I think shortening it is great, less maintenance overhead and avoids going out of sync with code which is already plenty documented. Reviewed-by: Paul Szczepanek On 28/05/2025 22:25, Patrick Robb wrote: > > > On Tue, May 27, 2025 at 11:37 AM Dean Marx > wrote: > >

[PATCH] crypto/virtio: fix PMD cleanup

2025-05-29 Thread Radu Nicolau
Improper cleanup resulted in a segfault when more than 1 device was used Fixes: 6f0175ff53e0 ("crypto/virtio: support basic PMD ops") Cc: jianjay.z...@huawei.com Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- drivers/crypto/virtio/virtio_cryptodev.c | 3 +-- 1 file changed, 1 insertion(+),

[PATCH v3] build: reduce use of AVX compiler flags

2025-05-29 Thread Bruce Richardson
When doing a build for a target that already has the instruction sets for AVX2/AVX512 enabled, skip emitting the AVX compiler flags, or the skylake-avx512 '-march' flags, as they are unnecessary. Instead, when the default flags produce the desired output, just use them unmodified, and don't bother

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

2025-05-29 Thread Bruce Richardson
On Tue, May 27, 2025 at 05:24:56PM +0100, Bruce Richardson wrote: > When doing a build for a target that already has the instruction sets > for AVX2/AVX512 enabled, skip emitting the AVX compiler flags, or the > skylake-avx512 '-march' flags, as they are unnecessary. Instead, when > the default fla

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

2025-05-29 Thread Bruce Richardson
On Tue, May 27, 2025 at 05:24:56PM +0100, Bruce Richardson wrote: > When doing a build for a target that already has the instruction sets > for AVX2/AVX512 enabled, skip emitting the AVX compiler flags, or the > skylake-avx512 '-march' flags, as they are unnecessary. Instead, when > the default fla

[PATCH 2/3] lib/lpm: R-V V rte_lpm_lookupx4

2025-05-29 Thread uk7b
From: sunyuechi bpi-f3: scalar: 5.7 cycles rvv:2.4 cycles Maybe runtime detection in LPM should be added for all architectures, but this commit is only about the RVV part. Signed-off-by: sunyuechi --- MAINTAINERS | 2 + lib/lpm/meson.build | 1 + lib/lpm/rte_lpm.h

[PATCH 3/3] riscv: override machine_args only when default

2025-05-29 Thread uk7b
From: sunyuechi Support using -Dcpu_instruction_set=rv64gcv to enable V extension. Signed-off-by: sunyuechi --- config/riscv/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/riscv/meson.build b/config/riscv/meson.build index e3694cf2e6..1036a86d05 100644 --- a/config/ri

[PATCH 1/3] config/riscv: detect V extension

2025-05-29 Thread uk7b
From: sunyuechi This patch is derived from "config/riscv: detect presence of Zbc extension with modifications". The RISC-V C api defines architecture extension test macros These let us detect whether the V extension is supported on the compiler and -march we're building with. The C api also defi

RE: [EXT] Re: [v1 04/10] bus/dpaa: optimize bman acquire/release

2025-05-29 Thread Jun Yang
Hi, > + rte_memcpy(bm_bufs, mcr->acquire.bufs, > + sizeof(struct bm_buffer) * rst); "mcr->acquire.bufs" is located in register space, it is supposed to improve performance to copy it to DDR(bm_bufs) to parse and read. BR Jun -Original Message- From: Stephen Hemminger Se

Re: DPDK Ring Q

2025-05-29 Thread Bruce Richardson
On Thu, May 29, 2025 at 05:20:25AM +, Lombardo, Ed wrote: >Hi, > >I have an issue with DPDK 24.11.1 and 2 port 100G Intel NIC >(E810-C) on 22 core CPU dual socket server. > > >There is a dedicated CPU core to get the packets from DPDK using >rte_eth_rx_burst() and enqueue

RE: [PATCH v2] fix eal/linux: unregister alarm callback before free

2025-05-29 Thread Rui Ferreira (A)
Hi. I'll try to have a look in the next couple days. BR > -Original Message- > From: Thomas Monjalon > Sent: Tuesday, May 27, 2025 3:54 PM > To: Rui Ferreira (A) > Cc: dev@dpdk.org; sta...@dpdk.org; David Marchand > ; Konstantin Ananyev > > Subject: Re: [PATCH v2] fix eal/linux: unreg

Re: [PATCH v3 00/10] Update ice base code

2025-05-29 Thread Bruce Richardson
On Tue, May 27, 2025 at 01:17:19PM +, Dhanya Pillai wrote: > ice base code is updated to latest snapshot. > > v3: > - Fixed check patch failure in DPDK CI. > - Added Fixes tag to bug fixes. > - Corrected author name for couple of patches. > > v2: > - Added Author Signoff. > > Dhanya Pillai (

[DPDK/ethdev Bug 1716] virtio_xmit_cleanup failed when vm rx/tx queues from 1024 to 4096

2025-05-29 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1716 Bug ID: 1716 Summary: virtio_xmit_cleanup failed when vm rx/tx queues from 1024 to 4096 Product: DPDK Version: 22.11 Hardware: Other OS: All Status: UNC

[PATCH v1 05/18] net/hinic3: add NIC event module

2025-05-29 Thread Feifei
From: Xin Wang Currently, there are two types of events: pf/vf connection status and port information printing. This patch contains related data structures and function codes. Signed-off-by: Xin Wang Reviewed-by: Yi Chen Reviewed-by: Feifei Wang --- drivers/net/hinic3/base/hinic3_nic_event.c

[PATCH v1 02/18] net/hinic3: add basic header files

2025-05-29 Thread Feifei
From: Xin Wang Add HW registers definition header file for SP series NIC. Add some headers that define commands and basic defines for use in the code. Signed-off-by: Xin Wang Reviewed-by: Yi Chen Reviewed-by: Feifei Wang --- drivers/net/hinic3/base/hinic3_cmd.h| 231

[PATCH v1 06/18] net/hinic3: add eq mechanism function code

2025-05-29 Thread Feifei
From: Yi Chen Eqs include aeq and ceq. Aeq is a kind of queue for mgmt asynchronous message and mgmt command response message. This patch introduces data structures, initialization, and related interfaces about aeq. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by: Feifei Wang --- dr

[PATCH v1 18/18] drivers/net: add hinic3 PMD build and doc files

2025-05-29 Thread Feifei
From: Yi Chen The meson.build file is added to this patch to enable the hinic3 compilation function. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by: Feifei Wang --- doc/guides/nics/features/hinic3.ini | 9 ++ drivers/net/hinic3/base/meson.build | 50 +++

[PATCH v1 17/18] net/hinic3: add FDIR flow control module

2025-05-29 Thread Feifei
From: Yi Chen Added support for rte_flow, including ethertype, IPv4, IPv6, and tunnel VXLAN. In addition, user can add or delete filters. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by: Feifei Wang --- drivers/net/hinic3/hinic3_ethdev.c | 82 ++ drivers/net/hinic3/hinic3_ethdev.h

[PATCH v1 15/18] net/hinic3: add MML and EEPROM access feature

2025-05-29 Thread Feifei
From: Xin Wang Add man-machine language support and implements the get eeprom method. Signed-off-by: Xin Wang Reviewed-by: Feifei Wang Reviewed-by: Yi Chen --- drivers/net/hinic3/hinic3_ethdev.c| 13 + drivers/net/hinic3/mml/hinic3_dbg.c | 171 + drivers/net/hinic3/mml/hin

[PATCH v1 12/18] net/hinic3: add device initialization

2025-05-29 Thread Feifei
From: Xin Wang This patch contains data structures and function codes related to device initialization. Signed-off-by: Xin Wang Reviewed-by: Feifei Wang Reviewed-by: Yi Chen --- drivers/net/hinic3/hinic3_ethdev.c | 514 + drivers/net/hinic3/hinic3_ethdev.h | 119 +

[PATCH v1 16/18] net/hinic3: add RSS promiscuous ops

2025-05-29 Thread Feifei
From: Xin Wang Add RSS and promiscuous ops related function codes. Signed-off-by: Xin Wang Reviewed-by: Feifei Wang Reviewed-by: Yi Chen --- drivers/net/hinic3/hinic3_ethdev.c | 370 + drivers/net/hinic3/hinic3_ethdev.h | 31 +++ 2 files changed, 401 insertions(+

[PATCH v1 11/18] net/hinic3: add a mailbox communication module

2025-05-29 Thread Feifei
From: Yi Chen This patch adds support for mailbox of hinic3 PMD driver, mailbox is used for communication between PF/VF driver and MPU. This patch provides mailbox-related data structures and functional code. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by: Feifei Wang --- drivers/n

[PATCH v1 14/18] net/hinic3: add Rx/Tx functions

2025-05-29 Thread Feifei
From: Feifei Wang This patch add package sending and receiving function codes. Signed-off-by: Feifei Wang Signed-off-by: Yi Chen Reviewed-by: Xin Wang --- drivers/net/hinic3/hinic3_ethdev.c | 9 +- drivers/net/hinic3/hinic3_rx.c | 305 +++- drivers/net/hinic3/hinic3_tx.c |

[PATCH v1 10/18] net/hinic3: add context and work queue support

2025-05-29 Thread Feifei
From: Xin Wang Work queue is used for cmdq and tx/rx buff description. Nic business needs to configure cmdq context and txq/rxq context. This patch adds data structures and function codes for work queue and context. Signed-off-by: Xin Wang Reviewed-by: Feifei Wang Reviewed-by: Yi Chen --- dr

[PATCH v1 09/18] net/hinic3: add a NIC business configuration module

2025-05-29 Thread Feifei
From: Yi Chen The items of configurations and queries for NIC business include MAC, VLAN, MTU, RSS and so on. These configurations and queries are handled by mgmt module. This patch introduces related data structures and function codes. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by:

[PATCH v1 08/18] net/hinic3: add module about hardware operation

2025-05-29 Thread Feifei
From: Yi Chen Add code and data structure for hardware operation, including configuration, query, initialization and release. Signed-off-by: Yi Chen Signed-off-by: Xin Wang Reviewed-by: Feifei Wang --- drivers/net/hinic3/base/hinic3_hw_cfg.c | 240 ++ drivers/net/hinic3/base/hinic3_

[PATCH v1 07/18] net/hinic3: add mgmt module function code

2025-05-29 Thread Feifei
From: Yi Chen Mgmt module is a kind of administration module for the chip. It is responsible for handling administration command from host. It mainly uses aeq to implement. This patch adds related data structures, packaged interfaces and function codes. Signed-off-by: Yi Chen Reviewed-by: Xin W

[PATCH v1 04/18] net/hinic3: add support for cmdq mechanism

2025-05-29 Thread Feifei
From: Xin Wang Micocode is named ucode in SP series NIC. Its main responsibility is data transmission and reception. But it can also handle some administration works. It uses cmdq mechanism. This patch introduces data structures, initialization, interfaces, and commands sending functions of cmdq.

[PATCH v1 03/18] net/hinic3: add hardware interfaces of BAR operation

2025-05-29 Thread Feifei
From: Yi Chen This patch adds some HW interfaces for bar operatioin interfaces, including: mapped bar address geeting, HW attributes getting, msi-x reg operation, function type getting and so on. Signed-off-by: Yi Chen Reviewed-by: Xin Wang Reviewed-by: Feifei Wang --- drivers/net/hinic3/bas

[PATCH v1 01/18] This patch adds some basic files to describe the hinic3 driver.

2025-05-29 Thread Feifei
Signed-off-by: Feifei Wang Signed-off-by: Yi Chen Reviewed-by: Xin Wang --- .mailmap | 4 +- MAINTAINERS| 6 +++ doc/guides/nics/hinic3.rst | 51 ++ doc/guides/nics/index.rst | 1 + doc

[PATCH v1 00/18] add hinic3 pmd driver

2025-05-29 Thread Feifei
The hinic3 PMD (**librte_net_hinic3**) provides poll mode driver support for 25Gbps/100Gbps/200Gbps Huawei SPx series Network Adapters. Feifei (1): This patch adds some basic files to describe the hinic3 driver. Feifei Wang (2): net/hinic3: add dev ops net/hinic3: add Rx/Tx functions Xin W