cache thrashing question

2023-08-24 Thread Morten Brørup
Bruce, With this patch [1], it is noted that the ring producer and consumer data should not be on adjacent cache lines, for performance reasons. [1]: https://git.dpdk.org/dpdk/commit/lib/librte_ring/rte_ring.h?id=d9f0d3a1ffd4b66e75485cc8b63b9aedfbdfe8b0 (It's obvious that they cannot share the

RE: 22.11.3 patches review and test

2023-08-24 Thread Xueming(Steven) Li
Hi Ali, Thanks for testing and report! Regards, Xueming > -Original Message- > From: Ali Alnubani > Sent: 8/25/2023 0:02 > To: Xueming(Steven) Li ; sta...@dpdk.org > Cc: xuemi...@nvdia.com; dev@dpdk.org; Abhishek Marathe > ; benjamin.wal...@intel.com; David > Christensen ; Hemant Agrawa

RE: [PATCH v1 3/5] net/cpfl: add cpfl control queue message handle

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Zhang, Yuying > Sent: Saturday, August 12, 2023 3:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Wu, Jingjing > Cc: Zhang, Yuying > Subject: [PATCH v1 3/5] net/cpfl: add cpfl control queue message handle > > Add cpfl driver control queue message

RE: [PATCH v1 2/5] common/idpf/base: refine idpf ctlq message structure

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Zhang, Yuying > Sent: Saturday, August 12, 2023 3:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Wu, Jingjing > Cc: Zhang, Yuying > Subject: [PATCH v1 2/5] common/idpf/base: refine idpf ctlq message structure > > Add cfg data in idpf_ctlq_msg.

Re: [PATCH v2] common/cnxk: fix bp_ena clear while disabling aura

2023-08-24 Thread Jerin Jacob
On Fri, Aug 25, 2023 at 9:27 AM Ashwin Sekhar T K wrote: > > As done in FLR, similar to CQ disable, in process of > aura disable we need to explicitly clear BP_ENA in order to > deassert backpressure if it was earlier asserted. > > Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") >

[PATCH v2] common/cnxk: fix bp_ena clear while disabling aura

2023-08-24 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin Sekhar T K --

RE: [PATCH v1 1/5] net/cpfl: setup rte flow skeleton

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Zhang, Yuying > Sent: Saturday, August 12, 2023 3:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Wu, Jingjing > Cc: Zhang, Yuying > Subject: [PATCH v1 1/5] net/cpfl: setup rte flow skeleton > > Setup the rte_flow backend skeleton. Introduce the

[PATCH] common/cnxk: fix bp_ena clearing during pool tear down

2023-08-24 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin Sekhar T K --

RE: [PATCH] doc: update 23.07 Intel NICs matching list

2023-08-24 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Monday, August 21, 2023 1:30 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Yang, Qiming > > Subject: [PATCH] doc: update 23.07 Intel NICs matching list > > Updated i40e and ice match list table. > > Signed-off-by: Qiming Yang Applied to

RE: 22.11.3 patches review and test

2023-08-24 Thread Ali Alnubani
> -Original Message- > From: Xueming(Steven) Li > Sent: Thursday, August 17, 2023 9:14 AM > To: sta...@dpdk.org > Cc: xuemi...@nvdia.com; dev@dpdk.org; Abhishek Marathe > ; Ali Alnubani ; > benjamin.wal...@intel.com; David Christensen ; > Hemant Agrawal ; Ian Stokes > ; Jerin Jacob ; John

Re: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread Tyler Retzlaff
On Thu, Aug 24, 2023 at 04:18:06PM +0200, David Marchand wrote: > On Thu, Aug 24, 2023 at 2:47 PM Morten Brørup > wrote: > > > From: David Marchand [mailto:david.march...@redhat.com] > > > However, I am a bit puzzled why the prefetch change makes the compiler > > > consider this loop differently.

Re: [PATCH 00/14] Cleanup PCI(e) drivers

2023-08-24 Thread Adam Hassick
Recheck-request: iol-sample-apps-testing This is a test of the retesting system, please ignore this email. On Thu, Aug 3, 2023 at 3:50 AM David Marchand wrote: > Rather than rely on Linux headers to find some PCI(e) standard constants > or reinvent the same PCI capability helper, this series co

Re: [PATCH v2] net/iavf: fix checksum offloading

