[PATCH v26 09/13] compress/zsda: add zsda compressdev xform ops

2025-02-07 Thread Hanxiao Li
Add zsda compressdev xform interface implementation. Signed-off-by: Hanxiao Li --- drivers/compress/zsda/zsda_comp_pmd.c | 54 ++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/drivers/compress/zsda/zsda_comp_pmd.c b/drivers/compress/zsda/zsda_comp_pmd.c

[PATCH v26 07/13] compress/zsda: add zsda compressdev dev ops

2025-02-07 Thread Hanxiao Li
add zsda compressdev dev interface implementation. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 51 ++ drivers/common/zsda/zsda_qp.h | 3 + drivers/common/zsda/zsda_qp_common.h | 34 +++ drivers/compress/zsda/zsda_comp_pmd.c | 133 +++

[PATCH v26 12/13] compress/zsda: add zsda compressdev dequeue datapath

2025-02-07 Thread Hanxiao Li
Add zsda compressdev dequeue datapath. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 56 ++ drivers/common/zsda/zsda_qp.h | 1 + drivers/common/zsda/zsda_qp_common.h | 4 + drivers/compress/zsda/zsda_comp.c | 155 ++ drive

[PATCH v26 04/13] common/zsda: add functions to operate hardware queue

2025-02-07 Thread Hanxiao Li
Add functions to operate hardware queue, such as queue start,stop and clear. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_device.c| 7 ++ drivers/common/zsda/zsda_qp.c| 136 +++ drivers/common/zsda/zsda

[PATCH v26 11/13] compress/zsda: add zsda compressdev enqueue datapath

2025-02-07 Thread Hanxiao Li
Add zsda compressdev enqueue datapath. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/common/zsda/zsda_qp.c | 115 + drivers/common/zsda/zsda_qp.h | 9 +- drivers/common/zsda/zsda_qp_common.c | 72 drivers/common/zsd

[PATCH v26 06/13] compress/zsda: add zsda compressdev driver skeleton

2025-02-07 Thread Hanxiao Li
Add zsda compressdev driver interface skeleton Signed-off-by: Hanxiao Li --- MAINTAINERS | 3 + doc/guides/compressdevs/features/zsda.ini | 6 + doc/guides/compressdevs/index.rst | 1 + doc/guides/compressdevs/zsda.rst | 171 ++

[PATCH v26 02/13] common/zsda: add zsdadev driver

2025-02-07 Thread Hanxiao Li
Add basic zsdadev init and register PCI probe functions Signed-off-by: Hanxiao Li --- MAINTAINERS | 3 + drivers/common/zsda/meson.build | 13 ++ drivers/common/zsda/zsda_device.c| 187 +++ drivers/common/zsda/zsda_device.h| 54 ++

[PATCH v26 10/13] compress/zsda: add zsda compressdev qp ops

2025-02-07 Thread Hanxiao Li
Add zsda compressdev qp interface implementation. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 267 ++ drivers/common/zsda/zsda_qp.h | 80 drivers/common/zsda/zsda_qp_common.c | 52 + drivers/common/zsda/zsda_qp_common.h |

[PATCH v26 01/13] config: add zsda device number

2025-02-07 Thread Hanxiao Li
Add the number of zsda devices. Signed-off-by: Hanxiao Li --- config/rte_config.h | 4 1 file changed, 4 insertions(+) diff --git a/config/rte_config.h b/config/rte_config.h index 3734db6bdc..86897de75e 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -119,6 +119,10 @@ #defin

[PATCH v26 13/13] compress/zsda: add zsda compressdev capabilities

2025-02-07 Thread Hanxiao Li
Add zsda compressdev capabilities Signed-off-by: Hanxiao Li --- doc/guides/compressdevs/features/zsda.ini | 9 ++ doc/guides/compressdevs/zsda.rst | 23 ++ doc/guides/rel_notes/release_25_03.rst| 7 + drivers/compress/zsda/zsda_comp_pmd.c | 37 +

[PATCH v26 05/13] common/zsda: add definition and use of msg chan.

2025-02-07 Thread Hanxiao Li
Add msg chan functions and the use to get hardware information or operate hardware. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c| 297 +++ drivers/common/zsda/zsda_qp.h| 48 + drivers/common/zsda/zsda_qp_common.h | 26 +++ 3 files chan

[PATCH v26 03/13] common/zsda: add logging macros

