[PATCH 18/21] ethdev: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/ethdev/ethdev_driver.h | 16 lib/ethdev/ethdev_private.c | 6 +++--- lib/ethdev/rte_ethdev.c | 24 --

[PATCH 11/21] rcu: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/rcu/rte_rcu_qsbr.c | 48 +-- lib/rcu/rte_rcu_qsbr.h | 68 +- 2 fil

[PATCH 12/21] pdump: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/pdump/rte_pdump.c | 14 +++--- lib/pdump/rte_pdump.h | 8 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/p

[PATCH 17/21] distributor: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/distributor/distributor_private.h | 4 +-- lib/distributor/rte_distributor.c | 54 +-- 2 files changed, 29 in

[PATCH 13/21] stack: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/stack/rte_stack.h| 2 +- lib/stack/rte_stack_lf_c11.h | 24 lib/stack/rte_stack_lf_generic.h | 18 ++

[PATCH 19/21] hash: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/hash/rte_cuckoo_hash.c | 116 ++--- lib/hash/rte_cuckoo_hash.h | 6 +-- 2 files changed, 61 insertions(+

[PATCH 14/21] telemetry: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/telemetry/telemetry.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/telemetry/telemetry.c b/lib/telem

[PATCH 20/21] timer: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- lib/timer/rte_timer.c | 50 +- lib/timer/rte_timer.h | 6 +++--- 2 files changed, 28 insertions(+), 2

[PATCH 21/21] ring: use rte optional stdatomic API

2023-10-16 Thread Tyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff --- drivers/net/mlx5/mlx5_hws_cnt.h | 2 +- lib/ring/rte_ring_c11_pvt.h | 33 + lib/ring/rte_ring_core.h

Re: [PATCH v1 2/6] event/sw: support power monitor

2023-10-16 Thread Tyler Retzlaff
On Mon, Oct 16, 2023 at 01:57:11PM -0700, Sivaprasad Tummala wrote: > Currently sw eventdev pmd does not support ``rte_power_monitor`` api. > This patch adds support by adding monitor callback that is called > whenever we enter sleep state and need to check if it is time to > wake up. > > Signed-o

Re: [PATCH v1 3/6] eventdev: support optional dequeue callbacks

2023-10-16 Thread Tyler Retzlaff
On Mon, Oct 16, 2023 at 01:57:12PM -0700, Sivaprasad Tummala wrote: > Add optional support for inline event processing within pmd dequeue > call. For a dequeue callback, events dequeued from the event port > were passed them to a callback function if configured, to allow > additional processing. e.

Re: [PATCH v1 5/6] power: add eventdev support for power management

2023-10-16 Thread Tyler Retzlaff
On Mon, Oct 16, 2023 at 01:57:14PM -0700, Sivaprasad Tummala wrote: > Add eventdev support to enable power saving when no events > are arriving. It is based on counting the number of empty > polls and, when the number reaches a certain threshold, entering > an architecture-defined optimized power s

[PATCH 0/3] net/mlx5: add port representor destination to mirror

2023-10-16 Thread Suanming Mou
In order to clone the traffic from FDB to NIC TIR, user can set port representor action as mirror clone destination. In that case cloned traffic will be moved to E-Switch manager root table, and goes to software TIR. This series adds the port representor support to mirror action. This series depen

[PATCH 1/3] net/mlx5: add port representor action

2023-10-16 Thread Suanming Mou
The packets handled by port representor action will be steered to E-Switch manager and received by software. This commit adds port representor action. Signed-off-by: Suanming Mou --- doc/guides/nics/mlx5.rst| 6 drivers/net/mlx5/mlx5.h | 2 ++ drivers/net/mlx5/mlx5_flow.h

[PATCH 2/3] net/mlx5: add port representor destination to mirror

2023-10-16 Thread Suanming Mou
In order to clone the traffic from FDB to NIC TIR, user can set port representor action as mirror clone destination. In that case cloned traffic will be moved to E-Switch manager root table, and goes to software TIR. This commit adds the port representor support to mirror action. Signed-off-by: S

[PATCH 3/3] app/testpmd: add port representor as sample destination

2023-10-16 Thread Suanming Mou
This commit adds the missing port representor support as sample destination. Signed-off-by: Suanming Mou --- app/test-pmd/cmdline_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 6c8571154e..0d521159e9 100644 --- a/app/tes

[PATCH v4] net/iavf: support no data path polling mode

2023-10-16 Thread Mingjin Ye
Currently, during a PF to VF reset due to an action such as changing trust settings on a VF, the DPDK application running with iavf PMD loses connectivity, and the only solution is to reset the DPDK application. Instead of forcing a reset of the DPDK application to restore connectivity, the iavf P

[PATCH v4] net/iavf: support no data path polling mode

2023-10-16 Thread Mingjin Ye
Currently, during a PF to VF reset due to an action such as changing trust settings on a VF, the DPDK application running with iavf PMD loses connectivity, and the only solution is to reset the DPDK application. Instead of forcing a reset of the DPDK application to restore connectivity, the iavf P

[PATCH] net/nfp: fix coredump problem when testpmd exit

2023-10-16 Thread Chaoyong He
The ".dev_close" should not call rte_eth_dev_release_port() API directly, the rte_eth_dev_close() API will do it. Fixes: 831c44ab7869 ("net/nfp: add flower PF related routines") Cc: chaoyong...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zh

[PATCH] net/cpfl: fix memory leak

2023-10-16 Thread beilei . xing
From: Beilei Xing Fix resource leak reported in coverity scan. Coverity issue: 403265 Fixes: 2d823ecd671c ("net/cpfl: support device initialization") Fixes: 989465ac51ea ("net/cpfl: support probe again") Cc: sta...@dpdk.org Signed-off-by: Beilei Xing --- drivers/net/cpfl/cpfl_ethdev.c | 5 +++

RE: [PATCH v1 5/6] power: add eventdev support for power management

2023-10-16 Thread Tummala, Sivaprasad
[AMD Official Use Only - General] > -Original Message- > From: Tyler Retzlaff > Sent: Tuesday, October 17, 2023 5:21 AM > To: Tummala, Sivaprasad > Cc: jerinjac...@gmail.com; harry.van.haa...@intel.com; > anatoly.bura...@intel.com; dev@dpdk.org; Yigit, Ferruh ; > david.h...@intel.com > S

Re: [PATCH v1 5/6] power: add eventdev support for power management

2023-10-16 Thread Jerin Jacob
On Tue, Oct 17, 2023 at 2:27 AM Sivaprasad Tummala wrote: > > Add eventdev support to enable power saving when no events > are arriving. It is based on counting the number of empty > polls and, when the number reaches a certain threshold, entering > an architecture-defined optimized power state th

[PATCH v2] doc: update feature list for idpf and cpfl

2023-10-16 Thread beilei . xing
From: Beilei Xing Add all supported features in idpf.ini and cpfl.ini. Signed-off-by: Beilei Xing --- V2 changes: - Add all supported features, not just RSS. doc/guides/nics/features/cpfl.ini | 10 ++ doc/guides/nics/features/idpf.ini | 9 + 2 files changed, 19 insertions(+)

[PATCH 00/25] add the NFP vDPA PMD

2023-10-16 Thread Chaoyong He
This patch series aims to add the NFP vDPA PMD, we also grab the common logic into the `drivers/common/nfp` directory. Chaoyong He (25): drivers: introduce the NFP common library net/nfp: make VF PMD using of NFP common module net/nfp: rename common module name net/nfp: rename ctrl module

[PATCH 01/25] drivers: introduce the NFP common library

2023-10-16 Thread Chaoyong He
A new NFP vdpa PMD will be added to support vdpa operations by NFP adapters. This vdpa PMD share some logic with the net/nfp PMD. So create a new common library in drivers/common for NFP PMDs. We import a 'nfp_class_driver' layer and which can support various device type in addition to the ethern

[PATCH 02/25] net/nfp: make VF PMD using of NFP common module

2023-10-16 Thread Chaoyong He
Modify the logic of NFP VF PMD, make it using of the NFP common module and link into the 'nfp_drivers_list'. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/meson.build | 6 +- drivers/net/nfp/nfp_ethdev_vf.c | 1

[PATCH 03/25] net/nfp: rename common module name

2023-10-16 Thread Chaoyong He
Rename the 'nfp_common' module into 'nfp_net_common' module, because which is more suitable and we will add 'nfp_common' module in the 'drivers/common/nfp' directory. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.h

[PATCH 04/25] net/nfp: rename ctrl module name

2023-10-16 Thread Chaoyong He
Rename the 'nfp_ctrl' module into 'nfp_net_ctrl' module, because which is more suitable and we will add 'nfp_common_ctrl' module in the 'drivers/common/nfp' directory. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/meson.build| 2

[PATCH 05/25] net/nfp: extract the cap data field

2023-10-16 Thread Chaoyong He
Extract the 'cap' data field into the super class, ready for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 6 +- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 10 +-- drivers/net/nfp/nfdk/nfp_nfdk_dp.c |

[PATCH 06/25] net/nfp: extract the qcp data field

2023-10-16 Thread Chaoyong He
Extract the 'qcp_cfg' data field into the super class, prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_net_common.c | 8 drivers/net/nfp/nfp_net_common.h | 2 +- 2 files changed, 5 insertions(+),

[PATCH 07/25] net/nfp: extract the ctrl BAR data field

2023-10-16 Thread Chaoyong He
Extract the 'ctrl_bar' data filed into the super class, prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 8 drivers/net/nfp/nfp_ethdev.c| 14 +++--- drivers/net/n

[PATCH 08/25] net/nfp: extract the ctrl data field

2023-10-16 Thread Chaoyong He
Extract the 'ctrl' data filed into the super class, prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 8 ++--- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 2 +- drivers/net/nfp/nfdk/nfp_nfdk_dp

[PATCH 09/25] net/nfp: change the parameter of APIs

2023-10-16 Thread Chaoyong He
Change the parameter of some APIs from 'struct nfp_net_hw' into the super class 'struct nfp_hw', prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 24 ++-- .../net/nfp/flower/nfp

[PATCH 10/25] net/nfp: change the parameter of reconfig

2023-10-16 Thread Chaoyong He
Extract the 'reconfig_lock' data field into the super class, also change the parameter of the related APIs, prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 50 + drivers/net/nfp/

[PATCH 11/25] net/nfp: extract the MAC address data field

2023-10-16 Thread Chaoyong He
Extract the 'mac_addr' data filed into the super class, prepare for the upcoming common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_ethdev.c | 14 +++--- drivers/net/nfp/nfp_ethdev_vf.c | 18 +- drivers/n

[PATCH 12/25] net/nfp: rename parameter in related logic

2023-10-16 Thread Chaoyong He
Rename parameter 'hw' into 'net_hw' in the related logic, to make the name more accurate. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower.c | 8 +- drivers/net/nfp/nfp_ethdev.c| 86 ++--- drivers/net/nfp/n

[PATCH 13/25] drivers: add the common ctrl module

2023-10-16 Thread Chaoyong He
Add the common ctrl module. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/nfp_common_ctrl.h | 374 +++ drivers/net/nfp/nfp_net_ctrl.h | 365 +- 2 files changed, 375 insertions(+), 364 deletio

[PATCH 14/25] drivers: add the nfp common module

2023-10-16 Thread Chaoyong He
Add the nfp common module in the nfp common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/meson.build | 3 +- drivers/common/nfp/nfp_common.c | 133 ++ drivers/common/nfp/nfp_common.h | 227

[PATCH 15/25] drivers: move queue logic to common module

2023-10-16 Thread Chaoyong He
Move the queue enable/disable logic to the common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/nfp_common.c | 49 drivers/common/nfp/nfp_common.h | 7 + drivers/common/nfp/version.map | 2 ++

[PATCH 16/25] drivers: move platform module to common library

2023-10-16 Thread Chaoyong He
Move the platform module to the common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/{net/nfp/nfpcore => common/nfp}/nfp_platform.h | 0 drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 2 +- drivers/net/nfp/nfp_net_ctrl.c

[PATCH 17/25] drivers: move device module to common library

2023-10-16 Thread Chaoyong He
Move the device module to the common library. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/meson.build| 1 + drivers/{net/nfp/nfpcore => common/nfp}/nfp_dev.c | 0 drivers/{net/nfp/nfpcore => common/nfp}/nfp_dev.h | 3 +++ d

[PATCH 18/25] drivers/vdpa: introduce the NFP vDPA library

2023-10-16 Thread Chaoyong He
Introduce the very basic NFP vDPA library. Signed-off-by: Shujing Dong Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/meson.build| 1 + drivers/vdpa/nfp/meson.build| 16 drivers/vdpa/nfp/nfp_vdpa_log.c | 9 + dri

[PATCH 19/25] drivers: add the basic framework of vDPA PMD

2023-10-16 Thread Chaoyong He
Add the basic framework of vDPA PMD. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/nfp_common_pci.c | 1 + drivers/common/nfp/nfp_common_pci.h | 1 + drivers/vdpa/nfp/meson.build| 7 ++ drivers/vdpa/nfp

[PATCH 20/25] vdpa/nfp: add the logic of remap PCI memory

2023-10-16 Thread Chaoyong He
Add the logic of remap PCI memory. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/nfp_vdpa.c | 65 - 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/nfp/nfp

[PATCH 21/25] vdpa/nfp: add the hardware init logic

2023-10-16 Thread Chaoyong He
Add the hardware initialize logic. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/meson.build | 1 + drivers/vdpa/nfp/nfp_vdpa.c | 10 ++ drivers/vdpa/nfp/nfp_vdpa_core.c | 54 +

[PATCH 22/25] drivers: add the datapath update logic

2023-10-16 Thread Chaoyong He
Add the vDPA datapath update logic. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/common/nfp/nfp_common_ctrl.h | 1 + drivers/vdpa/nfp/nfp_vdpa.c | 315 +++ drivers/vdpa/nfp/nfp_vdpa_core.c

[PATCH 23/25] vdpa/nfp: add the notify related logic

2023-10-16 Thread Chaoyong He
Add the logic to process vDPA notify relay. Signed-off-by: Chaoyong He Signed-off-by: Shujing Dong Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/nfp_vdpa.c | 155 +++ drivers/vdpa/nfp/nfp_vdpa_core.c | 61 drivers/vdpa/nfp/nfp

[PATCH 24/25] vdpa/nfp: add nfp vDPA device operations

2023-10-16 Thread Chaoyong He
Implement the corresponding nfp vDPA opetation functions. Signed-off-by: Shujing Dong Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/vdpa/nfp/nfp_vdpa.c | 213 1 file changed, 213 insertions(+) diff --git a/drivers/vdp

[PATCH 25/25] doc: add the common and vDPA document

2023-10-16 Thread Chaoyong He
Add the document for nfp common library and vDPA PMD. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- MAINTAINERS| 8 doc/guides/platform/index.rst | 1 + doc/guides/platform/nfp.rst| 30 ++ doc/gui

[PATCH] net/virtio: fixed missing next flag when sending packets in packed mode

2023-10-16 Thread liufengjiang.0426
When the packets is sent in packed mode, and the packets data and virtio-header are divided into two desc, set the next flag of virtio-header desc Bugzilla ID: 1295 Fixes: 892dc798fa9c ("net/virtio: implement Tx path for packed queues") Signed-off-by: Fengjiang Liu --- drivers/net/virtio/virtqu

RE: [EXT] Re: [PATCH v8 01/12] app/graph: add application framework to read CLI

2023-10-16 Thread Sunil Kumar Kori
> -Original Message- > From: Jerin Jacob > Sent: Monday, October 16, 2023 2:31 PM > To: Sunil Kumar Kori > Cc: Thomas Monjalon ; Rakesh Kudurumalla > ; dev@dpdk.org > Subject: [EXT] Re: [PATCH v8 01/12] app/graph: add application framework > to read CLI > > External Email > > --

RE: [EXT] Re: [PATCH v8 02/12] app/graph: add telnet connectivity framework

2023-10-16 Thread Sunil Kumar Kori
> -Original Message- > From: Jerin Jacob > Sent: Monday, October 16, 2023 2:34 PM > To: Sunil Kumar Kori > Cc: Rakesh Kudurumalla ; dev@dpdk.org > Subject: [EXT] Re: [PATCH v8 02/12] app/graph: add telnet connectivity > framework > > External Email > > --

RE: [EXT] Re: [PATCH v8 04/12] app/graph: add mempool command line interfaces

2023-10-16 Thread Sunil Kumar Kori
> -Original Message- > From: Jerin Jacob > Sent: Monday, October 16, 2023 2:39 PM > To: Sunil Kumar Kori > Cc: Rakesh Kudurumalla ; dev@dpdk.org > Subject: [EXT] Re: [PATCH v8 04/12] app/graph: add mempool command line > interfaces > > External Email > >

RE: [EXT] Re: [PATCH v8 05/12] app/graph: add ethdev command line interfaces

2023-10-16 Thread Sunil Kumar Kori
> -Original Message- > From: Bruce Richardson > Sent: Monday, October 16, 2023 7:41 PM > To: Jerin Jacob > Cc: Sunil Kumar Kori ; Rakesh Kudurumalla > ; dev@dpdk.org > Subject: [EXT] Re: [PATCH v8 05/12] app/graph: add ethdev command line > interfaces > > External Email > >

RE: [EXT] Re: [PATCH v8 06/12] app/graph: add ipv4_lookup command line interfaces

2023-10-16 Thread Sunil Kumar Kori
> -Original Message- > From: Jerin Jacob > Sent: Monday, October 16, 2023 9:18 PM > To: Sunil Kumar Kori > Cc: Rakesh Kudurumalla ; dev@dpdk.org > Subject: [EXT] Re: [PATCH v8 06/12] app/graph: add ipv4_lookup command > line interfaces > > External Email > >

Re: [PATCH 0/2] fix enable_stdatomic=true build with clang

2023-10-16 Thread David Marchand
On Mon, Oct 16, 2023 at 9:07 PM David Marchand wrote: > > On Mon, Oct 16, 2023 at 8:53 PM Tyler Retzlaff > wrote: > > > > We are temporarily exposed while the CI is enabled that tests > > CC=clang && -Denable_stdatomic. > > > > In the meantime two mistakes have been found so fix them to allow > >

<    1   2