2023-08-24 Thread Patrick Robb
Hi David, you can ignore the failures UNH reported for this patch - we made a mistake reconfiguring jenkins for the refactored unit test suite. As discussed we are not running the arm64 unit tests until one of the solutions we talked about is in place. On Wed, Aug 23, 2023 at 4:33 AM Zhang, Qi Z

RE: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Thursday, 24 August 2023 16.18 > > On Thu, Aug 24, 2023 at 2:47 PM Morten Brørup > wrote: > > > From: David Marchand [mailto:david.march...@redhat.com] > > > However, I am a bit puzzled why the prefetch change makes the compiler >

Re: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread David Marchand
On Thu, Aug 24, 2023 at 2:47 PM Morten Brørup wrote: > > From: David Marchand [mailto:david.march...@redhat.com] > > However, I am a bit puzzled why the prefetch change makes the compiler > > consider this loop differently. > > We have the same constructs everywhere in this library and x86_64 > >

DPDK 21.11.5 released

2023-08-24 Thread Kevin Traynor
Hi all, Here is a new stable release: https://fast.dpdk.org/rel/dpdk-21.11.5.tar.xz The git tree is at: https://dpdk.org/browse/dpdk-stable/?h=21.11 This LTS release contains ~160 fixes from main branch up to DPDK 23.07. Thanks to the authors who helped with backports and to the

RE: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Thursday, 24 August 2023 14.06 > > On Fri, Aug 11, 2023 at 9:21 PM Tyler Retzlaff > wrote: > > > > Inline assembly is not supported for MSVC x64 instead use _mm_prefetch > > and _mm_cldemote intrinsics. > > > > Signed-off-by: Tyler

Re: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread David Marchand
On Thu, Aug 24, 2023 at 2:06 PM David Marchand wrote: > I had a look at the vhost library and I think the compiler thinks size may be > 0. > Changing the loop on size with a do { } while (size > 0); resolves the > warning. > I can post a change for this, as we hit a similar issue in the past > a

Re: [PATCH v1 1/2] common/cnxk: add sa to port mapping

2023-08-24 Thread Jerin Jacob
On Wed, Aug 23, 2023 at 12:15 PM Ankur Dwivedi wrote: > > Adds sa to port mapping in roc mcs. This helps to propagate the tx and > rx pn threshold events to the correct ethernet device. > > Signed-off-by: Ankur Dwivedi > --- > drivers/common/cnxk/roc_mcs.c | 22 +++--- >

Re: [PATCH] common/cnxk: explicitly clear aura bp ena on cleanup

2023-08-24 Thread Jerin Jacob
On Tue, Aug 22, 2023 at 11:00 PM Ashwin Sekhar T K wrote: > > As done in FLR, similar to CQ disable, in process of > aura disable we needs explicitly clear BP_ENA in order to > deassert backpressure if it was earlier asserted. > > Signed-off-by: Nithin Dabilpuram > Signed-off-by: Ashwin Sekhar T

Re: [PATCH v11 06/16] eal: use prefetch intrinsics

2023-08-24 Thread David Marchand
On Fri, Aug 11, 2023 at 9:21 PM Tyler Retzlaff wrote: > > Inline assembly is not supported for MSVC x64 instead use _mm_prefetch > and _mm_cldemote intrinsics. > > Signed-off-by: Tyler Retzlaff > Acked-by: Bruce Richardson > Acked-by: Morten Brørup > Acked-by: Konstantin Ananyev > --- > lib/e

RE: [RFC] lib/st_ring: add single thread ring

2023-08-24 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Thursday, 24 August 2023 12.53 > > On 2023-08-24 10:05, Morten Brørup wrote: > >> From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > >> Sent: Tuesday, 22 August 2023 07.47 > >> > >>> From: Morten Brørup > >>> Sent: Mo

Re: [PATCH v2 1/3] eventdev: introduce event dispatcher

2023-08-24 Thread Mattias Rönnblom
On 2023-08-22 14:32, Jerin Jacob wrote: On Tue, Aug 22, 2023 at 2:12 PM Mattias Rönnblom wrote: On 2023-08-18 08:09, Jerin Jacob wrote: On Fri, Jun 16, 2023 at 1:17 PM Mattias Rönnblom wrote: Hi Mattais, Finally, got some time to review this series, and thanks for excellent documentatio

[PATCH 27/27] net/nfp: extend the usage of nfp BAR from 8 to 24