2025-02-07 Thread Hanxiao Li
Add zxdh logging implementation. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_device.c| 22 +++--- drivers/common/zsda/zsda_logs.c | 19 +++ drivers/common/zsda/zsda_logs.h | 27 +

[PATCH v26 08/13] compress/zsda: add zsda compressdev stats ops

2025-02-07 Thread Hanxiao Li
Add zsda compressdev stats interface implementation. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_qp_common.c | 68 +++ drivers/common/zsda/zsda_qp_common.h | 17 +++ drivers/compress/zsda/zsda_comp_pmd.c | 24

[PATCH v26 00/13] drivers/zsda: introduce zsda drivers

2025-02-07 Thread Hanxiao Li
v26: - try to ensure all patches gets compiled incrementally. v25: - replace the ``__rte_packed`` macro. - fix an extra line at end of file in patch 11. v24: - Try to resolve the issue in v23 by sending all patches at once v23: - modify funcitons name to move the verb to the end - move the qp_se

[PATCH v7 24/28] net/rnp: add support Tx TSO offload

2025-02-07 Thread Wenbo Cao
Add support tx tso and tunnel tso. for tunnel just support vxlan/nvgre Signed-off-by: Wenbo Cao --- drivers/net/rnp/base/rnp_bdq_if.h | 1 + drivers/net/rnp/rnp.h | 2 +- drivers/net/rnp/rnp_ethdev.c | 16 ++ drivers/net/rnp/rnp_rxtx.c| 457 +

[PATCH v7 08/28] net/rnp: add queue setup and release operations

2025-02-07 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 | 1 + drivers/net/rnp/base/meson.build| 1 + drivers/net/rnp/base/rnp_bdq_if.c | 397 ++ drivers/net/rnp/base/rnp_bd

[PATCH v7 25/28] net/rnp: support VLAN offloads.

2025-02-07 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 | 1 + 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 v7 26/28] net/rnp: add support VLAN filters operations.

2025-02-07 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 | 2 +- drivers/net/rnp/base/meson.build| 1 + drivers/net/rnp/base/rnp_bitrev.h | 64 drivers/net/rnp/base/

[PATCH v7 21/28] net/rnp: add unicast MAC filter operation

2025-02-07 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_eth_regs.h | 4 ++ drivers/net/rnp/base/rnp_hw.h | 3 ++ drivers/net/rnp/base/rnp_mac.c | 91 +++

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

