[PATCH v16 23/29] net/rnp: add support Rx checksum offload

2025-02-25 Thread Wenbo Cao
Add support Rx l3/l4 checum and tunnel inner l3/l4, out l3 chksum. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 4 ++ doc/guides/nics/rnp.rst | 1 + drivers/net/rnp/base/rnp_eth_regs.h | 13 drivers/net/rnp/rnp.h | 7 +++ drivers/net/rnp/rn

[PATCH v16 29/29] net/rnp: add multicast MAC filter operation

2025-02-25 Thread Wenbo Cao
add mac filter for single/multiple port. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 1 + doc/guides/nics/rnp.rst | 1 + drivers/net/rnp/base/rnp_crc32.c| 18 - drivers/net/rnp/base/rnp_crc32.h| 1 + drivers/net/rnp/base/rnp_eth_regs.h | 3

[PATCH v16 28/29] net/rnp: support Rx/Tx burst mode info

2025-02-25 Thread Wenbo Cao
add platform method for get rx/tx burst function select by upload func name. Signed-off-by: Wenbo Cao --- doc/guides/nics/rnp.rst | 2 ++ drivers/net/rnp/rnp_ethdev.c | 2 ++ drivers/net/rnp/rnp_rxtx.c | 58 drivers/net/rnp/rnp_rxtx.h | 6 4

[PATCH v16 26/29] net/rnp: add support VLAN filters operations

2025-02-25 Thread Wenbo Cao
add support to update vid for vlan filter. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 1 + doc/guides/nics/rnp.rst | 3 +- drivers/net/rnp/base/meson.build| 1 + drivers/net/rnp/base/rnp_bitrev.h | 64 drivers/net/rnp/base/rnp_crc

[PATCH v16 27/29] net/rnp: add queue info operation

2025-02-25 Thread Wenbo Cao
add support get queue configure info for user debug Signed-off-by: Wenbo Cao --- doc/guides/nics/rnp.rst | 2 ++ drivers/net/rnp/rnp_ethdev.c | 2 ++ drivers/net/rnp/rnp_rxtx.c | 42 drivers/net/rnp/rnp_rxtx.h | 4 4 files changed, 50 inserti

[PATCH v16 25/29] net/rnp: support VLAN offloads

2025-02-25 Thread Wenbo Cao
add support rx vlan strip,filter,tx vlan/qinq insert. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 2 + doc/guides/nics/rnp.rst | 4 + drivers/net/rnp/base/rnp_bdq_if.h | 2 +- drivers/net/rnp/base/rnp_eth_regs.h | 5 + drivers/net/rnp/base/rnp_hw.h

[PATCH v16 24/29] net/rnp: add support Tx TSO offload

2025-02-25 Thread Wenbo Cao
Add support tx tso and tunnel tso for tunnel just support vxlan/nvgre. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini | 1 + doc/guides/nics/rnp.rst | 1 + drivers/net/rnp/base/rnp_bdq_if.h | 1 + drivers/net/rnp/rnp.h | 2 +- drivers/net/rnp/rnp_eth

[PATCH v16 21/29] net/rnp: add unicast MAC filter operation

2025-02-25 Thread Wenbo Cao
add mac filter for single/multiple port. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 1 + doc/guides/nics/rnp.rst | 6 ++ drivers/net/rnp/base/rnp_eth_regs.h | 4 ++ drivers/net/rnp/base/rnp_hw.h | 3 + drivers/net/rnp/base/rnp_mac.c | 91 +++

[PATCH v16 20/29] net/rnp: add support xstats operation

2025-02-25 Thread Wenbo Cao
add support mac eth rx tx hw xstats. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 1 + doc/guides/nics/rnp.rst | 3 + drivers/net/rnp/base/rnp_eth_regs.h | 4 + drivers/net/rnp/base/rnp_mac_regs.h | 80 ++ drivers/net/rnp/rnp.h | 44

[PATCH v16 18/29] net/rnp: add Tx multiple segment version

2025-02-25 Thread Wenbo Cao
add support multiple segs mbuf send. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 2 + drivers/net/rnp/rnp_rxtx.c | 126 ++- drivers/net/rnp/rnp_rxtx.h | 3 +- 3 files changed, 128 insertions(+), 3 deletions(-) diff --git a/drivers/net/rnp/

[PATCH v16 19/29] net/rnp: add support basic stats operation

2025-02-25 Thread Wenbo Cao
add support hw-missed rx/tx packets bytes. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 2 + doc/guides/nics/rnp.rst | 3 + drivers/net/rnp/base/rnp_eth_regs.h | 3 + drivers/net/rnp/rnp.h | 8 ++ drivers/net/rnp/rnp_ethdev.c| 136 +

[PATCH v16 15/29] net/rnp: add Tx burst simple support

2025-02-25 Thread Wenbo Cao
add only support simple send pkts. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 6 +++ drivers/net/rnp/rnp_rxtx.c | 85 +++- drivers/net/rnp/rnp_rxtx.h | 1 + 3 files changed, 91 insertions(+), 1 deletion(-) diff --git a/drivers/net/rnp/rnp_e

[PATCH v16 16/29] net/rnp: add MTU set operation