2023-08-24 Thread Chaoyong He
Sync the logic from kernel driver, adjust the definition of structure, and extend the usage of nfp BAR from 8 to 24. This will greatly enhance the scalability of nfp PMD. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 8 +- drivers/net/n

[PATCH 26/27] net/nfp: refact the cppcore and PCIe module

2023-08-24 Thread Chaoyong He
Sync the logic from kernel driver, use the new entry function from the PCIe module instead of the cppcore module. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 9 +- drivers/net/nfp/nfpcore/nfp6000_pcie.c | 197 ++---

[PATCH 25/27] net/nfp: refact the PCIe module

2023-08-24 Thread Chaoyong He
Sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp6000_pcie.c | 211 + drivers/net/nfp/nfpcore/nfp_cpp.h | 9 ++ 2 files changed, 150 in

[PATCH 24/27] net/nfp: refact the cppcore module

2023-08-24 Thread Chaoyong He
Modify the comment and standard the coding style. Move the definition of data structure into the implement file to make the API small. Also sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- driv

[PATCH 23/27] net/nfp: add header file for PCIe module

2023-08-24 Thread Chaoyong He
Add a new header file for the PCIe module. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/meson.build | 2 +- .../nfpcore/{nfp_cpp_pcie_ops.c => nfp6000_pcie.c} | 2 ++ drivers/net/nfp/nfpcore/nfp6000_pcie.h | 13

[PATCH 22/27] net/nfp: add the dev module

2023-08-24 Thread Chaoyong He
Add the nfp_dev module to simplify the logic. The data structure we import can gather and replace several macro which scatter everywhere. Which also make the logic of choose value for different devices unnecessary and so eliminate such logic. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderl

[PATCH 21/27] net/nfp: rename data field to sync with kernel driver

2023-08-24 Thread Chaoyong He
Rename the data fields to sync with the logic in kernel driver. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower.c | 6 +++--- drivers/net/nfp/nfp_common.h| 4 ++-- drivers/net/nfp/nfp_ethdev.c| 16 3 files changed

[PATCH 20/27] net/nfp: refact the mutex module

2023-08-24 Thread Chaoyong He
Add a header file to holds the API declarations of this module. Also sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 16 -- drivers/net/nfp/nfpcore/nf

[PATCH 19/27] net/nfp: refact the nsp module

2023-08-24 Thread Chaoyong He
Move the definition of data structure into the implement file. Also sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 2 +- drivers/net/nfp/nfpcore/nfp

[PATCH 18/27] net/nfp: add a new header file

2023-08-24 Thread Chaoyong He
Split out the macro which are not easily find a DPDK substitute into a new header file. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_nsp.c | 1 + drivers/net/nfp/nfpcore/nfp_nsp.h | 23 -- drivers/net/nfp/nfpcore/nfp_nsp_eth.c

[PATCH 17/27] net/nfp: refact the target module

2023-08-24 Thread Chaoyong He
Move the function declaration into the header file, and sync some logic from kernel driver. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp6000/nfp6000.h | 20 drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 1 + drivers/net/nfp/nfpco

[PATCH 16/27] net/nfp: refact the resource module

2023-08-24 Thread Chaoyong He
Sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_resource.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/net/nf

[PATCH 15/27] net/nfp: refact the rtsym module

2023-08-24 Thread Chaoyong He
Add several read/write APIs and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_rtsym.c | 305 +--- drivers/net/nfp/nfpcore/nfp_rtsym.h | 53 ++--- 2 files changed, 299 insertio

[PATCH 14/27] net/nfp: refact the mip module

2023-08-24 Thread Chaoyong He
Remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_mip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/nfp/nfpcore/nfp_mip.c b/drivers/net/nfp/nfpcore/nfp_mip.c inde

[PATCH 13/27] net/nfp: refact the nffw module

2023-08-24 Thread Chaoyong He
Move the definition of data structure and macro into the implement file. Also sync the logic from kernel driver and remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_mip.h | 4 +- drivers/net/nfp/nfpco

[PATCH 11/27] net/nfp: rename some parameter and variable

2023-08-24 Thread Chaoyong He
Rename some parameter and variable to make the logic easier to understand. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 10 ++--- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 42 - drivers/net/nfp/nfpcore/nfp_cppcore.c

[PATCH 12/27] net/nfp: refact the hwinfo module

2023-08-24 Thread Chaoyong He
Move the definition of data structure and macro into the implement file. Also remove the unneeded header file include statements. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_hwinfo.c | 84 +--- drivers/net/nfp/nfpcore/nfp_hwin

