[PATCH] examples/ipsec-secgw: fix dequeue count from cryptodev

2024-09-12 Thread Tejasree Kondoj
Setting dequeue packet count to max of MAX_PKT_BURST size instead of MAX_PKTS. Dequeue from cryptodev is called with MAX_PKTS but routing functions allocate hop/dst_ip arrays of size MAX_PKT_BURST. This can corrupt stack causing stack smashing error when more than MAX_PKT_BURST packets are returne

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 17:11, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom wrote: On 2024-09-12 15:09, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't sig

[v1 27/43] net/dpaa2: frame attribute flags parser

2024-09-12 Thread vanshika . shukla
From: Jun Yang FAF parser extracts are used to identify protocol type instead of extracts of previous protocol' type. FAF starts from offset 2 to include user defined flags which will be used for soft protocol distribution. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 475 +

[PATCH v4] net/ice: support customized search path for DDP package

2024-09-12 Thread Zhichao Zeng
This patch adds support for customizing firmware search path for DDP package like the kernel behavior, it will read the search path from "/sys/module/firmware_class/parameters/path", and try to load DDP package. Also, updates documentation for loading the DDP package in ice.rst. Signed-off-by: Zh

[v1 43/43] net/dpaa2: dpdmux single flow/multiple rules support

2024-09-12 Thread vanshika . shukla
From: Jun Yang Support multiple extractions as well as hardware descriptions instead of hard code. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.h | 1 + drivers/net/dpaa2/dpaa2_mux.c| 395 --- drivers/net/dpaa2/dpaa2_parse_dump.h | 2 + dri

[v1 42/43] net/dpaa2: add support for C-VLAN and MAC

2024-09-12 Thread vanshika . shukla
From: Vanshika Shukla This patch adds the support for DPDMUX_METHOD_C_VLAN_MAC method which implements DPDMUX based on C-VLAN and MAC address. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 2 +- drivers/net/dpaa2/mc/fsl_dpdmux.h | 16 2 files changed,

[v1 41/43] net/dpaa2: support VLAN traffic splitting

2024-09-12 Thread vanshika . shukla
From: Vanshika Shukla This patch adds support for adding rules in DPDMUX to split VLAN traffic based on VLAN ids. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/n

[v1 40/43] net/dpaa2: add API to get endpoint name

2024-09-12 Thread vanshika . shukla
From: Jun Yang Export API in rte_pmd_dpaa2.h Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 24 drivers/net/dpaa2/dpaa2_ethdev.h | 4 drivers/net/dpaa2/rte_pmd_dpaa2.h | 3 +++ drivers/net/dpaa2/version.map | 1 + 4 files changed, 32 inser

[v1 39/43] net/dpaa2: store drop priority in mbuf

2024-09-12 Thread vanshika . shukla
From: Apeksha Gupta store drop priority in mbuf from fd. Signed-off-by: Sachin Saxena Signed-off-by: Apeksha Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/net/dpaa2/dpaa2_rxtx.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw

[v1 38/43] net/dpaa2: improve DPDMUX error behavior settings

2024-09-12 Thread vanshika . shukla
From: Sachin Saxena compatible with MC v10.36 or later Signed-off-by: Sachin Saxena --- drivers/net/dpaa2/dpaa2_mux.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index 4390be9789..3c9e155b23 10064

[v1 37/43] net/dpaa2: check IOVA before sending MC command

2024-09-12 Thread vanshika . shukla
From: Jun Yang Convert VA to IOVA and check IOVA before sending parameter to MC. Invalid IOVA of parameter sent to MC will cause system stuck and not be recovered unless power reset. IOVA is not checked in data path because: 1) MC is not involved and error can be recovered. 2) IOVA check impacts

[v1 33/43] net/dpaa2: soft parser flow verification

2024-09-12 Thread vanshika . shukla
From: Jun Yang Add flow supported by soft parser to verification list. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 86 -- 1 file changed, 52 insertions(+), 34 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_fl

[v1 36/43] net/dpaa2: support software taildrop

2024-09-12 Thread vanshika . shukla
From: Gagandeep Singh Add software based taildrop support. Signed-off-by: Gagandeep Singh --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 24 +++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslm

[v1 35/43] net/dpaa2: fix memory corruption in TM