2025-02-25 Thread Wenbo Cao
add mtu update limit for multiple port mode. multiple mode just used the max-mtu of ports to limit receive. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 1 + doc/guides/nics/rnp.rst | 3 + drivers/net/rnp/base/rnp_eth_regs.h | 3 + drivers/net/rnp/rnp.h

[PATCH v16 13/29] net/rnp: add support link setup operations

2025-02-25 Thread Wenbo Cao
add set link_down/link_up implement Signed-off-by: Wenbo Cao --- doc/guides/nics/rnp.rst | 2 + drivers/net/rnp/base/rnp_eth_regs.h | 3 + drivers/net/rnp/base/rnp_fw_cmd.c | 22 +++ drivers/net/rnp/base/rnp_fw_cmd.h | 6 ++ drivers/net/rnp/base/rnp_mbx_fw.c | 33 +++

[PATCH v16 11/29] net/rnp: add RSS support operations

2025-02-25 Thread Wenbo Cao
add support rss reta updata/query rss hash update/get dev_configure add rss conf check. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 4 + doc/guides/nics/rnp.rst | 7 + drivers/net/rnp/base/rnp_eth_regs.h | 16 ++ drivers/net/rnp/meson.build | 1 +

[PATCH v16 12/29] net/rnp: add support link update operations

2025-02-25 Thread Wenbo Cao
This patch add support poll/irq link get mode. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini | 2 + doc/guides/nics/rnp.rst | 3 + drivers/net/rnp/base/rnp_fw_cmd.c | 45 drivers/net/rnp/base/rnp_fw_cmd.h | 55 + drivers/net/rnp/base/rnp_hw.h | 3 +

[PATCH v16 10/29] net/rnp: add support device start stop operations

2025-02-25 Thread Wenbo Cao
add basic support for device to start/stop function. Signed-off-by: Wenbo Cao --- doc/guides/nics/rnp.rst | 2 + drivers/net/rnp/base/rnp_common.c | 22 +++ drivers/net/rnp/base/rnp_common.h | 1 + drivers/net/rnp/base/rnp_dma_regs.h | 10 + drivers/net/rnp/base/rnp_eth_reg

[PATCH v16 09/29] net/rnp: add queue stop and start operations

2025-02-25 Thread Wenbo Cao
support rx/tx queue stop/start,for rx queue stop need to reset a queue,must stop all rx queue during reset this queue. Signed-off-by: Wenbo Cao Reviewed-by: Stephen Hemminger --- doc/guides/nics/features/rnp.ini | 1 + doc/guides/nics/rnp.rst | 4 + drivers/net/rnp/base/rnp_commo

[PATCH v16 08/29] net/rnp: add queue setup and release operations

2025-02-25 Thread Wenbo Cao
support tx/rx queue setup and release add hw bd queue reset,sw queue reset. Signed-off-by: Wenbo Cao --- doc/guides/nics/rnp.rst | 3 + drivers/net/rnp/base/meson.build| 1 + drivers/net/rnp/base/rnp_bdq_if.c | 398 +++ drivers/net/rnp/base/rnp_bdq_if.h

[PATCH v16 07/29] net/rnp: add support MAC promisc mode

2025-02-25 Thread Wenbo Cao
add support two method of MAC unicast promisc mulcast promisc broadcast promisc mode Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini| 2 + doc/guides/nics/rnp.rst | 11 +++ drivers/net/rnp/base/rnp_common.c | 5 ++ drivers/net/rnp/base/rnp_eth_regs.h | 15 ++

[PATCH v16 06/29] net/rnp: add get device information operation

2025-02-25 Thread Wenbo Cao
add get device hardware capability function Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini | 1 + doc/guides/nics/rnp.rst | 1 + drivers/net/rnp/base/rnp_fw_cmd.c | 20 ++ drivers/net/rnp/base/rnp_fw_cmd.h | 80 + drivers/net/rnp/base/rnp_m

[PATCH v16 05/29] net/rnp: add device init and uninit

2025-02-25 Thread Wenbo Cao
add firmware communic method and basic device init, uninit and close resource function. Signed-off-by: Wenbo Cao Reviewed-by: Ferruh Yigit --- doc/guides/nics/rnp.rst | 10 + drivers/net/rnp/base/meson.build| 4 + drivers/net/rnp/base/rnp_common.c | 73 ++ drivers/net/

[PATCH v16 04/29] net/rnp: support mailbox basic operate

2025-02-25 Thread Wenbo Cao
This patch adds support for mailbox of rnp PMD driver, mailbox is used for communication between pf with fw and vf driver. Signed-off-by: Wenbo Cao Reviewed-by: Stephen Hemminger --- drivers/net/rnp/base/meson.build | 12 + drivers/net/rnp/base/rnp_hw.h| 77 + drivers/net/rnp/base/rnp

[PATCH v16 03/29] net/rnp: add log

2025-02-25 Thread Wenbo Cao
add log function for trace or debug Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 2 ++ drivers/net/rnp/rnp_logs.h | 36 2 files changed, 38 insertions(+) create mode 100644 drivers/net/rnp/rnp_logs.h diff --git a/drivers/net/rnp/rnp_ethdev

[PATCH v16 00/28] [v16]drivers/net Add Support mucse N10 Pmd Driver