[PATCH 10/27] net/nfp: unify the guide line of header file

2023-08-24 Thread Chaoyong He
Unify the guide line of header file, we choose '__FOO_BAR_H__' style. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 2 +- drivers/net/nfp/nfpcore/nfp_hwinfo.h | 2 +- drivers/net/nfp/nfpcore/nfp_mip.h | 2 +- drivers/net/nfp/nfpcore

[PATCH 09/27] net/nfp: standard the blank character

2023-08-24 Thread Chaoyong He
Use space character to align instead of TAB character. There should one blank line to split the block of logic, no more no less. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp6000/nfp6000.h | 4 +- drivers/net/nfp/nfpcore/nfp_cpp.h | 18 +--

[PATCH 07/27] net/nfp: standard the comment style

2023-08-24 Thread Chaoyong He
Follow the DPDK coding style, use the kdoc comment style. Also add some comment to help understand logic. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 504 - drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 39 +- dri

[PATCH 08/27] net/nfp: using the DPDK memory management API

2023-08-24 Thread Chaoyong He
Revise the logic, using the DPDK memory management API to replace the malloc()/free(). Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower.c| 2 +- drivers/net/nfp/nfp_ethdev.c | 8 drivers/net/nfp/nfpcore/nfp_cppcore.c | 10 +

[PATCH 06/27] net/nfp: adjust the log statement

2023-08-24 Thread Chaoyong He
Add log statement to the important control logic, which means more strict check of the return value of function call. Also remove some verbose info log statement. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 37 ++

[PATCH 05/27] net/nfp: standard the local variable coding style

2023-08-24 Thread Chaoyong He
There should only declare one local variable in each line, and the local variable should be arranged from short to long in the function. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 58 -- drivers/net/nfp/nfpcore/n

[PATCH 04/27] net/nfp: remove the unneeded logic

2023-08-24 Thread Chaoyong He
Remove the unneeded logic. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 107 drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 12 - drivers/net/nfp/nfpcore/nfp_cppcore.c | 162 -- drivers/net/nfp/nfpcore/nfp_mutex.c

[PATCH 03/27] net/nfp: unify the type of integer variable

2023-08-24 Thread Chaoyong He
Unify the type of integer variable to the DPDK prefer style. Also change the return type of 'nfp_eth_speed2rate()' to the corresponding enum, which make it more readable. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 53 ++-

[PATCH 02/27] net/nfp: unify the indent coding style

2023-08-24 Thread Chaoyong He
Each parameter of function should occupy one line, and indent two TAB character. All the statement which span multi line should indent two TAB character. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 80 +- drivers/net/nfp/nfp

[PATCH 01/27] net/nfp: explicitly compare to null and 0

2023-08-24 Thread Chaoyong He
To compliance with the coding standard, make the pointer variable explicitly comparing to 'NULL' and the integer variable explicitly comparing to '0'. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 12 ++-- drivers/net/nfp/nfpco

[PATCH 00/27] refact the nfpcore module

2023-08-24 Thread Chaoyong He
This patch series aims to: - Make the coding style satisfy with DPDK. - Sync the logic with kernel driver. - Make the sub-module more modular. - Extend the nfp configure BAR from 8 to 24. Chaoyong He (27): net/nfp: explicitly compare to null and 0 net/nfp: unify the indent coding style net/n

Re: 21.11.5 patches review and test

2023-08-24 Thread Kevin Traynor
On 24/08/2023 07:07, Xu, HailinX wrote: -Original Message- From: Kevin Traynor Sent: Thursday, August 3, 2023 12:31 AM To: sta...@dpdk.org Cc: dev@dpdk.org; Abhishek Marathe ; Ali Alnubani ; Walker, Benjamin ; David Christensen ; Hemant Agrawal ; Stokes, Ian ; Jerin Jacob ; Mcnamara, Joh

DPDK Release Status Meeting 2023-08-17

2023-08-24 Thread Mcnamara, John
Release status meeting minutes 2023-08-17 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * AMD * Intel * Marvell * Red Hat Release Dates - The following are the proposed working dates for 23.11: * V1:

Re: [RFC] lib/st_ring: add single thread ring

2023-08-24 Thread Mattias Rönnblom
On 2023-08-24 10:05, Morten Brørup wrote: From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] Sent: Tuesday, 22 August 2023 07.47 From: Morten Brørup Sent: Monday, August 21, 2023 2:37 AM From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] Sent: Monday, 21 August 20

