RE: DPDK community: RTE_FLOW support for P4-programmable devices

2023-08-31 Thread Ori Kam
> -Original Message- > From: Jerin Jacob > Sent: Friday, September 1, 2023 5:07 AM > > On Thu, Aug 31, 2023 at 4:02 PM Ori Kam wrote: > > > > Hi > > > > >> > > > >> 3. Everybody on the call agreed that the P4-programmable devices from > > > Intel, > > > >> AMD and others need to be fu

RE: [PATCH] net/ice: fix tm configuration cannot be clear

2023-08-31 Thread Zhang, Qi Z
> -Original Message- > From: Deng, KaiwenX > Sent: Tuesday, August 29, 2023 2:24 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Yang, Qiming ; Zhou, YidingX > ; Deng, KaiwenX ; > Zhang, Qi Z ; Xu, Ting > Subject: [PATCH] net/ice: fix tm configuration cannot be clear > > When the device

[PATCH v3 16/32] net/sssnic: support Rx queue start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 63 + drivers/net/sssnic/base/sssnic_api.h | 2 + drivers/net/sssnic/base/sssnic_cmd.h | 49 drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssn

[PATCH v3 05/32] net/sssnic: add event queue

2023-08-31 Thread wanry
From: Renyong Wan Event queue is intended for receiving event from hardware as well as mailbox response message. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 1 + drivers/net/sssnic/base/sssnic_eventq.c | 426 d

[PATCH v3 08/32] net/sssnic/base: add work queue

2023-08-31 Thread wanry
From: Renyong Wan Work queue is used to maintain hardware queue information by driver, it is usually used in control queue, rx queue and tx queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/base/meson.build|

[PATCH v3 32/32] net/sssnic: add VF dev support

2023-08-31 Thread wanry
From: Renyong Wan In comparison to PF, VF PMD does not support the following features: 1. link up and link down set 2. promiscuous enable and disable 3. MAC stats in extend xstats Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 42

[PATCH v3 31/32] net/sssnic: add generic flow ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'mask->hdr.src_addr' will always evaluate to 'true'. * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 12 + drivers/net/sssnic/base/sssnic_api.c| 264 ++ driv

[PATCH v3 28/32] net/sssnic: support dev firmware version get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 36 drivers/net/sssnic/base/sssnic_api.h | 9 +++ drivers/net/sssnic/base/sssnic_cmd.h | 8 +++

[PATCH v3 30/32] net/sssnic: support VLAN offload and filter

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 34 +++ drivers/net/sssnic/base/sssnic_api.h | 1 + drivers/net/sssnic/base/sssnic_cmd.h | 9 +++ drivers/net/sssnic/sssnic_

[PATCH v3 29/32] net/sssnic: add dev flow control ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 68 drivers/net/sssnic/base/sssnic_api.h | 4 ++ drivers/net/sssnic/base/sssnic_cmd.h | 11 + driver

[PATCH v3 27/32] net/sssnic: support dev queue info get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c| 2 ++ drivers/net/sssnic/sssnic_ethdev_rx.c | 13 + drivers/net/sssnic/sssnic_ethdev_rx.h | 2 ++ drivers/net/sssnic/sssnic_ethdev_tx.c | 11 +++ drivers/ne

[PATCH v3 26/32] net/sssnic: support dev MTU set

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index a00e96bebe..b086e91d2d 100644 --- a/drivers/n

[PATCH v3 25/32] net/sssnic: add RSS support

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini| 4 + drivers/net/sssnic/base/sssnic_api.c | 338 ++ drivers/net/sssnic/base/sssnic_api.h | 36 +++ dri

[PATCH v3 24/32] net/sssnic: support Tx packet burst

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 5 + drivers/net/sssnic/sssnic_ethdev.c| 1 + drivers/net/sssnic/sssnic_ethdev_tx.c | 404 ++ d

[PATCH v3 23/32] net/sssnic: support Rx packet burst

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_rx.c | 167 ++ d

[PATCH v3 22/32] net/sssnic: add basic and extended stats ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 3 + drivers/net/sssnic/base/sssnic_api.c | 154 + drivers/net/sssnic/base/sssnic_api.h | 116 +++ driver