2025-02-07 Thread Wenbo Cao
add plaform method for get rx/tx burst function select by upload func name. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 2 ++ drivers/net/rnp/rnp_rxtx.c | 58 drivers/net/rnp/rnp_rxtx.h | 6 + 3 files changed, 66 insertions(+

[PATCH v7 27/28] net/rnp: add queue info operation.

2025-02-07 Thread Wenbo Cao
add support get queue configure info for user debug Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 2 ++ drivers/net/rnp/rnp_rxtx.c | 42 ++ drivers/net/rnp/rnp_rxtx.h | 4 3 files changed, 48 insertions(+) diff --git a/drivers/net

[PATCH v7 20/28] net/rnp: add support xstats operation

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

[PATCH v7 22/28] net/rnp: add supported packet types

2025-02-07 Thread Wenbo Cao
add support parse hw packet types result. 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 | 4 drivers/net/rnp/rnp_rxtx.c| 45 +++ 4 files changed,

[PATCH v7 23/28] net/rnp: add support Rx checksum offload

2025-02-07 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/r

[PATCH v7 17/28] net/rnp: add Rx scatter segment version

2025-02-07 Thread Wenbo Cao
add support scatter multi segment received. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini | 2 + doc/guides/nics/rnp.rst | 2 + drivers/net/rnp/rnp_rxtx.c | 131 ++- drivers/net/rnp/rnp_rxtx.h | 2 + 4 files changed,

[PATCH v7 19/28] net/rnp: add support basic stats operation

2025-02-07 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 | 1 + drivers/net/rnp/base/rnp_eth_regs.h | 3 + drivers/net/rnp/rnp.h | 10 ++- drivers/net/rnp/rnp_ethdev.c| 147

[PATCH v7 16/28] net/rnp: add MTU set operation

2025-02-07 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 | 1 + drivers/net/rnp/base/rnp_eth_regs.h | 3 + drivers/net/rnp/rnp.h

[PATCH v7 18/28] net/rnp: add Tx multiple segment version

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

[PATCH v7 15/28] net/rnp: add Tx burst simple support

2025-02-07 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/

[PATCH v7 11/28] net/rnp: add RSS support operations

2025-02-07 Thread Wenbo Cao
add support rss reta updata/qury 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 | 3 + drivers/net/rnp/base/rnp_eth_regs.h | 16 ++ drivers/net/rnp/meson.build | 1 +

[PATCH v7 14/28] net/rnp: add Rx burst simple support

2025-02-07 Thread Wenbo Cao
add only support simple recv pkts. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp_ethdev.c | 7 +++ drivers/net/rnp/rnp_rxtx.c | 129 +++ drivers/net/rnp/rnp_rxtx.h | 5 ++ 3 files changed, 141 insertions(+) diff --git a/drivers/net/rnp/rnp_ethd

[PATCH v7 13/28] net/rnp: add support link setup operations

2025-02-07 Thread Wenbo Cao
add set link_down/link_up implent Signed-off-by: Wenbo Cao --- 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 + drivers/net/rnp/base/rnp_mbx_fw.h

[PATCH v7 12/28] net/rnp: add support link update operations.

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

[PATCH v7 09/28] net/rnp: add queue stop and start operations

2025-02-07 Thread Wenbo Cao
support rx/tx queue stop/start,for rx queue stop need to reset a queue,must stop all rx queue durring reset this queue. Signed-off-by: Wenbo Cao --- doc/guides/nics/features/rnp.ini | 1 + drivers/net/rnp/base/rnp_common.c | 3 + drivers/net/rnp/rnp_link.c| 340 +

[PATCH v7 05/28] net/rnp: add device init and uninit

2025-02-07 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 --- drivers/net/rnp/base/meson.build| 4 + drivers/net/rnp/base/rnp_common.c | 73 drivers/net/rnp/base/rnp_common.h | 12 ++ drivers/n

[PATCH v7 10/28] net/rnp: add support device start stop operations

2025-02-07 Thread Wenbo Cao
add basic support for device to start/stop function Signed-off-by: Wenbo Cao --- 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_regs.h | 5 + drivers/net/rnp/base/rnp_hw.h

[PATCH v7 07/28] net/rnp: add support mac promisc mode

2025-02-07 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 | 5 ++ drivers/net/rnp/base/rnp_common.c | 5 ++ drivers/net/rnp/base/rnp_eth_regs.h | 15 +++

[PATCH v7 04/28] net/rnp: support mailbox basic operate

2025-02-07 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 | 22 ++ drivers/net/rnp/base/rnp_hw.h| 76 ++ drivers/net/rnp/base/r

[PATCH v7 06/28] net/rnp: add get device information operation

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

[PATCH v7 01/28] net/rnp: add skeleton

2025-02-07 Thread Wenbo Cao
Add basic PMD library and doc build infrastructure Update maintainers file to claim responsibility. Signed-off-by: Wenbo Cao Reviewed-by: Thomas Monjalon --- MAINTAINERS | 6 +++ doc/guides/nics/features/rnp.ini | 8 doc/guides/nics/index.rst| 1 + doc/guide

[PATCH v7 03/28] net/rnp: add log

2025-02-07 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 | 37 + 2 files changed, 39 insertions(+) create mode 100644 drivers/net/rnp/rnp_logs.h diff --git a/drivers/net/rnp/rnp_ethde

[PATCH v7 02/28] net/rnp: add ethdev probe and remove

2025-02-07 Thread Wenbo Cao
Add basic PCIe ethdev probe and remove. Signed-off-by: Wenbo Cao Reviewed-by: Stephen Hemminger --- drivers/net/rnp/meson.build | 11 +++ drivers/net/rnp/rnp.h| 13 drivers/net/rnp/rnp_ethdev.c | 77 3 files changed, 101 inserti

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

2025-02-07 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

RE: [EXTERNAL] Re: [PATCH] net/mana: use mana_local_data for tracking usage data for primary process

2025-02-07 Thread Long Li
> On Fri, 7 Feb 2025 15:21:45 -0800 > lon...@linuxonhyperv.com wrote: > > > + /* At least one eth_dev is probed, init shared data */ > > + if (rte_eal_process_type() == RTE_PROC_PRIMARY) { > > + rte_spinlock_lock(&mana_shared_data_lock); > > + mana_local_data.primary_cnt++

Re: [PATCH v4] test: improve resiliency of malloc autotest

2025-02-07 Thread fengchengwen
Acked-by: Chengwen Feng On 2025/2/7 22:32, Bruce Richardson wrote: > The test case "test_multi_alloc_statistics" was brittle in that it did > some allocations and frees and then checked statistics without > considering the initial state of the malloc heaps. This meant that, > depending on what al

Re: [PATCH] net/mana: use mana_local_data for tracking usage data for primary process

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 15:21:45 -0800 lon...@linuxonhyperv.com wrote: > + /* At least one eth_dev is probed, init shared data */ > + if (rte_eal_process_type() == RTE_PROC_PRIMARY) { > + rte_spinlock_lock(&mana_shared_data_lock); > + mana_local_data.primary_cnt++; > +

[PATCH] net/mana: use mana_local_data for tracking usage data for primary process

2025-02-07 Thread longli
From: Long Li The driver uses mana_shared_data for tracking usage count for primary process. This is not correct as the mana_shared_data is allocated by the primary and is meant to track usage of secondary process by the primary process. And it creates a race condition when the device is removed

RE: [EXTERNAL] [PATCH 1/4] net/netvsc: scan all net devices under the PCI device

2025-02-07 Thread Long Li
> Subject: [EXTERNAL] [PATCH 1/4] net/netvsc: scan all net devices under the PCI > device > > From: Long Li > > The current code has the wrong assumption that a PCI device can have only one > Ethernet device. This is not correct as a PCI device can be multi functional > and > have multiple Ethe

Re: [PATCH v1 3/3] net/intel: add Tx time queue

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 12:43:00 + Soumyadeep Hore wrote: > diff --git a/drivers/net/intel/common/tx.h b/drivers/net/intel/common/tx.h > index d9cf4474fc..f3777fa9e7 100644 > --- a/drivers/net/intel/common/tx.h > +++ b/drivers/net/intel/common/tx.h > @@ -35,6 +35,7 @@ struct ci_tx_queue { >

[PATCH v1 3/3] net/intel: add Tx time queue

2025-02-07 Thread Soumyadeep Hore
Enabling Tx timestamp queue for supporting Tx time based scheduling of packets. Signed-off-by: Soumyadeep Hore --- drivers/net/intel/common/tx.h | 5 + drivers/net/intel/ice/base/ice_lan_tx_rx.h | 1 + drivers/net/intel/ice/ice_ethdev.h | 1 + drivers/net/intel/ice/ice

[PATCH v1 2/3] net/intel: add E830 ETF offload timestamp resolution

2025-02-07 Thread Soumyadeep Hore
From: Paul Greenwalt Update E830 ETF offload time stamp resolution to 128ns. Signed-off-by: Soumyadeep Hore Signed-off-by: Paul Greenwalt --- drivers/net/intel/ice/base/ice_lan_tx_rx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/intel/ice/base/ice_lan_tx_rx.h b/drivers/ne

[PATCH v1 1/3] net/intel: add support for timestamp ring HW workaround

2025-02-07 Thread Soumyadeep Hore
From: Paul Greenwalt Earliest TxTime First Offload traffic result in an MDD event and Tx hang due to a HW issue where the TS descriptor fetch logic does not wrap around the tstamp ring properly. This occurs when the tail wraps around the ring but the head has not, causing HW to fetch descriptors

[PATCH v1 0/3] Implement TXPP Support in ICE PMD

2025-02-07 Thread Soumyadeep Hore
This patchset includes TXPP feature implementation in ICE PMD. Paul Greenwalt (2): net/intel: add support for timestamp ring HW workaround net/intel: add E830 ETF offload timestamp resolution Soumyadeep Hore (1): net/intel: add Tx time queue drivers/net/intel/common/tx.h |

Re: [PATCH v5 0/1] use 64-bit shift, avoid signed/unsigned mismatch

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 09:41:08 -0800 Andre Muezerie wrote: > This patch avoids warnings like the ones below emitted by MSVC: > > 1) > ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': > result of 32-bit shift implicitly converted to 64 bits > (was 64-bit shift intended?) > >

Re: [PATCH v5 0/1] use 64-bit shift, avoid signed/unsigned mismatch

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 09:41:08 -0800 Andre Muezerie wrote: > This patch avoids warnings like the ones below emitted by MSVC: > > 1) > ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': > result of 32-bit shift implicitly converted to 64 bits > (was 64-bit shift intended?) > >

[PATCH] devtools: ignore .gitignore in SPDX check

2025-02-07 Thread Stephen Hemminger
New .gitignore file in dts was getting marked as error. Change to ignore all .gitignore files. Remove no longer use Kbuild pattern. Signed-off-by: Stephen Hemminger --- devtools/check-spdx-tag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/check-spdx-tag.sh b

Re: [RFC PATCH 1/7] dts: add port topology configuration

2025-02-07 Thread Nicholas Pratte
Hi Luca, nice work! See comments below. > > > +class LinkPortIdentifier(NamedTuple): > +"""A tuple linking test run node type to port name.""" > + > +node_type: Literal["sut", "tg"] > +port_name: str > + > + > +class PortLinkConfig(FrozenModel): > +"""A link between the ports of t

[PATCH v5] net: add thread-safe crc api

2025-02-07 Thread Arkadiusz Kusztal
The current net CRC API is not thread-safe, this patch solves this by adding another, thread-safe API functions. This API is also safe to use across multiple processes, yet with limitations on max-simd-bitwidth, which will be checked only by the process that created the CRC context; all other proce

Re: [PATCH] net/sxe: add base driver directory and doc

2025-02-07 Thread Stephen Hemminger
On Fri, 3 Jan 2025 00:29:09 -0800 Jie Liu wrote: > Adding a minimum maintainable directory structure for the > network driver and request maintenance of the sxe driver. > > Signed-off-by: Jie Liu > --- > MAINTAINERS | 6 + > doc/guides/nics/features/sxe.ini| 1

Re: [PATCH] net/af_packet: fix socket close on device stop

2025-02-07 Thread Stephen Hemminger
On Tue, 4 Feb 2025 18:45:08 +0200 Tudor Cornea wrote: > Currently, if we call rte_eth_dev_stop(), the sockets are closed. > If we attempt to start the port again, socket related operations > will not work correctly. > > This can be alleviated by closing the socket at the same place in > which w

Re: [PATCH v4] drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

2025-02-07 Thread Stephen Hemminger
On Wed, 5 Feb 2025 11:32:24 -0800 Andre Muezerie wrote: > This patch avoids warnings like the ones below emitted by MSVC: > > 1) > ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': > result of 32-bit shift implicitly converted to 64 bits > (was 64-bit shift intended?) > >

Re: [PATCH] net: support Arista L2 headers

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 09:07:57 + "Denis Davidoglu" wrote: > From: Thomas Monjalon > > I'm not familiar with these headers. > > Are they standardized? > > Is there a RFC? > > Arista Vendor Specific Protocol is not publicly disclosed yet. However, > Wireshark already includes a dissector imp

Re: [PATCH v4] drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

2025-02-07 Thread Andre Muezerie
On Fri, Feb 07, 2025 at 03:56:42PM +, Bruce Richardson wrote: > On Fri, Feb 07, 2025 at 07:46:03AM -0800, Andre Muezerie wrote: > > On Thu, Feb 06, 2025 at 11:07:32AM +, Bruce Richardson wrote: > > > On Wed, Feb 05, 2025 at 11:32:24AM -0800, Andre Muezerie wrote: > > > > This patch avoids w

[PATCH v5 1/1] drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

2025-02-07 Thread Andre Muezerie
This patch avoids warnings like the ones below emitted by MSVC: 1) ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) 2) ../drivers/net/ice/ice_dcf_sched.c(177): warning C4018: '>=': signed

[PATCH v5 0/1] use 64-bit shift, avoid signed/unsigned mismatch

2025-02-07 Thread Andre Muezerie
This patch avoids warnings like the ones below emitted by MSVC: 1) ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) 2) ../drivers/net/ice/ice_dcf_sched.c(177): warning C4018: '>=': signed

RE: [PATCH v4] net: add thread-safe crc api

2025-02-07 Thread Kusztal, ArkadiuszX
> -Original Message- > From: Stephen Hemminger > Sent: Friday, February 7, 2025 6:13 PM > To: Kusztal, ArkadiuszX > Cc: dev@dpdk.org; ferruh.yi...@amd.com; Ji, Kai ; Dooley, > Brian > Subject: Re: [PATCH v4] net: add thread-safe crc api > > On Fri, 7 Feb 2025 06:37:58 + > Arkadi

Re: [PATCH v3 00/36] Merge Intel IGC and E1000 drivers, and update E1000 base code

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 12:44:52PM +, Anatoly Burakov wrote: > Intel IGC and E1000 drivers are distinct, but they are actually generated > from the same base code. This patchset will merge together all e1000-derived > drivers into one common base, with three different ethdev driver > frontends

Re: [PATCH v3 36/36] net/e1000: update e1000 documentation

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 12:45:28PM +, Anatoly Burakov wrote: > Now that the base code has been brought up to date, update the docs to > call this out. > > Signed-off-by: Anatoly Burakov > --- > doc/guides/rel_notes/release_25_03.rst | 1 + > drivers/net/intel/e1000/base/README| 6 +++---

Re: [PATCH v4] net: add thread-safe crc api

2025-02-07 Thread Stephen Hemminger
On Fri, 7 Feb 2025 06:37:58 + Arkadiusz Kusztal wrote: > +* net: A thread/process-safe API was introduced. Old and new APIs share the > same > + function names, but the old one is versioned. Replaced functions are: > + ``rte_net_crc_calc`` and ``rte_net_crc_set_alg``. The new one is > ``

Re: [PATCH v4] drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 07:46:03AM -0800, Andre Muezerie wrote: > On Thu, Feb 06, 2025 at 11:07:32AM +, Bruce Richardson wrote: > > On Wed, Feb 05, 2025 at 11:32:24AM -0800, Andre Muezerie wrote: > > > This patch avoids warnings like the ones below emitted by MSVC: > > > > > > 1) > > > ../driv

Re: [PATCH v3 07/36] net/e1000: add support for more I219 devices

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 02:12:27PM +0100, Burakov, Anatoly wrote: > On 07/02/2025 14:04, Bruce Richardson wrote: > > On Fri, Feb 07, 2025 at 12:44:59PM +, Anatoly Burakov wrote: > > > From: Vitaly Lifshits > > > > > > Add support for new hardware ID's from the I219 series. > > > > > > Signed

Re: [PATCH v4] drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

2025-02-07 Thread Andre Muezerie
On Thu, Feb 06, 2025 at 11:07:32AM +, Bruce Richardson wrote: > On Wed, Feb 05, 2025 at 11:32:24AM -0800, Andre Muezerie wrote: > > This patch avoids warnings like the ones below emitted by MSVC: > > > > 1) > > ../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<': > > result of 32

Re: [PATCH v6 00/15] Add allocation annotation to more functions

2025-02-07 Thread David Marchand
On Sat, Jan 25, 2025 at 7:40 PM Stephen Hemminger wrote: > > This patch series builds on the allocation function attributes > added in 24.11 release. These annotations will allow for compiler > to flag cases where a pointer is allocated with one function > but incorrectly passed to a different fre

Re: [PATCH v5 2/2] common/idpf: enable AVX2 for single queue Tx

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 02:55:09PM +, Wani, Shaiq wrote: > Hi, > > The AVX512 code paths and SSE code paths should be done together, we will > look into it next release. > Yes, agree. There is little point in just doing the AVX2 path for now, best to have all converted at the same time. Th

Re: [PATCH v6] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 07:04:28AM -0800, Andre Muezerie wrote: > Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. > Therefore the errors below are seen with MSVC: > > ../lib/mldev/mldev_utils_scalar.c(465): error C2065: > '__SIZEOF_LONG__': undeclared identifier > ../lib

Re: [PATCH v5] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-07 Thread Andre Muezerie
On Fri, Feb 07, 2025 at 11:56:13AM +0100, David Marchand wrote: > On Wed, Feb 5, 2025 at 5:12 PM Andre Muezerie > wrote: > > > > Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. > > Therefore the errors below are seen with MSVC: > > > > ../lib/mldev/mldev_utils_scalar.c(465):

[PATCH v6] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-07 Thread Andre Muezerie
Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. Therefore the errors below are seen with MSVC: ../lib/mldev/mldev_utils_scalar.c(465): error C2065: '__SIZEOF_LONG__': undeclared identifier ../lib/mldev/mldev_utils_scalar.c(478): error C2051: case expression not const

RE: [PATCH v5 2/2] common/idpf: enable AVX2 for single queue Tx

2025-02-07 Thread Wani, Shaiq
Hi, The AVX512 code paths and SSE code paths should be done together, we will look into it next release. /Shaiq -Original Message- From: Richardson, Bruce Sent: Friday, February 7, 2025 5:33 PM To: Wani, Shaiq Cc: dev@dpdk.org; Singh, Aman Deep Subject: Re: [PATCH v5 2/2] common/id

Re: [PATCH] ptr_compress: fix build for Arm SVE enabled SoC

2025-02-07 Thread David Marchand
On Tue, Jan 28, 2025 at 6:31 PM Nithin Dabilpuram wrote: > > Fix compilation issue with const conversion. > > Fixes: 077596a4b077 ("ptr_compress: add pointer compression library") > Cc: sta...@dpdk.org > > Signed-off-by: Nithin Dabilpuram Checked ARM intrinsics manual, this fix seems valid. Appl

Re: [PATCH 0/5] use portable macro for weak linking

2025-02-07 Thread Andre Muezerie
On Fri, Feb 07, 2025 at 09:47:19AM +0100, David Marchand wrote: > On Tue, Dec 24, 2024 at 4:06 AM Andre Muezerie > wrote: > > > > MSVC uses pragmas to indicate weak linking, so the old __rte_weak > > attribute needs to made into a macro so that the same syntax can > > be used for MSVC and other co

Re: [PATCH v2 1/1] buildtools: clear out regex syntax warnings

2025-02-07 Thread David Marchand
On Fri, Dec 13, 2024 at 3:42 PM Ariel Otilibili wrote: > > * invalid escape sequences now generate SyntaxWarning > * therefore changed syntax to raw string noration. > > Link: https://docs.python.org/3/library/re.html#module-re > Fixes: 0aeaf75df87 ("test: define unit tests suites based on test ty

Re: [PATCH] service: fix getting service lcore attributes

2025-02-07 Thread David Marchand
On Fri, Dec 20, 2024 at 3:30 PM Piotr Krzewinski wrote: > > Perf test service_perf_autotest was failing after introduction > of lcore variables. Fixed getting of idle_ and error_ service > call statistics. > > Fixes: b24bbaedbba2 ("service: keep per-lcore state in lcore variable") > Cc: sta...@dpd

Re: [PATCH v2] eal: fix unused memseg length

2025-02-07 Thread David Marchand
On Thu, Jan 2, 2025 at 9:59 AM Yang Ming wrote: > > Fix the issue where OS memory is mistakenly freed with rte_free > by setting the length (len) of unused memseg to 0. > > When `eal_legacy_hugepage_init()` releases the VA space for > unused memseg lists(MSLs), it does not reset MSLs' length to 0.

Re: [PATCH] log: avoid call close with negative value

2025-02-07 Thread David Marchand
On Wed, Feb 5, 2025 at 5:15 PM Stephen Hemminger wrote: > > On error path, the journal socket code would call close > with -1 which caused Coverity warning. > > Coverity issue: 448872 > Fixes: 9da0dc6c0331 ("log: support systemd journal") > > Signed-off-by: Stephen Hemminger Applied, thanks. -

[PATCH v4] test: improve resiliency of malloc autotest

2025-02-07 Thread Bruce Richardson
The test case "test_multi_alloc_statistics" was brittle in that it did some allocations and frees and then checked statistics without considering the initial state of the malloc heaps. This meant that, depending on what allocations/frees were done beforehand, the test can sometimes fail. We can im

[PATCH] test: improve resiliency of malloc autotest

2025-02-07 Thread Bruce Richardson
The test case "test_multi_alloc_statistics" was brittle in that it did some allocations and frees and then checked statistics without considering the initial state of the malloc heaps. This meant that, depending on what allocations/frees were done beforehand, the test can sometimes fail. We can im

RE: [PATCH v2 2/2] mempool: make rte_mempool_create_empty a single-exit

2025-02-07 Thread Konstantin Ananyev
> For properly setting rte_errno, and exiting rte_mempool_create_empty() > from a single place. > > Bugzilla ID: 1559 > Signed-off-by: Ariel Otilibili > --- > lib/mempool/rte_mempool.c | 27 +++ > 1 file changed, 15 insertions(+), 12 deletions(-) > > diff --git a/lib/m

RE: [PATCH v2 1/2] mempool: fix rte_errno in rte_mempool_create_empty

2025-02-07 Thread Konstantin Ananyev
> > When returning from rte_mempool_set_ops_byname(), rte_errno is not set > for error exits. > > The API requires rte_errno to be set in that case. > > Bugzilla ID: 1559 > Fixes: c2c6b2f41305 ("mempool: fix default ops for an empty mempool") > Link: > https://doc.dpdk.org/api/rte__mempool_8h.

RE: [PATCH v22 00/27] remove use of VLAs for Windows

2025-02-07 Thread Konstantin Ananyev
Hi David, > > As per guidance technical board meeting 2024/04/17. This series > > removes the use of VLAs from code built for Windows for all 3 > > toolchains. If there are additional opportunities to convert VLAs > > to regular C arrays please provide the details for incorporation > > into the se

[PATCH 2/3] event/cnxk: enable PMD op to burst add queues to Rx adapter

2025-02-07 Thread Shijith Thotton
Implemented PMD support for the eventdev PMD operation to burst add queues to the Rx adapter. Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 82 -- drivers/event/cnxk/cn20k_eventdev.c | 195 --- drivers/event/cnxk/cn9k_eventdev.c

Re: [PATCH 1/1] vhost: add NULL callback checks

2025-02-07 Thread Maxime Coquelin
On 1/24/25 3:14 PM, Kevin Traynor wrote: rte_vhost_driver_callback_register() does not specify any mandatory callbacks in struct rte_vhost_device_ops. Add some missing NULL checks before calling rte_vhost_device_ops callbacks. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost appl

Re: [PATCH] vhost: fix FD entries cleanup

2025-02-07 Thread Maxime Coquelin
On 2/6/25 9:41 AM, Maxime Coquelin wrote: With the recent rework of the FD manager to use epoll, an error message is emitted with Vhost-user at FD entry removal: ERR|VHOST_FDMAN: could not remove 102 fd from 101 epfd: No such file or directory It occurs because the read callback closes the

Re: [PATCH] vhost: fix VDUSE devices registration

2025-02-07 Thread Maxime Coquelin
On 1/31/25 2:09 PM, Maxime Coquelin wrote: This patch fixes a regression in vhost_driver_register() causing VDUSE devices registration to fail systematically because the return value was initialized to -1 and not changed later on for this type of devices. Fixes: 4d2aa150769b ("vhost: remove c

Re: [v3] vhost: include AKCIPHER algorithms in crypto_config

2025-02-07 Thread Maxime Coquelin
On 1/7/25 7:25 PM, Gowrishankar Muthukrishnan wrote: Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Akhil Goyal --- v3: - rebased on main. lib/vhost/virtio_crypto.h | 2 +- 1 file change

Re: [PATCH] net/vhost: improve devargs documentation

2025-02-07 Thread Maxime Coquelin
On 12/20/24 3:58 PM, Maxime Coquelin wrote: This patch adds missing 'client' devarg documentation and improve other devargs. Bugzilla ID: 1603 Signed-off-by: Maxime Coquelin --- doc/guides/nics/vhost.rst | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/gui

[PATCH 3/3] test/event: unit test to burst add Rx queues to adapter

2025-02-07 Thread Shijith Thotton
Added unit test for adding queues to Rx adapter in bursts using rte_event_eth_rx_adapter_queues_add(). Signed-off-by: Shijith Thotton --- app/test/test_event_eth_rx_adapter.c | 86 1 file changed, 86 insertions(+) diff --git a/app/test/test_event_eth_rx_adapter.c b

[PATCH 1/3] eventdev/eth_rx: add API to burst add queues to Rx adapter

2025-02-07 Thread Shijith Thotton
This patch introduces a new API, rte_event_eth_rx_adapter_queues_add(), to allow bulk addition of multiple Rx queues in the eventdev Rx adapter. The existing rte_event_eth_rx_adapter_queue_add() API supports adding multiple queues by specifying rx_queue_id = -1, but it lacks the ability to apply s

[PATCH 0/3] Rx adapter API to add Rx queues in burst

2025-02-07 Thread Shijith Thotton
This patch series introduces the rte_event_eth_rx_adapter_queues_add() API, allowing multiple Rx queues to be added to an Rx adapter in a single burst. This enhancement benefits applications that require bulk addition of Rx queues. To support this API, a new internal eventdev PMD operation for a

[PATCH] examples/ipsec-secgw: fix iv len in ctr 192/256

2025-02-07 Thread Nithinsen Kaithakadan
This patch fixes IV length to 8 in case of AES-CTR 192/256. Fixes: 9413c3901f31 ("examples/ipsec-secgw: support additional algorithms") Signed-off-by: Nithinsen Kaithakadan --- examples/ipsec-secgw/sa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw

Re: [PATCH 1/1] vhost: add NULL callback checks

2025-02-07 Thread Maxime Coquelin
On 1/24/25 3:14 PM, Kevin Traynor wrote: rte_vhost_driver_callback_register() does not specify any mandatory callbacks in struct rte_vhost_device_ops. Add some missing NULL checks before calling rte_vhost_device_ops callbacks. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost appl

  1   2   >