[PATCH] bus/platform: fix use after free

2023-08-24 Thread Tomasz Duszynski
Remove device from the list before doing actual cleanup to avoid use after free. Bugzilla ID: 1276 Fixes: 17c839f74da3 ("bus: add platform bus") Signed-off-by: Tomasz Duszynski --- drivers/bus/platform/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/pl

[PATCH v2] remove compatibility wrappers for GCC < 4.8

2023-08-24 Thread David Marchand
As we made our move to C11, GCC requirements has been bumped. Wrappers for old versions of GCC can be dropped. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes since v1: - removed empty #else #endif block in x86 rte_byteorder.h, - updated lib/table/rte_lru_x86.h (thanks Bruce

RE: [PATCH 3/4] net/cpfl: introduce CPF common library

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Qiao, Wenjing > Sent: Friday, August 11, 2023 5:31 PM > To: Zhang, Yuying ; Xing, Beilei > > Cc: dev@dpdk.org; Liu, Mingxia ; Qiao, Wenjing > > Subject: [PATCH 3/4] net/cpfl: introduce CPF common library > > Add common library support for CPFL rte_flow to

RE: [PATCH 4/4] net/cpfl: setup ctrl path

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Qiao, Wenjing > Sent: Friday, August 11, 2023 5:31 PM > To: Zhang, Yuying ; Xing, Beilei > > Cc: dev@dpdk.org; Liu, Mingxia ; Qiao, Wenjing > ; Zhang, Qi Z > Subject: [PATCH 4/4] net/cpfl: setup ctrl path > > Setup the control vport and control queue for

Re: [PATCH v5 3/3] power: amd power monitor support

2023-08-24 Thread Ferruh Yigit
On 8/23/2023 5:03 PM, Tyler Retzlaff wrote: > On Wed, Aug 23, 2023 at 10:19:39AM +0100, Ferruh Yigit wrote: >> On 8/22/2023 11:30 PM, Konstantin Ananyev wrote: >>> 18/08/2023 14:48, Bruce Richardson пишет: On Fri, Aug 18, 2023 at 02:25:14PM +0100, Ferruh Yigit wrote: > On 8/17/2023 3:18 PM

Re: [PATCH] remove wrappers for GCC < 4.8

2023-08-24 Thread Bruce Richardson
On Thu, Aug 24, 2023 at 10:30:34AM +0200, David Marchand wrote: > As we made our move to C11, GCC requirements has been bumped. > Wrappers for old versions of GCC can be dropped. > > Signed-off-by: David Marchand > --- > lib/eal/arm/include/rte_byteorder.h | 19 --- > lib/eal

Re: [PATCH] app: fix silent enqueue fail in test_mbuf test_refcnt_iter

2023-08-24 Thread Hascoet Julien
Hello Oliver, thanks, your response helped a lot, I managed to find the root cause of the instability which is on our side. It was due to other internal developments. I'll still add an error check on the enqueue ops to catch eventual problems earlier, if that suits you. Best regards, Julien On

[PATCH] app: enhance error check if enqueue fail in test_mbuf test_refcnt_iter

2023-08-24 Thread jhascoet
From: Julien Hascoet As the ring is big enough by construction, the ring enqueue ops cannot fail; therefore, we check and panic on it as soon as it is detected. Signed-off-by: Julien Hascoet --- app/test/test_mbuf.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --g

Re: [PATCH] remove wrappers for GCC < 4.8

2023-08-24 Thread David Marchand
Hello Tyler, On Thu, Aug 24, 2023 at 10:30 AM David Marchand wrote: > diff --git a/lib/eal/include/rte_debug.h b/lib/eal/include/rte_debug.h > index 2c4b94a7c9..74593cd4d4 100644 > --- a/lib/eal/include/rte_debug.h > +++ b/lib/eal/include/rte_debug.h > @@ -60,11 +60,7 @@ void rte_dump_stack(void)

[PATCH] remove wrappers for GCC < 4.8

2023-08-24 Thread David Marchand
As we made our move to C11, GCC requirements has been bumped. Wrappers for old versions of GCC can be dropped. Signed-off-by: David Marchand --- lib/eal/arm/include/rte_byteorder.h | 19 --- lib/eal/arm/include/rte_vect.h | 12 lib/eal/include/generic/rt

[PATCH v1] eventdev/eth_rx: fix null pointer dereference