[PATCH v3 21/32] net/sssnic: add allmulticast and promiscuous ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c | 72 + 2 files changed, 74 insertions(+) diff --git a/doc/guides/nics/features/sssnic.ini b/doc/guides/nics

[PATCH v3 20/32] net/sssnic: support dev close and reset

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index 8201a1e3c4..b59c4fd3

[PATCH v3 19/32] net/sssnic: support dev start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 508 ++ drivers/net/sssnic/base/sssnic_api.h | 257 + drivers/net/sssnic/base/sssnic_cmd.h | 100 + drivers/net/sssnic/base/sssnic_misc.

[PATCH v3 18/32] net/sssnic: add Rx interrupt support

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_hw.c | 14 +++ drivers/net/sssnic/base/sssnic_hw.h | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_et

[PATCH v3 17/32] net/sssnic: support Tx queue start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_tx.c | 155 ++ drivers/net/sssnic/sssnic_ethdev_tx.h | 4 + 4 fil

[PATCH v3 14/32] net/sssnic: support Rx queue setup and release

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 2 + drivers/net/sssnic/sssnic_eth

[PATCH v3 15/32] net/sssnic: support Tx queue setup and release

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 1 + drivers/net/sssnic/sssnic_eth

[PATCH v3 12/32] net/sssnic: support dev link status

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c| 127 drivers/net/sssnic/base/sssnic_api.h| 14 +++

[PATCH v3 13/32] net/sssnic: support link status event

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'EINVAL' undeclared. --- doc/guides/nics/features/sssnic.ini| 1 + drivers/net/sssnic/base/meson.build| 1 + drivers/net/sssnic/base/sssnic_exception.c | 116 + drive

[PATCH v3 11/32] net/sssnic: add dev MAC ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 174 + drivers/net/sssnic/base/sssnic_api.h | 4 + drivers/net/sssnic/base/sssnic_cmd.h | 25 +++ drivers/net/sssn

[PATCH v3 09/32] net/sssnic/base: add control queue

2023-08-31 Thread wanry
From: Renyong Wan Control queue is used for communication between driver and datapath code of firmware. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed variable 'cmd_len' is uninitialized when used. --- drivers/net/sssnic/base/meson.build| 2 + drivers/net/sssnic/b

[PATCH v3 10/32] net/sssnic: add dev configure and infos get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 33 drivers/net/sssnic/base/sssnic_api.h | 8 +++ drivers/net/sssnic/base/sssnic_cmd.h | 14 + drivers/net/sssnic/base/sssnic_hw.c | 33 +++- drivers/ne

[PATCH v3 06/32] net/sssnic/base: add message definition and utility

2023-08-31 Thread wanry
From: Renyong Wan sssnic message is used to encapsulate sssnic command for transmission between driver and firmware. sssnic message is sent by driver via mail box and is received by driver via event queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from inc

[PATCH v3 07/32] net/sssnic/base: add mailbox support

2023-08-31 Thread wanry
From: Renyong Wan Mailbox is a message channel used to communicate between PF and VF as well as driver and hardware functions. Mailbox messages are received by driver through event queue, and sent by driver through registers of mailbox. There are two transfer modes for sending mailbox message, on

[PATCH v3 04/32] net/sssnic: initialize hardware base

2023-08-31 Thread wanry
From: Renyong Wan Initializing hardware base make hardware ready to be access. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 13 ++ drivers/net/sssnic/base/sssnic_hw.c | 207 +++ drivers/net/sssnic/base/sssnic_hw.h

[PATCH v3 02/32] net/sssnic: add log type and log macros

2023-08-31 Thread wanry
From: Renyong Wan Adding log macros to print runtime messages and trace functions. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 13 drivers/net/sssnic/sssnic_log.h| 51 ++ 2 files changed, 64 insertions

[PATCH v3 01/32] net/sssnic: add build and doc infrastructure

2023-08-31 Thread wanry
From: Renyong Wan Adding minimum PMD code, doc and build infrastructure for sssnic. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'Title underline too short' in doc/guides/nics/sssnic.rst. * Removed error.h from including files. --- .mailmap

[PATCH v3 03/32] net/sssnic: support probe and remove