2024-09-12 Thread vanshika . shukla
From: Gagandeep Singh driver was reserving memory in an array for 8 queues only, but it can support many more queues configuration. This patch fixes the memory corruption issue by defining the queue array with correct size. Fixes: 72100f0dee21 ("net/dpaa2: support level 2 in traffic management"

[v1 32/43] net/dpaa2: check if Soft parser is loaded

2024-09-12 Thread vanshika . shukla
From: Jun Yang Access sp instruction area to check if sp is loaded. Signed-off-by: Jun Yang Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 ++ drivers/net/dpaa2/dpaa2_ethdev.h | 2 + drivers/net/dpaa2/dpaa2_flow.c | 88 3 files cha

[v1 34/43] net/dpaa2: add flow support for IPsec AH and ESP

2024-09-12 Thread vanshika . shukla
From: Jun Yang Support AH/ESP flow with SPI field. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 528 - 1 file changed, 385 insertions(+), 143 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c index 7207547

[v1 29/43] net/dpaa2: protocol inside tunnel distribution

2024-09-12 Thread vanshika . shukla
From: Jun Yang Control flow by protocols inside tunnel. The tunnel flow items applied by application are in order from outer to inner. The inner items start from tunnel item, something like vxlan, GRE etc. For example: flow create 0 ingress pattern ipv4 / vxlan / ipv6 / end actions pf /

[v1 30/43] net/dpaa2: eCPRI support by parser result

2024-09-12 Thread vanshika . shukla
From: Jun Yang Soft parser extracts ECPRI header and message to specified areas of parser result. Flow is classified according to the ECPRI extracts from praser result. This implementation supports ECPRI over ethernet/vlan/UDP and various types/messages combinations. Signed-off-by: Jun Yang ---

[v1 31/43] net/dpaa2: add GTP flow support

2024-09-12 Thread vanshika . shukla
From: Jun Yang Configure gtp flow to support RSS and FS. Check FAF of parser result to identify GTP frame. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 170 ++--- 1 file changed, 137 insertions(+), 33 deletions(-) diff --git a/drivers/net/dpaa2/dpaa

[v1 26/43] net/dpaa2: enhancement of raw flow extract

2024-09-12 Thread vanshika . shukla
From: Jun Yang Support combination of RAW extract and header extracts. RAW extract can start from any absolute offset. TBD: relative offset support. To support relative offset of previous L3 protocol item, extracts should be expanded to identify if the frame is: vlan or none-vlan. To support re

[v1 28/43] net/dpaa2: add VXLAN distribution support

2024-09-12 Thread vanshika . shukla
From: Jun Yang Extracts from vxlan header for distribution. The vxlan header is set by soft parser code in soft parser context located from offset 43 of parser results: vxlan protocol is identified by vxlan bit of frame attribut flags. The parser result extracts are added for this functionalit

[v1 25/43] net/dpaa2: dump Rx parser result

2024-09-12 Thread vanshika . shukla
From: Jun Yang export DPAA2_PRINT_RX_PARSER_RESULT=1 is used to dump RX parser result and frame attribute flags generated by hardware parser and soft parser. The parser results are converted to big endian described in RM. The areas set by soft parser are dump as well. Signed-off-by: Jun Yang --

[v1 22/43] bus/fslmc: introduce VFIO DMA mapping API for fslmc

2024-09-12 Thread vanshika . shukla
From: Jun Yang Declare rte_fslmc_vfio_mem_dmamap and rte_fslmc_vfio_mem_dmaunmap in bus_fslmc_driver.h for external usage. Signed-off-by: Jun Yang --- drivers/bus/fslmc/bus_fslmc_driver.h | 7 ++- drivers/bus/fslmc/fslmc_bus.c| 2 +- drivers/bus/fslmc/fslmc_vfio.c

[v1 23/43] net/dpaa2: change miss flow ID macro name

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Remove miss flow id macro name to DPNI_FS_MISS_DROP since its conflicting with enum. Also, set default miss flow id to 0. Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_flow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2

[v1 21/43] bus/fslmc: change qbman eq desc from d to desc

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Change qbman_eq_desc name to avoid redefining same variable. Signed-off-by: Rohit Raj --- drivers/bus/fslmc/qbman/qbman_portal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_porta

[v1 20/43] bus/fslmc: fix invalid error FD code

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Since error code was being set to 0 in case of error which is a valid fd, it caused memory leak issue. This issue have been fixed by changing zero to a valid non fd error. CID: 26661848 Signed-off-by: Rohit Raj --- drivers/bus/fslmc/fslmc_vfio.c | 19 ++- 1 file

[v1 19/43] bus/fslmc: fix coverity issue

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Fix Issues reported by coverity (NXP Internal Coverity) Signed-off-by: Rohit Raj --- drivers/bus/fslmc/qbman/qbman_debug.c | 49 +-- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_debug.c b/drivers/bus/fslm

[v1 18/43] bus/fslmc: create dpaa2 device with it's object

2024-09-12 Thread vanshika . shukla
From: Jun Yang Create dpaa2 device with object instead of object ID. Assign each dpaa2 object with it's container. Signed-off-by: Jun Yang --- drivers/bus/fslmc/bus_fslmc_driver.h | 39 drivers/bus/fslmc/fslmc_vfio.c | 3 +- drivers/bus/fslmc/portal/dpaa

[v1 16/43] bus/fslmc: dynamic IOVA mode configuration

2024-09-12 Thread vanshika . shukla
From: Jun Yang IOVA mode should not be configured with CFLAGS because 1) User can perform "--iova-mode" to configure IOVA. 2) IOVA mode is determined by negotiation between multiple devices. Eal is in VA mode only when all devices support VA mode. Hence: 1) Remove RTE_LIBRTE_DPAA2_USE_PHYS_IO