2023-08-24 Thread Ganapati Kundapura
On passing NULL as a last parameter to xxx_create_ext_with_params(), rxa_config_params_validate() uses default values and dereferences NULL pointer leading to segmentation fault. Fixed by returning after using default values without dereferencing NULL pointer. Fixes: 8be6c94d6d90 ("eventdev/eth_r

RE: [RFC] lib/st_ring: add single thread ring

2023-08-24 Thread Morten Brørup
> From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > Sent: Tuesday, 22 August 2023 07.47 > > > From: Morten Brørup > > Sent: Monday, August 21, 2023 2:37 AM > > > > > From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > > > Sent: Monday, 21 August 2023 08.04 > > > >

RE: [RFC PATCH 1/2] security: add fallback security processing and Rx inject

2023-08-24 Thread Akhil Goyal
> +/** > + * Perform security processing of packets and do Rx inject after processing. > + * > + * Rx inject would behave similarly to ethdev loopback but with the > additional > + * security processing. In case of ethdev loopback, application would be > + * submitting packets to ethdev Tx queues

[PATCH v12 4/4] app/testpmd: add recycle mbufs engine

2023-08-24 Thread Feifei Wang
Add recycle mbufs engine for testpmd. This engine forward pkts with I/O forward mode. But enable mbufs recycle feature to recycle used txq mbufs for rxq mbuf ring, which can bypass mempool path and save CPU cycles. Suggested-by: Jerin Jacob Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang -

[PATCH v12 3/4] net/ixgbe: implement mbufs recycle mode

2023-08-24 Thread Feifei Wang
Define specific function implementation for ixgbe driver. Currently, recycle buffer mode can support 128bit vector path. And can be enabled both in fast free and no fast free mode. Suggested-by: Honnappa Nagarahalli Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Naga

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

2023-08-24 Thread Feifei Wang
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 Reviewed-by: Ruifeng Wang Reviewed-by: H

[PATCH v12 1/4] ethdev: add API for mbufs recycle mode

2023-08-24 Thread Feifei Wang
Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' APIs to recycle used mbufs from a transmit queue of an Ethernet device, and move these mbufs into a mbuf ring for a receive queue of an Ethernet device. This can bypass mempool 'put/get' operations hence saving CPU cycles. For eac

[PATCH v12 0/4] Recycle mbufs from Tx queue into Rx queue

2023-08-24 Thread Feifei Wang
Currently, the transmit side frees the buffers into the lcore cache and the receive side allocates buffers from the lcore cache. The transmit side typically frees 32 buffers resulting in 32*8=256B of stores to lcore cache. The receive side allocates 32 buffers and stores them in the receive side so

RE: [PATCH v2 2/4] net/cpfl: add flow json parser

2023-08-24 Thread Xing, Beilei
> -Original Message- > From: Qiao, Wenjing > Sent: Friday, August 11, 2023 6:00 PM > To: Zhang, Yuying ; Xing, Beilei > > Cc: dev@dpdk.org; Liu, Mingxia ; Qiao, Wenjing > > Subject: [PATCH v2 2/4] net/cpfl: add flow json parser > > A JSON file will be used to direct DPDK CPF PMD to >

[PATCH v3 3/3] net/tap: rework checksum offloading

2023-08-24 Thread David Marchand
Get rid of all the complicated code which copies data on the stack: - allocate a new segment from the same mempool than the original mbuf, - copy headers data in this segment, - chain the new segment in place of headers of the original mbuf, - use existing helpers for computing IP and TCP/UDP check

[PATCH v3 2/3] net/tap: fix IPv4 checksum offloading

2023-08-24 Thread David Marchand
Checking that one of RTE_MBUF_F_TX_IPV4 or RTE_MBUF_F_TX_IP_CKSUM is present is not compliant with the offloading API which specifies that IP checksum requires RTE_MBUF_F_TX_IP_CKSUM. On the other hand, RTE_MBUF_F_TX_IP_CKSUM is invalid for IPv6 packets, so we can simply check for RTE_MBUF_F_TX_IP_

[PATCH v3 1/3] net/tap: fix L4 checksum offloading

2023-08-24 Thread David Marchand
The L4 checksum offloading API does not require l4_len to be set. Make the driver discover the L4 headers size by itself. Fixes: 6546e76056e3 ("net/tap: calculate checksums of multi segs packets") Cc: sta...@dpdk.org Signed-off-by: David Marchand Tested-by: Ales Musil --- .mailmap