2023-08-31 Thread wanry
From: Renyong Wan Register device ID for 3SNIC ethernet adapter to support PCI ethdev probe and remove. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_hw.h | 11 + drivers/net/sssnic/sssnic_ethdev.c | 37 + 2 files

RE: 22.11.3 patches review and test

2023-08-31 Thread Zeng, ZhichaoX
> -Original Message- > From: Kevin Traynor > Sent: Thursday, August 31, 2023 8:18 PM > To: Xu, HailinX ; Xueming Li ; > sta...@dpdk.org; Wu, Jingjing ; Xing, Beilei > ; Xu, Ke1 ; Zeng, ZhichaoX > ; Zhang, Qi Z > Cc: xuemi...@nvdia.com; dev@dpdk.org; Stokes, Ian ; > Mcnamara, John ; Luca B

Re: [EXT] Re: [PATCH v5 1/1] devtools: add tracepoint check in checkpatch

2023-08-31 Thread Jerin Jacob
On Thu, Aug 31, 2023 at 12:08 AM Morten Brørup wrote: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Wednesday, 30 August 2023 18.24 > > > > 21/08/2023 16:46, Morten Brørup: > > > > From: Ankur Dwivedi [mailto:adwiv...@marvell.com] > > > > Sent: Monday, 21 August 2023 15.54 >

[PATCH v6 8/8] net/rnp handle device interrupts

2023-08-31 Thread Wenbo Cao
Handle device lsc interrupt event Signed-off-by: Wenbo Cao --- drivers/net/rnp/base/rnp_hw.h | 5 + drivers/net/rnp/base/rnp_mac_regs.h | 279 drivers/net/rnp/rnp.h | 8 + drivers/net/rnp/rnp_ethdev.c| 17 ++ drivers/net/rnp/rnp_mbx.h

[PATCH v6 7/8] net/rnp add devargs runtime parsing functions

2023-08-31 Thread Wenbo Cao
add various runtime devargs command line options supported by this driver. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp.h| 22 + drivers/net/rnp/rnp_ethdev.c | 166 +++ drivers/net/rnp/rnp_mbx_fw.c | 164 ++ drivers

[PATCH v6 5/8] net/rnp add reset code for Chip Init process

2023-08-31 Thread Wenbo Cao
we must get the shape info of nic from Firmware for reset. so the related codes is first get firmware info and then reset the chip Signed-off-by: Wenbo Cao --- drivers/net/rnp/base/rnp_hw.h | 56 +++- drivers/net/rnp/meson.build | 3 + drivers/net/rnp/rnp.h | 27 ++ dri

[PATCH v6 6/8] net/rnp add port info resource init

2023-08-31 Thread Wenbo Cao
Add Api For FW Mac Info, Port Resoucre info init Code For Different Shape Of Nic Signed-off-by: Wenbo Cao --- drivers/net/rnp/base/rnp_api.c | 48 +++ drivers/net/rnp/base/rnp_api.h | 10 ++ drivers/net/rnp/base/rnp_hw.h | 18 +++ drivers/net/rnp/meson.build| 1 + drivers/net/rnp/r

[PATCH v6 4/8] net/rnp: add mbx basic api feature

2023-08-31 Thread Wenbo Cao
mbx base code is for communicate with the firmware Signed-off-by: Wenbo Cao Suggested-by: Stephen Hemminger --- drivers/net/rnp/base/rnp_api.c | 23 ++ drivers/net/rnp/base/rnp_api.h | 7 + drivers/net/rnp/base/rnp_cfg.h | 7 + drivers/net/rnp/base/rnp_dma_regs.h | 73

[PATCH v6 3/8] net/rnp: add device init and uninit

2023-08-31 Thread Wenbo Cao
Add basic init and uninit function Signed-off-by: Wenbo Cao --- drivers/net/rnp/base/rnp_hw.h | 19 drivers/net/rnp/meson.build | 1 + drivers/net/rnp/rnp.h | 25 + drivers/net/rnp/rnp_ethdev.c | 196 +- drivers/net/rnp/rnp_logs.h| 34

[PATCH v6 2/8] net/rnp: add ethdev probe and remove