[v1 17/43] bus/fslmc: remove VFIO IRQ mapping

2024-09-12 Thread vanshika . shukla
From: Jun Yang Remove unused GITS translator VFIO mapping. Signed-off-by: Jun Yang --- drivers/bus/fslmc/fslmc_vfio.c | 50 -- 1 file changed, 50 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 31011b8532..f5d398c

[v1 14/43] bus/fslmc: enhance MC VFIO multiprocess support

2024-09-12 Thread vanshika . shukla
From: Jun Yang MC VFIO is not registered into RTE VFIO. Primary process registers MC vfio mp action for secondary process to request. VFIO/Container handlers are provided via CMSG. Primary process is responsible to connect MC VFIO group to container. In addition, MC VFIO code is refactored accor

[v1 15/43] bus/fslmc: free VFIO group FD in case of add group failure

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Free vfio_group_fd if add group fails to avoid ersource leak NXP coverity-id: 26661846 Signed-off-by: Rohit Raj --- drivers/bus/fslmc/fslmc_vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_v

[v1 13/43] bus/fslmc: get MC VFIO group FD directly

2024-09-12 Thread vanshika . shukla
From: Jun Yang Get vfio group fd directly from file system instead of from RTE API to avoid conflicting with PCIe VFIO. FSL MC VFIO should have it's own logic which doe NOT depend on RTE VFIO. Signed-off-by: Jun Yang --- drivers/bus/fslmc/fslmc_vfio.c | 88 ++ d

[v1 12/43] bus/fslmc: improve BMAN buffer acquire

2024-09-12 Thread vanshika . shukla
From: Jun Yang Ignore reserved bits of BMan acquire response number. Signed-off-by: Jun Yang --- drivers/bus/fslmc/qbman/qbman_portal.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/q

[v1 08/43] bus/fslmc: upgrade with MC version 10.37

2024-09-12 Thread vanshika . shukla
From: Gagandeep Singh This patch upgrades the MC version compaitbility to 10.37 Signed-off-by: Gagandeep Singh Signed-off-by: Apeksha Gupta --- doc/guides/platform/dpaa2.rst | 4 +- drivers/bus/fslmc/mc/dpio.c | 94 - drivers/bus/fslmc/mc/fsl_dpcon.h

[v1 11/43] net/dpaa2: add new PMD API to check dpaa platform version

2024-09-12 Thread vanshika . shukla
From: Jun Yang This patch add support to check the DPAA platform type from the applications. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 16 +--- drivers/net/dpaa2/dpaa2_flow.c| 5 ++--- drivers/net/dpaa2/rte_pmd_dpaa2.h | 4 drivers/net/dpaa2/version

[v1 10/43] net/dpaa2: update DPNI link status method

2024-09-12 Thread vanshika . shukla
From: Brick Yang If SFP module is not connected to the port and flow control is configured using flow control API, link will show DOWN even after connecting the SFP module and fiber cable. This issue cannot be reproduced if only SFP module is connected and fiber cable is disconnected before conf

[v1 09/43] net/dpaa2: support link state for eth interfaces

2024-09-12 Thread vanshika . shukla
From: Rohit Raj This patch add support to update the duplex value along with link status and link speed after setting the link UP. Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_ethdev.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/dpaa

[v1 07/43] net/dpaa2: dpdmux: add support for CVLAN