2025-02-25 Thread Wenbo Cao
For This patchset just to support the basic chip init work and user can just found the eth_dev, but can't control more. For Now just support 2*10g nic,the chip can support 2*10g,4*10g,4*1g,8*1g,8*10g. The Feature rx side can support rx-cksum-offload,rss,vlan-filter flow_clow,uncast_filter,mcast_fil

[PATCH v16 02/29] net/rnp: add ethdev probe and remove

2025-02-25 Thread Wenbo Cao
Add basic PCIe ethdev probe and remove. Signed-off-by: Wenbo Cao Reviewed-by: Stephen Hemminger --- doc/guides/nics/rnp.rst | 17 ++ drivers/net/rnp/rnp.h| 16 + drivers/net/rnp/rnp_ethdev.c | 66 3 files changed, 99 insertions(+

[PATCH v3] net/mlx5: add eCPRI support

2025-02-25 Thread Bing Zhao
Support eCPRI item matching over L2 (ETHER / VLAN) in HWS, both for template API and backward compatibility API. Signed-off-by: Bing Zhao Acked-by: Dariusz Sosnowski --- v2: fix the checkpatch warning of unneeded else v3: fix single line if condition code style warning --- drivers/net/mlx5/hws/

[PATCH v2] net/mlx5: add eCPRI support

2025-02-25 Thread Bing Zhao
Support eCPRI item matching over L2 (ETHER / VLAN) in HWS, both for template API and backward compatibility API. Signed-off-by: Bing Zhao Acked-by: Dariusz Sosnowski --- v2: fix the checkpatch warning of unneeded else --- drivers/net/mlx5/hws/mlx5dr_definer.c | 86 +++ d

RE: [PATCH] test/event: fix number of queues in eventdev conf

2025-02-25 Thread Jerin Jacob
> -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Tuesday, February 25, 2025 6:37 PM > To: Shijith Thotton ; Jerin Jacob > Cc: dev@dpdk.org; Shijith Thotton ; sta...@dpdk.org; > Naga Harish K S V > Subject: RE: [PATCH] test/event: fix number of queues in eventdev conf >

Re: [PATCH] Skip vfio in the scenario of non-privileged mode

2025-02-25 Thread Yang Ming
On 2025/1/22 16:15, Yang Ming wrote: Hi Stephen Hi Stephen, Could you please confirm the comment above? Brs, Yang Ming

[PATCH] net/nfp: fix two bugs of error process logic

2025-02-25 Thread Chaoyong He
Fix two bugs of error process logic. Fixes: 19bd7cce5705 ("net/nfp: support different configuration BAR size") Fixes: 636e133ec891 ("net/nfp: update Tx and Rx for multiple PF") Cc: peng.zh...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/net/nf

DPDK Summit CFP reminder - last week

2025-02-25 Thread Thomas Monjalon
This is the last week to submit a talk proposal for the DPDK Summit happening on May 8-9 in Prague, Czech Republic. When your idea is ready, go to this page: https://events.linuxfoundation.org/dpdk-summit/program/cfp/ The CFP period closes on this Sunday, 2 March. The DPDK Summit is welc

Re: [PATCH 3/6] config: allow faster instruction sets to be used with MSVC

2025-02-25 Thread Andre Muezerie
On Tue, Feb 25, 2025 at 02:28:02PM +, Bruce Richardson wrote: > On Mon, Feb 24, 2025 at 01:01:16PM -0800, Andre Muezerie wrote: > > Up to now MSVC has being used with the default mode, which uses SSE2 > > instructions for scalar floating-point and vector calculations. > > https://learn.microsof

RE: [PATCH v15 09/29] net/rnp: add queue stop and start operations

2025-02-25 Thread 11
Hi Stephen, I had been not added it to const struct eth_dev_ops for .rx/tx_queue_stop/stop :( Thanks for your check Regrads Wenbo > -Original Message- > From: Stephen Hemminger > Sent: 2025年2月26日 0:09 > To: Wenbo Cao > Cc: tho...@monjalon.net; dev@dpdk.org; yao...@mucse.com > Subject:

[PATCH v2 0/5] allow faster instruction sets to be used with MSVC

2025-02-25 Thread Andre Muezerie
Meson.build files were refactored to add MSVC support for the AVX2 instruction set with MSVC: Top level variable cc_avx2_flags was created and set according to the compiler used. It is used in lower level directories. Andre Muezerie (5): eal: make compatible with instruction set updates for MSVC

[PATCH v2 3/5] config: create top level variable cc_avx2_flags

2025-02-25 Thread Andre Muezerie
Top level variable cc_avx2_flags was created and set according to the compiler used. It is used in lower level directories. Signed-off-by: Andre Muezerie --- config/x86/meson.build | 6 ++ 1 file changed, 6 insertions(+) diff --git a/config/x86/meson.build b/config/x86/meson.build index 47a

[PATCH v2 5/5] acl: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
Top level 'cc_avx2_flags' was created and holds the correct flags depending on the compiler used. Signed-off-by: Andre Muezerie --- lib/acl/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acl/meson.build b/lib/acl/meson.build index fefe131a48..a28d70c23f 10064

[PATCH v2 4/5] drivers/net: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
Top level 'cc_avx2_flags' was created and holds the correct flags depending on the compiler used. Signed-off-by: Andre Muezerie --- drivers/net/bnxt/meson.build | 2 +- drivers/net/enic/meson.build | 2 +- drivers/net/intel/i40e/meson.build | 2 +- drivers/net/intel/iavf/meson.build

[PATCH v2 2/5] eal: only use numbers as align parameters for MSVC

2025-02-25 Thread Andre Muezerie
After the instruction set updates for MSVC the error below popped up: ..\lib\eal\x86\include\rte_vect.h(82): error C2059: syntax error: '(' The issue is that MSVC does not allow __rte_aligned(RTE_X86_ZMM_SIZE). It only accepts numbers that are power of 2. So, even though RTE_X86_ZMM_SIZE represen

[PATCH v2 1/5] eal: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
After the instruction set updates for MSVC the error below popped up: ../lib/eal/common/rte_random.c(6): fatal error C1083: Cannot open include file: 'x86intrin.h': No such file or directory The fix is to not include header x86intrin.h with MSVC. Signed-off-by: Andre Muezerie --- lib/eal/c

[PATCH v1] event/dlb2: enhancement to DLB credit management

2025-02-25 Thread Pravin Pathak
Updates are added to enable releasing of unused credits by threads to avoid deadlock and starving of other active threads needing credits. It also adds compile time options to enable/disable credit checks. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- .mailmap

Re: [PATCH v2 1/1] pcapng: warn if NULL is passed to rte_pcapng_close

2025-02-25 Thread Patrick Robb
Recheck-request: iol-marvell-Functional Putting in a recheck as I believe the fail CI reported is false. On Sun, Feb 23, 2025 at 4:41 PM Ariel Otilibili wrote: > rte_pcapng_close() might dereference a null pointer; as example, > PVS-Studio gives its usage in test_pcapng.c: indeed, that call to

Re: [PATCH] net/ice: fix ACL filter uninit

2025-02-25 Thread Medvedkin, Vladimir
Acked-by: Vladimir Medvedkin On 21/02/2025 08:25, Mingjin Ye wrote: The pf has enabled the ACL filter, so uninit is no longer limited to the DCF. Fixes: a9d612291c2d ("net/ice: support IPv4 fragments in ACL filters") Signed-off-by: Mingjin Ye --- drivers/net/intel/ice/ice_acl_filter.c | 48

Re: [PATCH 5/6] acl: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
On Tue, Feb 25, 2025 at 05:21:10PM +, Bruce Richardson wrote: > On Tue, Feb 25, 2025 at 08:37:27AM -0800, Andre Muezerie wrote: > > On Tue, Feb 25, 2025 at 09:03:37AM +, Bruce Richardson wrote: > > > On Mon, Feb 24, 2025 at 01:01:18PM -0800, Andre Muezerie wrote: > > > > Top level 'cc_avx2_

Re: [PATCH 5/6] acl: make compatible with instruction set updates for MSVC

2025-02-25 Thread Bruce Richardson
On Tue, Feb 25, 2025 at 08:37:27AM -0800, Andre Muezerie wrote: > On Tue, Feb 25, 2025 at 09:03:37AM +, Bruce Richardson wrote: > > On Mon, Feb 24, 2025 at 01:01:18PM -0800, Andre Muezerie wrote: > > > Top level 'cc_avx2_flags' was created and holds the correct flags > > > depending on the comp

Re: [PATCH 4/6] drivers/net: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
On Tue, Feb 25, 2025 at 09:06:26AM +, Bruce Richardson wrote: > On Mon, Feb 24, 2025 at 01:01:17PM -0800, Andre Muezerie wrote: > > Top level 'cc_avx2_flags' was created and holds the correct flags > > depending on the compiler used. > > > > Signed-off-by: Andre Muezerie > > --- > > drivers/

Re: [PATCH 5/6] acl: make compatible with instruction set updates for MSVC

2025-02-25 Thread Andre Muezerie
On Tue, Feb 25, 2025 at 09:03:37AM +, Bruce Richardson wrote: > On Mon, Feb 24, 2025 at 01:01:18PM -0800, Andre Muezerie wrote: > > Top level 'cc_avx2_flags' was created and holds the correct flags > > depending on the compiler used. > > > > File meson.build was updated to handle the correct A

Re: [PATCH] net/ice: fix incorrect mbuf cleanup function

2025-02-25 Thread Bruce Richardson
On Mon, Feb 24, 2025 at 02:43:07PM +0100, Burakov, Anatoly wrote: > On 21/02/2025 17:04, Bruce Richardson wrote: > > The mbuf cleanup function is not being called correctly on close of the > > driver, due to the vector_tx flag not being set correctly on each Tx > > queue. Normally, this causes no v

RE: [PATCH] net/mlx5: add eCPRI support

2025-02-25 Thread Dariusz Sosnowski
> -Original Message- > From: Bing Zhao > Sent: Tuesday, February 25, 2025 17:03 > To: Slava Ovsiienko ; dev@dpdk.org; Raslan > Darawsheh > Cc: Ori Kam ; Dariusz Sosnowski ; > Suanming Mou ; Matan Azrad ; > Hamdan Agbariya > Subject: [PATCH] net/mlx5: add eCPRI support > > Support eCP

Re: [v5 1/5] vhost: skip crypto op fetch before vring init

2025-02-25 Thread Maxime Coquelin
On 2/24/25 11:35 AM, Gowrishankar Muthukrishnan wrote: Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR), worker thread should not try to fetch crypto op, which would lead to memory fault. Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: sta...@

Re: [PATCH] net/nfp: fix get represetor wrong port stats

2025-02-25 Thread Stephen Hemminger
On Tue, 25 Feb 2025 09:34:54 +0800 Chaoyong He wrote: > From: Long Wu > > The 'ipackets'/'opackets' are used to record the number > of packets on represetor port received/sent. But the > code does not consider concurrent calculation of > 'ipackets'/'opackets'. If multiple queues are calculated

Re: [PATCH v3 00/16] net/zxdh: updated net zxdh driver

2025-02-25 Thread Stephen Hemminger
On Tue, 25 Feb 2025 18:42:52 +0800 Junlong Wang wrote: > V3: > - fix warning enable asserts compile. > - fix warning enable address sanitizer for undefined checks. > - modify extra memset and cast. > - remove __rte_unused from function prototypes. > - fix indentation in mtr get and use

Re: [PATCH v2] net/virtio: add virtio hash report feature

2025-02-25 Thread Maxime Coquelin
Hi, On 1/27/25 8:41 AM, Kommula Shiva Shankar wrote: This patch adds virtio hash report feature, which is supported in packet queue mode with scalar version Why only restrict to packed ring? isn't it also compatible with split ring? Signed-off-by: Kommula Shiva Shankar --- drivers/net/vi

Re: [PATCH v15 09/29] net/rnp: add queue stop and start operations

2025-02-25 Thread Stephen Hemminger
On Tue, 25 Feb 2025 16:41:06 +0800 Wenbo Cao wrote: > diff --git a/doc/guides/nics/rnp.rst b/doc/guides/nics/rnp.rst > index 99b96e9b8e..c3547c38b6 100644 > --- a/doc/guides/nics/rnp.rst > +++ b/doc/guides/nics/rnp.rst > @@ -71,6 +71,10 @@ Listed below are the rte_eth functions supported: > * ``

[PATCH] net/mlx5: add eCPRI support

2025-02-25 Thread Bing Zhao
Support eCPRI item matching over L2 (ETHER / VLAN) in HWS, both for template API and backward compatibility API. Signed-off-by: Bing Zhao --- drivers/net/mlx5/hws/mlx5dr_definer.c | 86 +++ drivers/net/mlx5/mlx5_flow.h | 3 + drivers/net/mlx5/mlx5_flow_hw.c

Re: [PATCH v2] net/ixgbe: fix min Rx/Tx descriptors

2025-02-25 Thread Bruce Richardson
On Tue, Feb 25, 2025 at 09:12:36AM +, Mingjin Ye wrote: > The minimum free packet threshold (tx_free_thresh) and the minimum RS bit > threshold (tx_rs_thresh) both have a default value of 32. Therefore, the > default minimum number of ring descriptors value is 64. > > For reference, see "Confi

[PATCH v2 6/6] dts: add NIC capabilities for hash algorithms

2025-02-25 Thread Thomas Wilks
Added checks for if a nic supports the simple_xor, symmetric_toeplitz, symmetric_toeplitz_sort, toeplitz, and default hashing algorithms. Signed-off-by: Thomas Wilks Reviewed-by: Paul Szczepanek --- dts/framework/remote_session/testpmd_shell.py | 146 ++ dts/tests/TestSuite_pmd

[PATCH v2 5/6] dts: add PMD RSS key update testsuite

2025-02-25 Thread Thomas Wilks
From: Alex Chapman Port over the rss_key_update test suite from old DTS. This suite verifies that setting a new hash key when Receive Side Scaling (RSS) will result in a change in the packets destination queue. This test suite also verifies that the reported key size of the NIC is correct. Signe

[PATCH v2 3/6] dts: add PMD RSS hash testsuite

2025-02-25 Thread Thomas Wilks
From: Alex Chapman Port over the pmd_rss_hash test suite from old DTS. This suite verifies that the 4 supported types of hashing algorithm used in Receive Side Scaling (RSS) function correctly. Them being DEFAULT, TOEPLITZ SYMMETRIC_TOEPLITZ and SIMPLE_XOR. This test suite also verifies the suppo

[PATCH v2 4/6] dts: add PMD RSS RETA testsuite

2025-02-25 Thread Thomas Wilks
From: Alex Chapman Port over the pmd_rss_reta test suite from old DTS. This suite verifies that Redirection Tables (RETAs) of different sizes function correctly in Receive Side Scaling (RSS). This test suite also verifies that the reported reta size of the NIC is correct. Signed-off-by: Alex Cha

[PATCH v2 2/6] dts: add utils for PMD RSS testsuites

2025-02-25 Thread Thomas Wilks
From: Alex Chapman To reduce the amount of maintenance and code duplication, common functionality between the rss_key_update, pmd_rss_reta and pmd_rss_hash test suites has been collated into a single file called rss_utils. It contains 3 main functions: 1. verify that a packets RSS hash correctly

[PATCH v2 0/6] Added RSS functions and tests.

2025-02-25 Thread Thomas Wilks
v2: - Added RSS capabilities check. - Added testsuite that tests RSS hashes. - Added testsuite that tests updating the RSS hash key. - Added testsuite that verifies the RETA size. Alex Chapman (5): dts: add RSS functions to testpmd dts: add utils for PMD RSS testsuites dts: add PMD RSS hash

[PATCH v2 1/6] dts: add RSS functions to testpmd

2025-02-25 Thread Thomas Wilks
From: Alex Chapman This patch adds the required functionality for the RSS key_update, RETA, and hash test suites. This includes: The setting of custom RETA values for routing packets to specific queues. The setting of the RSS mode on all ports, to specify how to hash the packets. The updating of

Re: [PATCH 3/6] config: allow faster instruction sets to be used with MSVC

2025-02-25 Thread Bruce Richardson
On Mon, Feb 24, 2025 at 01:01:16PM -0800, Andre Muezerie wrote: > Up to now MSVC has being used with the default mode, which uses SSE2 > instructions for scalar floating-point and vector calculations. > https://learn.microsoft.com/en-us/cpp/build/reference/arch-x64?view=msvc-170 > > This patch all

RE: [PATCH RFC 3/4] doc: update prog guide to use rte_dma_op

2025-02-25 Thread Amit Prakash Shukla
> -Original Message- > From: Kommula Shiva Shankar > Sent: Wednesday, January 29, 2025 8:07 PM > To: Jerin Jacob ; Amit Prakash Shukla > ; Vamsi Krishna Attunuru > ; fengcheng...@huawei.com; dev@dpdk.org > Cc: Nithin Kumar Dabilpuram ; Pavan Nikhilesh > Bhagavatula > Subject: [PATCH RF

RE: [PATCH RFC 2/4] eventdev: refactor rte_event_dma_adapater_op calls

2025-02-25 Thread Amit Prakash Shukla
> -Original Message- > From: Kommula Shiva Shankar > Sent: Wednesday, January 29, 2025 8:07 PM > To: Jerin Jacob ; Amit Prakash Shukla > ; Vamsi Krishna Attunuru > ; fengcheng...@huawei.com; dev@dpdk.org > Cc: Nithin Kumar Dabilpuram ; Pavan Nikhilesh > Bhagavatula > Subject: [PATCH RF

RE: [PATCH v3 02/14] eventdev: remover unnecessary deref on function pointers

2025-02-25 Thread Amit Prakash Shukla
> -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Tuesday, February 25, 2025 6:48 PM > To: Gujjar, Abhinandan S ; Stephen > Hemminger ; dev@dpdk.org > Cc: Morten Brørup ; Richardson, Bruce > ; Jerin Jacob ; Amit > Prakash Shukla ; Naga Harish K, S V > > Subject: RE: [PATC

RE: [PATCH v3 02/14] eventdev: remover unnecessary deref on function pointers

2025-02-25 Thread Pavan Nikhilesh Bhagavatula
> > -Original Message- > > From: Stephen Hemminger > > Sent: Thursday, February 20, 2025 10:25 PM > > To: dev@dpdk.org > > Cc: Stephen Hemminger ; Morten Brørup > > ; Richardson, Bruce > > ; Gujjar, Abhinandan S > > ; Jerin Jacob ; Amit > > Prakash Shukla ; Naga Harish K, S V > > > > Sub

RE: [PATCH] test/event: fix number of queues in eventdev conf

2025-02-25 Thread Pavan Nikhilesh Bhagavatula
> -Original Message- > From: Shijith Thotton > Sent: Thursday, February 6, 2025 8:03 PM > To: Jerin Jacob > Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula > ; Shijith Thotton ; > sta...@dpdk.org; Naga Harish K S V > Subject: [PATCH] test/event: fix number of queues in eventdev conf >

RE: [PATCH v3 02/14] eventdev: remover unnecessary deref on function pointers

2025-02-25 Thread Gujjar, Abhinandan S
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, February 20, 2025 10:25 PM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Morten Brørup > ; Richardson, Bruce > ; Gujjar, Abhinandan S > ; Jerin Jacob ; Amit > Prakash Shukla ; Naga Harish K, S V > > Subject: [PATCH v3 02/14]

RE: [PATCH V1 2/4] net/mlx5: support FDB unified domain

2025-02-25 Thread Dariusz Sosnowski
Nacked-by: Dariusz Sosnowski Please see below: > diff --git a/drivers/net/mlx5/linux/mlx5_os.c > b/drivers/net/mlx5/linux/mlx5_os.c > index 091f288..9410211 100644 > --- a/drivers/net/mlx5/linux/mlx5_os.c > +++ b/drivers/net/mlx5/linux/mlx5_os.c > @@ -1707,6 +1707,17 @@ mlx5_dev_spawn(struct rt

RE: [PATCH V1 3/4] net/mlx5: remove unneeded FDB flag on representor action

2025-02-25 Thread Dariusz Sosnowski
> -Original Message- > From: Ophir Munk > Sent: Tuesday, February 25, 2025 13:02 > To: Dariusz Sosnowski ; Slava Ovsiienko > ; Bing Zhao ; Ori Kam > ; Suanming Mou ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh ; Jiawei(Jonny) > Wang > Subject: [PATCH V1 3/4] net/mlx5: remove un

RE: [PATCH V1 4/4] net/mlx5/hws: allow different types in miss validation

2025-02-25 Thread Dariusz Sosnowski
> -Original Message- > From: Ophir Munk > Sent: Tuesday, February 25, 2025 13:02 > To: Dariusz Sosnowski ; Slava Ovsiienko > ; Bing Zhao ; Ori Kam > ; Suanming Mou ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH V1 4/4] net/mlx5/hws: allow different types in mis

RE: [PATCH V1 2/4] net/mlx5: support FDB unified domain

2025-02-25 Thread Dariusz Sosnowski
> -Original Message- > From: Ophir Munk > Sent: Tuesday, February 25, 2025 13:02 > To: Dariusz Sosnowski ; Slava Ovsiienko > ; Bing Zhao ; Ori Kam > ; Suanming Mou ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH V1 2/4] net/mlx5: support FDB unified domain > >

RE: [PATCH V1 1/4] common/mlx5: support FDB unified capability query

2025-02-25 Thread Dariusz Sosnowski
> -Original Message- > From: Ophir Munk > Sent: Tuesday, February 25, 2025 13:02 > To: Dariusz Sosnowski ; Slava Ovsiienko > ; Bing Zhao ; Ori Kam > ; Suanming Mou ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH V1 1/4] common/mlx5: support FDB unified capabilit

[PATCH V1 4/4] net/mlx5/hws: allow different types in miss validation

2025-02-25 Thread Ophir Munk
In validating Jump from group A to default miss group B DPDK requests that both groups types will be identical. In practice jumping from FDB_UNIFIED to FDB_RX or FDB_TX group types (or vice versa) is allowed. This commit enables this jumping between the different types. Fixes: b81f95ca770d ("net/m

[PATCH V1 3/4] net/mlx5: remove unneeded FDB flag on representor action

2025-02-25 Thread Ophir Munk
From: Bing Zhao The "send_to_kernel" action is shared and created during the HWS configuration stage. By default, the NIC Rx and Tx flags are needed. There is only one case that the FDB* flags are needed when creating the action, the same as other shared actions. Only the transfer proxy port nee

[PATCH V1 2/4] net/mlx5: support FDB unified domain

2025-02-25 Thread Ophir Munk
Legacy FDB domain is enhanced with optional three sub-domains: FDB_RX FDB_TX and FDB_UNIFIED. Based on FW capability bit mlx5 will work in either legacy or unified mode. To work in fdb unified mode the flow attribute transfer bit must be set and the fdb sub domains are determined by the table speci

[PATCH V1 1/4] common/mlx5: support FDB unified capability query

2025-02-25 Thread Ophir Munk
This commit queries the FW for the new unified FDB mode and saves it in mlx5 shared device as fdb_unified_en bit. Signed-off-by: Ophir Munk --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/common/

[PATCH v3 14/16] net/zxdh: provide extended stats ops implementations

2025-02-25 Thread Junlong Wang
provide extended stats ops implementations. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 1 + doc/guides/nics/zxdh.rst | 1 + drivers/net/zxdh/zxdh_ethdev.c | 3 + drivers/net/zxdh/zxdh_ethdev_ops.c | 265 - drivers/net/zxdh

[PATCH v3 15/16] net/zxdh: provide ptypes FW version EEPROM ops

2025-02-25 Thread Junlong Wang
provide ptypes、FW version、EEPROM ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + drivers/net/zxdh/zxdh_ethdev.c | 30 + drivers/net/zxdh/zxdh_ethdev_ops.c | 200 + drivers/net/zxdh/zxdh_ethdev_ops.h | 3 + drivers/net/zxdh/z

[PATCH v3 12/16] net/zxdh: provided CSUM/TSO/LRO config

2025-02-25 Thread Junlong Wang
provided CSUM/TSO/LRO config. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 5 ++ doc/guides/nics/zxdh.rst | 3 + drivers/net/zxdh/zxdh_ethdev.c| 93 +++ drivers/net/zxdh/zxdh_msg.c | 15 + 4 files changed, 116 insertions

[PATCH v3 13/16] net/zxdh: provided rxq/txq info get implementations

2025-02-25 Thread Junlong Wang
provided rxq/txq info get implementations. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 40 -- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh/zxdh_ethdev.c index e58891dc32..71e8

[PATCH v3 08/16] net/zxdh: optimize VLAN filter/offload ops

2025-02-25 Thread Junlong Wang
optimize VLAN filter/offload ops. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev_ops.c | 42 +++-- drivers/net/zxdh/zxdh_msg.c| 81 + drivers/net/zxdh/zxdh_msg.h| 5 +- drivers/net/zxdh/zxdh_tables.c | 139 + d

[PATCH v3 07/16] net/zxdh: optimize promisc ops

2025-02-25 Thread Junlong Wang
optimize promisc ops. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_msg.c| 62 ++ drivers/net/zxdh/zxdh_tables.c | 49 +++ drivers/net/zxdh/zxdh_tables.h | 3 +- 3 files changed, 113 insertions(+), 1 deletion(-) diff --git a/d

[PATCH v3 10/16] net/zxdh: optimize MTU set ops

2025-02-25 Thread Junlong Wang
optimize MTU set ops. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev_ops.c | 8 ++--- drivers/net/zxdh/zxdh_msg.c| 42 + drivers/net/zxdh/zxdh_tables.h | 49 +++--- 3 files changed, 90 insertions(+), 9 deletions(-) diff

[PATCH v3 09/16] net/zxdh: optimize RSS/RETA hash config/update/get

2025-02-25 Thread Junlong Wang
optimize RSS hash config/update,RETA update/get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev_ops.c | 1 - drivers/net/zxdh/zxdh_msg.c| 129 + 2 files changed, 129 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev_ops.c

[PATCH v3 06/16] net/zxdh: optimize MAC ops

2025-02-25 Thread Junlong Wang
optimize MAC ops Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 41 +- drivers/net/zxdh/zxdh_ethdev.h | 13 +++- drivers/net/zxdh/zxdh_ethdev_ops.c | 59 +-- drivers/net/zxdh/zxdh_msg.c| 118 + drivers/net/zxdh/

[PATCH v3 03/16] net/zxdh: optimize link update process

2025-02-25 Thread Junlong Wang
optimize link update process. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev_ops.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/net/zxdh/zxdh_ethdev_ops.c b/drivers/net/zxdh/zxdh_ethdev_ops.c index eefecde823..0c92bd7c05 100

[PATCH v3 02/16] net/zxdh: optimize queue res alloc/free process

2025-02-25 Thread Junlong Wang
optimize queue res alloc/free process. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_common.c | 27 ++-- drivers/net/zxdh/zxdh_ethdev.c | 200 - drivers/net/zxdh/zxdh_ethdev.h | 14 +- drivers/net/zxdh/zxdh_ethdev_ops.c | 13 +- drivers/net/zxdh

[PATCH v3 05/16] net/zxdh: provided PF/VF msg intr callback

2025-02-25 Thread Junlong Wang
provided PF/VF msg intr callback. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 5 +- drivers/net/zxdh/zxdh_msg.c| 184 +++-- drivers/net/zxdh/zxdh_msg.h| 8 ++ drivers/net/zxdh/zxdh_tables.c | 17 +++ drivers/net/zxdh/zxdh_tables.h |

[PATCH v3 00/16] net/zxdh: updated net zxdh driver

2025-02-25 Thread Junlong Wang
V3: - fix warning enable asserts compile. - fix warning enable address sanitizer for undefined checks. - modify extra memset and cast. - remove __rte_unused from function prototypes. - fix indentation in mtr get and use assign. - make callback table const and static. V2: - modify CI

[PATCH] dts: add TG setup and teardown

2025-02-25 Thread Luca Vizzarro
Add traffic generator setup and teardown respectively in TestRunSetup and TestRunTeardown. Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framework/test_run.py | 2 ++ .../testbed_model/traffic_generator/traffic_generator.py| 2 +-

[PATCH 0/4] enhance testpmd DCB command

2025-02-25 Thread Chengwen Feng
This patchset enhance the testpmd DCB command features: 1) remove restrict of number of TCs (currently its 4 or 8) 2) support config prio-tc map 3) support don't adjust queue num 4) support disable DCB Chengwen Feng (4): app/testpmd: remove restrict of number of TCs in DCB command app/testpmd:

[PATCH v2] net/ixgbe: fix min Rx/Tx descriptors

2025-02-25 Thread Mingjin Ye
The minimum free packet threshold (tx_free_thresh) and the minimum RS bit threshold (tx_rs_thresh) both have a default value of 32. Therefore, the default minimum number of ring descriptors value is 64. For reference, see "Configuration of Transmit Queues" in doc/guides/prog_guide/ethdev/ethdev.rs

[PATCH 3/4] app/testpmd: support don't adjust queue num in DCB command

2025-02-25 Thread Chengwen Feng
In some test scenarios, users want to test DCB by specifying the number of Rx/Tx queues. But the "port config 0 dcb ..." command will auto adjust Rx/Tx queue number. This patch introduces an optional parameter "keep-qnum" which make sure the "port config 0 dcb ..." command don't adjust Rx/Tx queue

[PATCH 4/4] app/testpmd: support disable DCB command

2025-02-25 Thread Chengwen Feng
After the "port config 0 dcb ..." command is invoked, no command is available to disable DCB. This commit introduces disable DCB when num_tcs is 1, so user could disable the DCB by command: port config 0 dcb vt off 1 pfc off Signed-off-by: Chengwen Feng --- app/test-pmd/cmdline.c

[PATCH 2/4] app/testpmd: support config prio-tc map in DCB command

2025-02-25 Thread Chengwen Feng
Currently, the "port config 0 dcb ..." command config the prio-tc map by remainder operation, which means the prio-tc = prio % nb_tcs. This commit introduces an optional parameter "prio-tc" which is the same as kernel dcb ets tool. The new command: port config 0 dcb vt off 4 pfc off prio-tc 0:1

[PATCH 1/4] app/testpmd: remove restrict of number of TCs in DCB command

2025-02-25 Thread Chengwen Feng
Currently, the "port config 0 dcb ..." command only supports 4 or 8 TCs. Other number of TCs may be used in actual applications. This commit removes this restriction. Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng --- app/test-pmd/cmdline.c | 4 ++-- doc/guides/testpmd_a

[PATCH] net/mlx5: fix queue counter error check

2025-02-25 Thread Dariusz Sosnowski
Whenever queue counter allocation fails, the FW syndrome error should be checked to determine if maximum number of queue counters was reached. Fixes: f0c0731b6d40 ("net/mlx5: add counters for hairpin drop") Cc: shper...@nvidia.com Signed-off-by: Dariusz Sosnowski Acked-by: Bing Zhao --- driver

  1   2   >