2023-08-31 Thread Wenbo Cao
Add basic PCIe ethdev probe and remove. Signed-off-by: Wenbo Cao --- drivers/net/rnp/rnp.h| 13 ++ drivers/net/rnp/rnp_ethdev.c | 83 2 files changed, 96 insertions(+) create mode 100644 drivers/net/rnp/rnp.h diff --git a/drivers/net/rnp/rnp.h b

[PATCH v6 1/8] net/rnp: add skeleton

2023-08-31 Thread Wenbo Cao
Add Basic PMD library and doc build infrastructure Update maintainers file to claim responsibility. Signed-off-by: Wenbo Cao --- MAINTAINERS | 6 + doc/guides/nics/features/rnp.ini | 8 +++ doc/guides/nics/index.rst| 1 + doc/guides/nics/rnp.rst |

[PATCH v6 0/8] [v6]drivers/net Add Support mucse N10 Pmd Driver

2023-08-31 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: DPDK community: RTE_FLOW support for P4-programmable devices

2023-08-31 Thread Jerin Jacob
On Thu, Aug 31, 2023 at 4:02 PM Ori Kam wrote: > > Hi > > >> > > >> 3. Everybody on the call agreed that the P4-programmable devices from > > Intel, > > >> AMD and others need to be fully supported by DPDK and that there are > > some > > >> gaps in RTE_FLOW to be fixed for supporting these device

Re: [PATCH 3/3] devtools: enable testing ppc builds on ubuntu

2023-08-31 Thread Tyler Retzlaff
On Thu, Aug 31, 2023 at 01:10:58PM +0100, Bruce Richardson wrote: > When running PPC builds with the packaged Ubuntu compiler, a different > cross-file needs to be used. Adjust the test-meson-builds script to take > account of this, so that developers can easier pick up on errors. > > Signed-off-b

Re: [PATCH v11 2/4] net/i40e: implement mbufs recycle mode

2023-08-31 Thread Konstantin Ananyev
31/08/2023 18:24, Konstantin Ananyev пишет: Define specific function implementation for i40e driver. Currently, mbufs recycle mode can support 128bit vector path and avx2 path. And can be enabled both in fast free and no fast free mode. Suggested-by: Honnappa Nagarahalli Signed-off-by: Feif

[RFC v3] net/sfc: support packet replay in transfer flows

2023-08-31 Thread Ivan Malov
Packet replay enables users to leverage multiple counters in one flow and allows to request delivery to multiple ports. A given flow rule may use either one inline count action and multiple indirect counters or just multiple indirect counters. The inline count action (if any) must come before the

Re: [PATCH 00/32] Remove use and definition of RTE_STD_C11 macro

2023-08-31 Thread Tyler Retzlaff
On Wed, Aug 30, 2023 at 07:34:03PM +0200, Thomas Monjalon wrote: > 12/08/2023 00:22, Tyler Retzlaff: > > We now document C11 conformant compiler as a minimum, it's not necessary > > to mark C11 feature use with __extension__ to avoid warnings. > > Did you check the occurences of __extension__? i'

Re: [PATCH v2] eal: provide per lcore macros for MSVC

2023-08-31 Thread Tyler Retzlaff
On Thu, Aug 31, 2023 at 01:57:36PM +0200, Thomas Monjalon wrote: > 11/07/2023 17:52, Tyler Retzlaff: > > +#ifdef RTE_TOOLCHAIN_MSVC > > /** > > * Macro to define a per lcore variable "var" of type "type", don't > > * use keywords like "static" or "volatile" in type, just prefix the > > * who

Re: [PATCH v11 01/16] eal: use rdtsc intrinsic

2023-08-31 Thread Tyler Retzlaff
On Wed, Aug 30, 2023 at 04:29:07PM +, Ali Alnubani wrote: > > -Original Message- > > From: Ali Alnubani > > Sent: Wednesday, August 30, 2023 6:49 PM > > To: 'Tyler Retzlaff' > > Cc: 'David Marchand' ; 'dev@dpdk.org' > > ; 'Bruce Richardson' ; > > 'Konstantin Ananyev' ; 'Ciara Power' >

[PATCH v2 3/3] test/event: add event link profile test

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index 29354a24c9..b3

[PATCH v2 2/3] event/cnxk: implement event link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v2 1/3] eventdev: introduce link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments similar

[PATCH v2 0/3] Introduce event link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments simila