2024-09-12 Thread vanshika . shukla
From: Vanshika Shukla This patch adds the support for DPDMUX_METHOD_C_VLAN_MAC method which implements DPDMUX based on C-VLAN and MAC address. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 59 +-- drivers/net/dpaa2/mc/fsl_dpdmux.h | 18 +

[v1 06/43] bus/fslmc: add close API to close DPAA2 device

2024-09-12 Thread vanshika . shukla
From: Rohit Raj Add rte_fslmc_close API to close all the DPAA2 devices while closing the DPDK application. Signed-off-by: Rohit Raj --- drivers/bus/fslmc/bus_fslmc_driver.h | 3 + drivers/bus/fslmc/fslmc_bus.c| 13 drivers/bus/fslmc/fslmc_vfio.c | 87 +++

[v1 04/43] net/dpaa2: add support to dump dpdmux counters

2024-09-12 Thread vanshika . shukla
From: Hemant Agrawal This patch add supports to dump dpdmux counters as they are required to identify the reasons for packet drop in dpdmux. Signed-off-by: Hemant Agrawal Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_mux.c | 84 +++ drivers/net/dpaa2/rte

[v1 02/43] net/dpaa2: support PTP packet one-step timestamp

2024-09-12 Thread vanshika . shukla
From: Vanshika Shukla This patch adds PTP one-step timestamping support. dpni_set_single_step_cfg() MC API is utilized with offset provided to insert correction time on frame. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 61 +++ drivers/net

[v1 03/43] net/dpaa2: add proper MTU debugging print

2024-09-12 Thread vanshika . shukla
From: Apeksha Gupta This patch add proper debug info for check information of max-pkt-len and configured params. also store MTU Signed-off-by: Apeksha Gupta Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/d

[v1 05/43] bus/fslmc: change dpcon close as internal symbol

2024-09-12 Thread vanshika . shukla
From: Hemant Agrawal This patch marks dpcon_close API as internal symbol and also adds it into version map file Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/mc/fsl_dpcon.h | 3 ++- drivers/bus/fslmc/version.map| 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/driv

[v1 01/43] net/dpaa2: enhance Tx scatter-gather mempool

2024-09-12 Thread vanshika . shukla
From: Jun Yang Create TX SG pool only for primary process and lookup this pool in secondary process. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 46 +++- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethde

[v1 00/43] DPAA2 specific patches

2024-09-12 Thread vanshika . shukla
From: Vanshika Shukla This series includes: -> Fixes and enhancements for NXP DPAA2 drivers. -> Upgrade with MC version 10.37 -> Enhancements in DPDMUX code -> Fixes for coverity issues reported Apeksha Gupta (2): net/dpaa2: add proper MTU debugging print net/dpaa2: store drop priority in mb

Re: [PATCH v3] doc: add new driver guidelines

2024-09-12 Thread WanRenyong
On 2024/9/13 4:26, Stephen Hemminger wrote > + > +Finalizing > +-- > + > +Once the driver has been upstreamed, the author has > +a responsibility to the community to maintain it. > + > +This includes the public test report. Authors must send a public > +test report after the first upstreami

Re: [PATCH v2 05/19] net/xsc: add ioctl command interface

2024-09-12 Thread WanRenyong
On 2024/9/12 17:18, fengchengwen wrote: > On 2024/9/12 16:19, WanRenyong wrote: >> On 2024/9/12 13:50, Stephen Hemminger wrote: >>> On Thu, 12 Sep 2024 12:14:08 +0800 >>> "WanRenyong" wrote: >>> > >> +}; >> + > Does this device driver depend on some upstr Yes, it depends o

DTS WG Meeting Minutes - September 12, 2024

2024-09-12 Thread Patrick Robb
# September 12, 2024 Attendees * Patrick Robb * Paul Szczepanek * Alex Chapman * Luca Vizzarro * Jeremey Spewock * Juraj Linkeš # Minutes ===

Re: [PATCH v2 1/6] dts: Remove build target config and list of devices