RE: [PATCH v11 2/4] net/i40e: implement mbufs recycle mode

2023-08-31 Thread Konstantin Ananyev
> > > > Define specific function implementation for i40e driver. > > Currently, mbufs recycle mode can support 128bit vector path and avx2 path. > > And can be enabled both in fast free and no fast free mode. > > > > Suggested-by: Honnappa Nagarahalli > > Signed-off-by: Feifei Wang > > Reviewe

Re: [PATCH 1/2] event/sw: add selftest for ordered history list

2023-08-31 Thread Bruce Richardson
On Thu, Aug 31, 2023 at 05:47:35PM +0100, Harry van Haaren wrote: > This commit adds a unit test for an issue identified > where ordered history-list entries are not correctly > cleared when the returned event is of op RELEASE type. > > The result of the history-list bug is that a future event > w

[PATCH 1/2] event/sw: add selftest for ordered history list

2023-08-31 Thread Harry van Haaren
This commit adds a unit test for an issue identified where ordered history-list entries are not correctly cleared when the returned event is of op RELEASE type. The result of the history-list bug is that a future event which re-uses that history-list slot, but has an op type of FORWARD will incorr

[PATCH 2/2] event/sw: fix ordering corruption with op release

2023-08-31 Thread Harry van Haaren
This commit changes the logic in the scheduler to always reset reorder-buffer entries in the QE_FLAG_COMPLETE path, and not just the QE_FLAG_VALID path. A release event is a COMPLETE but not VALID (no new event). As a result, release events previously left the history-list in an inconsistent state

Re: [PATCH v3 0/3] Release ethdev shared memory on port cleanup

2023-08-31 Thread Thomas Monjalon
21/08/2023 10:58, David Marchand: > This series was triggered after investigating why the > eal_flags_file_prefix_autotest unit test was failing in the case of > statically built binaries [1]). > > For now, I went with a simple (naive) approach and put all accesses to the > shared data under a sin

RE: [PATCH v4] doc: build manpages as well as html output

2023-08-31 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 31 August 2023 12.12 > > 31/08/2023 11:49, Bruce Richardson: > > Doxygen can produce manpage output as well as html output for the DPDK > > APIs. However, we need to do this as a separate task as the manpage > > output needs to

Re: [PATCH 0/2] Release ethdev shared memory on port cleanup

2023-08-31 Thread Thomas Monjalon
18/08/2023 12:18, Morten Brørup: > > From: David Marchand [mailto:david.march...@redhat.com] > > Sent: Friday, 18 August 2023 11.13 > > > > This series was triggered after investigating why the > > eal_flags_file_prefix_autotest unit test was failing in the case of > > statically built binaries [1

Re: [PATCH v2] vhost: add IRQ suppression

2023-08-31 Thread Maxime Coquelin
On 8/31/23 16:44, Maxime Coquelin wrote: Guest notifications offloading, which has been introduced in v23.07, aims at offloading syscalls out of the datapath. This patch optimizes the offloading by not offloading the guest notification for a given virtqueue if one is already being offloaded b

[PATCH v2] vhost: add IRQ suppression

2023-08-31 Thread Maxime Coquelin
Guest notifications offloading, which has been introduced in v23.07, aims at offloading syscalls out of the datapath. This patch optimizes the offloading by not offloading the guest notification for a given virtqueue if one is already being offloaded by the application. With a single VDUSE device

Re: [PATCH v2] set namespace prefix to threads

2023-08-31 Thread Thomas Monjalon
10/07/2023 20:42, Tyler Retzlaff: > On Mon, Jul 03, 2023 at 02:14:06PM +0200, Thomas Monjalon wrote: > > When looking at threads in a system, it can be confusing > > to find some unknown threads without a clue it is started by DPDK. > > > > Let's start all thread names with "dpdk-" > > plus the dr

[PATCH] vhost: add IRQ suppression

2023-08-31 Thread Maxime Coquelin
Guest notifications offloading, which has been introduced in v23.07, aims at offloading syscalls out of the datapath. This patch optimizes the offloading by not offloading the guest notification for a given virtqueue if one is already being offloaded by the application. With a single VDUSE device

Re: [PATCH v3] app/test: add support for skipping tests

2023-08-31 Thread Bruce Richardson
On Thu, Aug 31, 2023 at 11:18:06AM +0100, Bruce Richardson wrote: > When called from automated tools, like meson test, it is often useful to > skip tests in a test suite, without having to alter the test build. To > do so, we add support for DPDK_TEST_SKIP environment variable, where one > can prov

RE: [PATCH 2/3] crypto/ipsec_mb: fix build failures due to incompatible lib

2023-08-31 Thread Power, Ciara
> -Original Message- > From: Richardson, Bruce > Sent: Thursday, August 31, 2023 1:11 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; sta...@dpdk.org; Ji, Kai > ; De Lara Guarch, Pablo ; > Akhil Goyal ; Power, Ciara ; > Ray Kinsella ; Fan Zhang > Subject: [PATCH 2/3] crypto/ipsec_mb: f

Re: DPDK community: RTE_FLOW support for P4-programmable devices

2023-08-31 Thread Stephen Hemminger
It also introduces lots of new test conditions. For example, can a P4 flow be deleted, supersed, or read by a flow created by rte_flow. On Thu, Aug 31, 2023, 12:32 PM Ori Kam wrote: > Hi > > > -Original Message- > > From: Ferruh Yigit > > Sent: Tuesday, August 29, 2023 1:18 PM > > devic

[PATCH v2 4/4] net/iavf: add support for runtime queue reconfiguration

2023-08-31 Thread Bruce Richardson
Unlike the i40e driver, the iavf driver does not advertise support for runtime reconfiguration, meaning that application using the same hardware may get different behaviour when using a PF vs a VF. On testing with a 40G NIC, the only blocker to reconfiguring an RX queue on the fly is the fact that

[PATCH v2 3/4] net/iavf: fix restart of Rx queue on reconfigure

2023-08-31 Thread Bruce Richardson
After reconfiguring an RX queue the mbuf_initializer value was not being correctly set. Fix this by calling the appropriate function if vector processing is enabled. This mirrors the behaviour by the i40e driver. Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") Cc: jingjing...@intel.com Cc: sta..

[PATCH v2 2/4] net/iavf: fix buffer leak on Tx queue stop

2023-08-31 Thread Bruce Richardson
When a queue is stopped all buffers are meant to released from it, and then a new set of buffers reallocated on start. For the iavf code when using vector Tx, some buffers were left in the ring, and so those buffers were leaked. The buffers were missed as the release code only handled one side of a

[PATCH v2 1/4] net/i40e: fix buffer leak on Rx reconfiguration

2023-08-31 Thread Bruce Richardson
When reconfiguring a single queue on a device, the mbuf initializer value was not getting set, and remained at zero. This lead to mbuf leaks as the refcount was incorrect (0), so on free it wrapped around to UINT16_MAX. When setting up the mbuf initializer, also ensure that the queue is explicitly

[PATCH v2 0/4] Fix i40e/iavf queue reconfig and restarting

2023-08-31 Thread Bruce Richardson
Fixes for a number of issues found when looking at stopping and restarting individual queues, sometimes with a reconfig in the middle. For i40e, it already claims to support runtime reconfig, while for iavf this support is not claimed, but appears to work ok once the bugs in the cleanup code are fi

[PATCH v1] net/axgbe: use CPUID to identify cpu

2023-08-31 Thread Selwin Sebastian
Using root complex to identify cpu will not work for vm passthrough. CPUID is used to get family and modelid to identify cpu Fixes: b0db927b5eba ("net/axgbe: use PCI root complex device to distinguish device") Cc: sta...@dpdk.org Signed-off-by: Selwin Sebastian --- drivers/net/axgbe/axgbe_ethd

Re: 22.11.3 patches review and test

2023-08-31 Thread Kevin Traynor
On 30/08/2023 17:25, Kevin Traynor wrote: On 29/08/2023 09:22, Xu, HailinX wrote: -Original Message- From: Xueming Li Sent: Thursday, August 17, 2023 2:14 PM To: sta...@dpdk.org Cc: xuemi...@nvdia.com; dev@dpdk.org; Abhishek Marathe ; Ali Alnubani ; Walker, Benjamin ; David Christensen

[PATCH 3/3] devtools: enable testing ppc builds on ubuntu

2023-08-31 Thread Bruce Richardson
When running PPC builds with the packaged Ubuntu compiler, a different cross-file needs to be used. Adjust the test-meson-builds script to take account of this, so that developers can easier pick up on errors. Signed-off-by: Bruce Richardson --- devtools/test-meson-builds.sh | 3 +++ 1 file chan

[PATCH 2/3] crypto/ipsec_mb: fix build failures due to incompatible lib

2023-08-31 Thread Bruce Richardson
When cross-compiling for PowerPC on Ubuntu, the x86 IPSec_MB library was getting found by the build system for use in the PPC build. This led to failures at compile time due to the library not being linkable. We can avoid these failures by checking the discovered library for compatibility at confi

[PATCH 1/3] vhost: fix build for powerpc

2023-08-31 Thread Bruce Richardson
When building on Ubuntu using the packaged powerpc compiler[1], a warning is issued about the print format of the __u64 values. ../../lib/vhost/vduse.c: In function ‘vduse_vring_setup’: ../../lib/vhost/vhost.h:676:17: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argu

[PATCH 0/3] enable PPC in test-meson-builds on ubuntu

2023-08-31 Thread Bruce Richardson
To help developers catch errors as soon as possible, we want to ensure that as wide a variety of builds are done by test-meson-builds as possible. Unfortunately, for those using Ubuntu, the shipped version of GCC compiler for PowerPC on that system is not correctly detected by the script. We fix th

Re: [PATCH v2] eal: provide per lcore macros for MSVC

2023-08-31 Thread Thomas Monjalon
11/07/2023 17:52, Tyler Retzlaff: > +#ifdef RTE_TOOLCHAIN_MSVC > /** > * Macro to define a per lcore variable "var" of type "type", don't > * use keywords like "static" or "volatile" in type, just prefix the > * whole macro. > */ > #define RTE_DEFINE_PER_LCORE(type, name)

Re: [PATCH] doc: add NVIDIA BlueField-3 reference link

2023-08-31 Thread Thomas Monjalon
15/08/2023 11:54, Thomas Monjalon: > A link to the detailed guide of BlueField-3 hardware on NVIDIA website > is added to the BlueField platform guide. > > Signed-off-by: Thomas Monjalon Applied

Re: [PATCH v2 1/2] ethdev: add new symmetric hash function

2023-08-31 Thread lihuisong (C)
在 2023/8/31 14:25, Xueming(Steven) Li 写道: -Original Message- From: lihuisong (C) Sent: 8/31/2023 9:24 To: Xueming(Steven) Li ; Ori Kam Cc: dev@dpdk.org; fengcheng...@huawei.com; Ivan Malov Subject: Re: [PATCH v2 1/2] ethdev: add new symmetric hash function 在 2023/8/30 21:09, Xuem

[RFC PATCH] move memset out of hold lock when rte_free

2023-08-31 Thread Fengnan Chang
In rte_free, the most cost time part of the whole process is memset, we can do memset without hold heap->lock, the benefit is reduce lock contention when multi thread try alloc or free. In my test with 40 cores machine, I add some code to account whole function cost in test_align_overlap_per_lcore

Re: [PATCH v2 1/5] ethdev: support setting and querying RSS algorithm

2023-08-31 Thread Jie Hai
On 2023/8/31 8:10, Ajit Khaparde wrote: On Wed, Aug 30, 2023 at 4:46 AM Thomas Monjalon wrote: Hello, Thanks for bringing a new capability. 26/08/2023 09:46, Jie Hai: Currently, rte_eth_rss_conf supports configuring and querying rss hash functions, rss key and it's length, but not rss hash

RE: DPDK community: RTE_FLOW support for P4-programmable devices

2023-08-31 Thread Ori Kam
Hi > -Original Message- > From: Ferruh Yigit > Sent: Tuesday, August 29, 2023 1:18 PM > devices > > On 8/29/2023 8:38 AM, Jerin Jacob wrote: > > On Mon, Aug 28, 2023 at 9:43 PM Dumitrescu, Cristian > > wrote: > >> > We just set up a community call for next week to discuss in more d

RE: [PATCH v3] mbuf: add ESP packet type

2023-08-31 Thread Ori Kam
> -Original Message- > From: Alexander Kozyrev > Sent: Monday, August 28, 2023 9:23 PM > > Support the IP Encapsulating Security Payload (ESP) in transport mode. > > Signed-off-by: Alexander Kozyrev > Acked-by: Morten Brørup > --- > lib/mbuf/rte_mbuf_ptype.h | 36 +++

[PATCH v3] app/test: add support for skipping tests

2023-08-31 Thread Bruce Richardson
When called from automated tools, like meson test, it is often useful to skip tests in a test suite, without having to alter the test build. To do so, we add support for DPDK_TEST_SKIP environment variable, where one can provide a comma-separated list of tests. When the test binary is called to run

Re: [PATCH v4] doc: build manpages as well as html output

2023-08-31 Thread Thomas Monjalon
31/08/2023 11:49, Bruce Richardson: > Doxygen can produce manpage output as well as html output for the DPDK > APIs. However, we need to do this as a separate task as the manpage > output needs to be placed in a different location post-install to the > html output (/usr/local/share/man vs /usr/loca

[PATCH v2] app/test: add support for skipping tests

2023-08-31 Thread Bruce Richardson
When called from automated tools, like meson test, it is often useful to skip tests in a test suite, without having to alter the test build. To do so, we add support for DPDK_TEST_SKIP environment variable, where one can provide a comma-separated list of tests. When the test binary is called to run

[RFC PATCH v4 4/4] dts: format docstrigs to google format

2023-08-31 Thread Juraj Linkeš
WIP: only one module is reformatted to serve as a demonstration. The google format is documented here [0]. [0]: https://google.github.io/styleguide/pyguide.html Signed-off-by: Juraj Linkeš --- dts/framework/testbed_model/node.py | 171 +++- 1 file changed, 118 insertion

[RFC PATCH v4 3/4] dts: add doc generation

2023-08-31 Thread Juraj Linkeš
The tool used to generate developer docs is sphinx, which is already used in DPDK. The configuration is kept the same to preserve the style. Sphinx generates the documentation from Python docstrings. The docstring format most suitable for DTS seems to be the Google format [0] which requires the sp

[RFC PATCH v4 2/4] dts: add doc generation dependencies

2023-08-31 Thread Juraj Linkeš
Sphinx imports every Python module when generating documentation from docstrings, meaning all dts dependencies, including Python version, must be satisfied. By adding Sphinx to dts dependencies we make sure that the proper Python version and dependencies are used when Sphinx is executed. Signed-of

[RFC PATCH v4 1/4] dts: code adjustments for sphinx

2023-08-31 Thread Juraj Linkeš
sphinx-build only imports the Python modules when building the documentation; it doesn't run DTS. This requires changes that make the code importable without running it. This means: * properly guarding argument parsing in the if __name__ == '__main__' block. * the logger used by DTS runner underw

[RFC PATCH v4 0/4] dts: add dts api docs

2023-08-31 Thread Juraj Linkeš
Augment the meson build system with dts api generation. The api docs are generated from Python docstrings in DTS using Sphinx. The format of choice is the Google format [0]. The guides html sphinx configuration is used to preserve the same style, except the sidebar is configured to allow unlimited

[PATCH v2 31/32] net/sssnic: add generic flow ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'mask->hdr.src_addr' will always evaluate to 'true'. * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 12 + drivers/net/sssnic/base/sssnic_api.c| 264 ++ driv

[PATCH v2 32/32] net/sssnic: add VF dev support

2023-08-31 Thread wanry
From: Renyong Wan In comparison to PF, VF PMD does not support the following features: 1. link up and link down set 2. promiscuous enable and disable 3. MAC stats in extend xstats Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 42

[PATCH v2 30/32] net/sssnic: support VLAN offload and filter

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 34 +++ drivers/net/sssnic/base/sssnic_api.h | 1 + drivers/net/sssnic/base/sssnic_cmd.h | 9 +++ drivers/net/sssnic/sssnic_

[PATCH v2 25/32] net/sssnic: add RSS support

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini| 4 + drivers/net/sssnic/base/sssnic_api.c | 338 ++ drivers/net/sssnic/base/sssnic_api.h | 36 +++ dri

  1   2   >