2024-09-12 Thread Nicholas Pratte
> > @classmethod > > def from_dict(cls, d: BuildTargetConfigDict) -> Self: > > r"""A convenience method that processes the inputs before creating > > an instance. > > > > -`arch`, `os`, `cpu` and `compiler` are converted to > > :class:`Enum`\s and > > -`name` i

Re: [PATCH v2 1/6] dts: Remove build target config and list of devices

2024-09-12 Thread Nicholas Pratte
On Tue, Sep 10, 2024 at 7:30 AM Juraj Linkeš wrote: > > The subject line should be all lowercase (except for abbreviations and > maybe some other exceptions). Ack. > > On 5. 7. 2024 19:13, Nicholas Pratte wrote: > > Remove the list of devices from the schema, as these are unuesed. > > Typo: unus

[PATCH v3] doc: add new driver guidelines

2024-09-12 Thread Stephen Hemminger
From: Nandini Persad This document was created to assist contributors in creating DPDK drivers and provides suggestions and guidelines on how to upstream effectively. Co-authored-by: Ferruh Yigit Co-authored-by: Thomas Monjalon Signed-off-by: Nandini Persad Reviewed-by: Stephen Hemminger ---

Re: [PATCH v19 5/5] dts: add API doc generation

2024-09-12 Thread Thomas Monjalon
21/08/2024 17:02, Juraj Linkeš: > +if 'dts' in src: > +os.environ['DTS_BUILD'] = "y" That's more precisely "DTS doc build". I think the variable name DTS_BUILD may be confusing. [...] > --- /dev/null > +++ b/buildtools/get-dts-runtime-deps.py > @@ -0,0 +1,95 @@ > +#!/usr/bin/env python3 > +#

[PATCH v5 2/2] dts: mac filter test suite refactored for new dts

2024-09-12 Thread Nicholas Pratte
The mac address filter test suite, whose test cases are based on old DTS's test cases, has been refactored to interface with the new DTS framework. In porting over this test suite into the new framework, some adjustments were made, namely in the EAL and TestPMD parameter provided before executing

[PATCH v5 1/2] dts: add methods for setting mac and multicast addresses

2024-09-12 Thread Nicholas Pratte
New methods have been added to TestPMDShell in order to produce the mac filter's individual test cases: - set_mac_addr - set_multicast_mac_addr set_mac_addr and set_multicast_addr were created for the mac filter test suite, enabling users to both add or remove mac and multicast addresses based o

[PATCH v5 0/2] Mac Filter Port to New DTS

2024-09-12 Thread Nicholas Pratte
v5: * Addressed some concerns on docstrings based on previous reviews. Nicholas Pratte (2): dts: add methods for setting mac and multicast addresses dts: mac filter test suite refactored for new dts dts/framework/config/conf_yaml_schema.json| 3 +- dts/framework/remote_session/testpm

RE: [RFC 1/2] eal: add llc aware functions

2024-09-12 Thread Wathsala Wathawana Vithanage
> > > > For instance, in Neoverse N1 can disable the use of SLC as LLC (a BIOS > > setting) If SLC is not used as LLC, then your script would report the > > unified L2 > as an LLC. > > Does `disabling SLC as LLC` disable L3? I think not, and what you are > implying is > the ` ls -d /sys/bus/cpu

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 15:30, Bruce Richardson wrote: On Thu, Sep 12, 2024 at 01:59:34PM +0200, Mattias Rönnblom wrote: On 2024-09-12 13:17, Varghese, Vipin wrote: [AMD Official Use Only - AMD Internal Distribution Only] Thank you Mattias for the information, as shared by in the reply with Anatoly w

Re: [PATCH v1 00/30] Update net/i40e base driver

2024-09-12 Thread Bruce Richardson
On Mon, Sep 02, 2024 at 10:54:12AM +0100, Anatoly Burakov wrote: > Update the i40e base driver to the latest version of the snapshot. > Series-acked-by: Bruce Richardson On apply I tagged a few more patches as bugfixes (including fixes line) for backport to the older LTS releases. Applied to dp

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Stephen Hemminger
On Thu, 12 Sep 2024 14:12:55 +0200 Mattias Rönnblom wrote: > On 2024-09-12 13:23, Varghese, Vipin wrote: > > [Public] > > > > Snipped > >> > >> > >> To to be clear; it's something like this I think of when I say "DOM-style" > >> API. > >> > >> #ifndef RTE_HWTOPO_H > >> #define RTE_HWTOPO_H

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 7:11 PM Morten Brørup wrote: > > > From: Jerin Jacob [mailto:jerinjac...@gmail.com] > > Sent: Thursday, 12 September 2024 15.17 > > > > On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup > > wrote: > > > > > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) >

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 6:50 PM Mattias Rönnblom wrote: > > On 2024-09-12 15:09, Jerin Jacob wrote: > > On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom > > wrote: > >> > >> Add basic micro benchmark for lcore variables, in an attempt to assure > >> that the overhead isn't significantly greater t

RE: [PATCH] net/ena: revert redefining memcpy

2024-09-12 Thread Brandes, Shai
> -Original Message- > From: Ferruh Yigit > Sent: Thursday, September 12, 2024 11:20 AM > To: Tyler Retzlaff ; Stephen Hemminger > ; Brandes, Shai > Cc: dev@dpdk.org; Schmeilin, Evgeny ; Beider, Ron > ; Bernstein, Amit ; > Atrash, Wajeeh ; Chauskin, Igor > ; Michal Krawczyk ; Artur Roje

Re: [PATCH v2 02/14] devtools: report all warnings in forbidden token check

2024-09-12 Thread Thomas Monjalon
12/09/2024 10:26, David Marchand: > Do not stop at the first file that got warnings. > > Signed-off-by: David Marchand It is always better to get all issues in one pass. Acked-by: Thomas Monjalon

Re: [PATCH v2 01/14] devtools: fix forbidden token check with multiple files

2024-09-12 Thread Thomas Monjalon
12/09/2024 10:26, David Marchand: > --- a/devtools/check-forbidden-tokens.awk > +++ b/devtools/check-forbidden-tokens.awk > @@ -32,14 +32,11 @@ BEGIN { > for (i in deny_expr) { > forbidden_added = "^\\+.*" deny_expr[i]; > forbidden_removed="

Re: [RFC v3 0/3] Import Kernel uAPI header files

2024-09-12 Thread Maxime Coquelin
On 9/12/24 15:16, Ferruh Yigit wrote: On 9/12/2024 1:08 PM, Maxime Coquelin wrote: Hi Ferruh, On 9/12/24 10:30, Ferruh Yigit wrote: On 9/11/2024 8:32 PM, Maxime Coquelin wrote: This series enables importing Linux Kernel uAPI headers into the DPDK repository. It aims at solving alignment is

RE: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Morten Brørup
> From: Jerin Jacob [mailto:jerinjac...@gmail.com] > Sent: Thursday, 12 September 2024 15.17 > > On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup > wrote: > > > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) > > > > Considering hugepages... > > > > Lcore variables may be allocate

Re: [PATCH v3] doc: add new driver guidelines

2024-09-12 Thread Nandini Persad
Excellent. Will send the update in accordingly. From: Ferruh Yigit Sent: Thursday, September 12, 2024 6:37:35 AM To: Nandini Persad Cc: dev@dpdk.org ; Thomas Mojalon ; Stephen Hemminger Subject: Re: [PATCH v3] doc: add new driver guidelines On 9/12/2024 2:18 PM

Re: [PATCH v3] doc: add new driver guidelines

2024-09-12 Thread Ferruh Yigit
On 9/12/2024 2:18 PM, Nandini Persad wrote: > I like the separation. I can include it in V4 and see, it would be > helpful to know if it’s more or less confusing that way.  > > For the prompt before each list, can we say something like “Avoid doing > the following” and “Suggested actions” or somet

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Bruce Richardson
On Thu, Sep 12, 2024 at 01:59:34PM +0200, Mattias Rönnblom wrote: > On 2024-09-12 13:17, Varghese, Vipin wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > > > > > > Thank you Mattias for the information, as shared by in the reply > > > with > > > >> Anatoly we want

[DPDK/DTS Bug 1541] Add support for VM SR-IOV testing

2024-09-12 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1541 Bug ID: 1541 Summary: Add support for VM SR-IOV testing Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Pr

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 15:09, Jerin Jacob wrote: On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't significantly greater than alternative approaches, in scenarios where the benefits aren't expected to s

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 11:17, Bruce Richardson wrote: On Thu, Sep 12, 2024 at 02:19:07AM +, Varghese, Vipin wrote: [Public] > > > > > > > > > > > >>> > > > >>> > > > >>> Thank you Mattias for the comments and question, please let me > > > >>> try to exp

Re: [PATCH v3] doc: add new driver guidelines

2024-09-12 Thread Nandini Persad
I like the separation. I can include it in V4 and see, it would be helpful to know if it’s more or less confusing that way. For the prompt before each list, can we say something like “Avoid doing the following” and “Suggested actions” or something a little better grammatically. We could also ju

Re: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 2:40 PM Morten Brørup wrote: > > > +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) > > Considering hugepages... > > Lcore variables may be allocated before DPDK's memory allocator > (rte_malloc()) is ready, so rte_malloc() cannot be used for lcore variables

Re: [RFC v3 0/3] Import Kernel uAPI header files

2024-09-12 Thread Ferruh Yigit
On 9/12/2024 1:08 PM, Maxime Coquelin wrote: > Hi Ferruh, > > On 9/12/24 10:30, Ferruh Yigit wrote: >> On 9/11/2024 8:32 PM, Maxime Coquelin wrote: >>> This series enables importing Linux Kernel uAPI headers >>> into the DPDK repository. It aims at solving alignment >>> issues between the build sy

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Jerin Jacob
On Thu, Sep 12, 2024 at 2:34 PM Mattias Rönnblom wrote: > > Add basic micro benchmark for lcore variables, in an attempt to assure > that the overhead isn't significantly greater than alternative > approaches, in scenarios where the benefits aren't expected to show up > (i.e., when plenty of cache

Re: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 11:39, Morten Brørup wrote: +struct lcore_state { + uint64_t a; + uint64_t b; + uint64_t sum; +}; + +static __rte_always_inline void +update(struct lcore_state *state) +{ + state->sum += state->a * state->b; +} + +static RTE_DEFINE_PER_LCORE(struct lcore_stat

Re: [PATCH 1/1] dts: add binding to different drivers to TG node

2024-09-12 Thread Patrick Robb
Looks good to me, and I don't understand it as triggering a second compile on the TG node. I wonder whether the docstring for set_up_build_target() makes it sound like it does though? Reviewed-by: Patrick Robb

Re: [PATCH v1 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-12 Thread Patrick Robb
This looks good, except for the fact that a method for sending a list of packets has been added since you submitted this patch (which does return the packet list, not that it matters for your application). So, this will need to be resubmitted with your patch reformatted for _adjust_addresses() to

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 13:23, Varghese, Vipin wrote: [Public] Snipped To to be clear; it's something like this I think of when I say "DOM-style" API. #ifndef RTE_HWTOPO_H #define RTE_HWTOPO_H struct rte_hwtopo_node; enum rte_hwtopo_node_type {   RTE_HWTOPO_NODE_TYPE_CPU_CORE,   RTE_HWTOPO_N

[DPDK/DTS Bug 1540] update pw_maintainers_cli.py to apply some series to next-dts

2024-09-12 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1540 Bug ID: 1540 Summary: update pw_maintainers_cli.py to apply some series to next-dts Product: DPDK Version: unspecified Hardware: All OS: All Status: UNC

Re: [RFC v3 0/3] Import Kernel uAPI header files

2024-09-12 Thread Maxime Coquelin
Hi Ferruh, On 9/12/24 10:30, Ferruh Yigit wrote: On 9/11/2024 8:32 PM, Maxime Coquelin wrote: This series enables importing Linux Kernel uAPI headers into the DPDK repository. It aims at solving alignment issues between the build system and the system applications linked ot DPDK libraries are r

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 13:17, Varghese, Vipin wrote: [AMD Official Use Only - AMD Internal Distribution Only] Thank you Mattias for the information, as shared by in the reply with >> Anatoly we want expose a new API `rte_get_next_lcore_ex` which >> intakes a extra argument `u32 flags`. T

RE: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Varghese, Vipin
[Public] Snipped > > > > > >Based on the discussions we agreed on sharing version-2 FRC for > >extending API as `rte_get_next_lcore_extnd` with extra argument as > >`flags`. > > > >As per my ideation, for the API ` rte_get_next_sibling_core`, the above > >API can easily with f

RE: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Varghese, Vipin
[Public] Snipped > > > To to be clear; it's something like this I think of when I say "DOM-style" > API. > > #ifndef RTE_HWTOPO_H > #define RTE_HWTOPO_H > > struct rte_hwtopo_node; > > enum rte_hwtopo_node_type { > RTE_HWTOPO_NODE_TYPE_CPU_CORE, > RTE_HWTOPO_NODE_TYPE_CACHE, > RT

RE: [PATCH v2 1/4] power: refactor core power management library

2024-09-12 Thread Tummala, Sivaprasad
[AMD Official Use Only - AMD Internal Distribution Only] Hi Huisong, Please find my response inline. > -Original Message- > From: lihuisong (C) > Sent: Tuesday, August 27, 2024 1:51 PM > To: Tummala, Sivaprasad > Cc: dev@dpdk.org; david.h...@intel.com; anatoly.bura...@intel.com; > radu

RE: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] > Thank you Mattias for the information, as shared by in the reply > with > >> Anatoly we want expose a new API `rte_get_next_lcore_ex` which > >> intakes a extra argument `u32 flags`. > The flags can be RTE_GET_LCORE_L1 (S

RE: [PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Morten Brørup
> +struct lcore_state { > + uint64_t a; > + uint64_t b; > + uint64_t sum; > +}; > + > +static __rte_always_inline void > +update(struct lcore_state *state) > +{ > + state->sum += state->a * state->b; > +} > + > +static RTE_DEFINE_PER_LCORE(struct lcore_state, tls_lcore_state); > + >

Re: [PATCH v2 05/19] net/xsc: add ioctl command interface

2024-09-12 Thread fengchengwen
On 2024/9/12 16:19, WanRenyong wrote: > On 2024/9/12 13:50, Stephen Hemminger wrote: >> On Thu, 12 Sep 2024 12:14:08 +0800 >> "WanRenyong" wrote: >> > +}; > + Does this device driver depend on some upstr >>> Yes, it depends on linux kernel driver of the device. >>> >>> Hello,

Re: [PATCH v2] service: extend service function call statistics

2024-09-12 Thread Van Haaren, Harry
> From: Mattias Rönnblom > Sent: Monday, September 9, 2024 8:11 PM > To: dev@dpdk.org > Cc: hof...@lysator.liu.se ; Van Haaren, Harry > ; Stefan Sundkvist > ; Mattias Rönnblom > > Subject: [PATCH v2] service: extend service function call statistics > > Add two new per-service counters. > > RT

Re: [RFC 0/2] introduce LLC aware functions

2024-09-12 Thread Bruce Richardson
On Thu, Sep 12, 2024 at 02:19:07AM +, Varghese, Vipin wrote: >[Public] > > > > > >> > > > > >> > > > > >> > > >>> > >> > > >>> > >> > > >>> Thank you Mattias for the comments and question, please let >me > >> > > >>> try to explain the same below >

RE: [PATCH v2 1/6] eal: add static per-lcore memory allocation facility

2024-09-12 Thread Morten Brørup
> +#define LCORE_BUFFER_SIZE (RTE_MAX_LCORE_VAR * RTE_MAX_LCORE) Considering hugepages... Lcore variables may be allocated before DPDK's memory allocator (rte_malloc()) is ready, so rte_malloc() cannot be used for lcore variables. And lcore variables are not usable (shared) for DPDK multi-proce

Re: [PATCH v2 1/2] app/testpmd: add support for setting device EEPROM

2024-09-12 Thread fengchengwen
On 2024/9/12 14:54, Chaoyong He wrote: > From: James Hershaw > > There is currently no means to test the .set_eeprom function callback of > a given PMD in drivers/net/. This patch adds functionality to allow a > user to set device eeprom from the testpmd cmdline. > > usage: > testpmd> set port

Re: [PATCH v2 2/6] eal: add lcore variable test suite

2024-09-12 Thread Mattias Rönnblom
On 2024-09-12 09:35, Jerin Jacob wrote: On Wed, Sep 11, 2024 at 11:08 PM Mattias Rönnblom wrote: Add test suite to exercise the API. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup -- RFC v5: * Adapt tests to reflect the removal of the GET() and SET() macros. RFC v4: * Check

[PATCH v3 0/7] Lcore variables

2024-09-12 Thread Mattias Rönnblom
This patch set introduces a new API for static per-lcore id data allocation. Please refer to the API documentation for both a rationale for this new API, and a comparison to the alternatives available. The adoption of this API would affect many different DPDK modules, but the author updated onl

[PATCH v3 2/7] eal: add lcore variable functional tests

2024-09-12 Thread Mattias Rönnblom
Add functional test suite to exercise the API. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup -- RFC v5: * Adapt tests to reflect the removal of the GET() and SET() macros. RFC v4: * Check all lcore id's values for all variables in the many variables test case. * Introduce tes

[PATCH v3 6/7] service: keep per-lcore state in lcore variable

2024-09-12 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup -- RFC v6: * Remove a now-redundant lcore variable value memset(). RFC v5: * Fix lcore value pointer bug introdu

[PATCH v3 5/7] power: keep per-lcore state in lcore variable

2024-09-12 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup -- RFC v3: * Replace for loop with FOREACH macro. --- lib/power/rte_power_pmd_mgmt.c | 34 ---

[PATCH v3 3/7] eal: add lcore variable performance test

2024-09-12 Thread Mattias Rönnblom
Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't significantly greater than alternative approaches, in scenarios where the benefits aren't expected to show up (i.e., when plenty of cache is available compared to the working set size of the per-lcore dat

  1   2   >