[PATCH v1 3/3] examples/l3fwd-power: enable PMD power mgmt on Arm

2022-08-24 Thread Feifei Wang
For Arm aarch, power monitor uses WFE instruction to enable, which can not exit automatically within the time limit. This means 'rte_power_monitor_wakeup' API needs to be called to wake up sleep cores if there is no store operation to monitored address. Furthermore, we disable power monitor featur

[PATCH v1 2/3] eal: add power mgmt support on Arm

2022-08-24 Thread Feifei Wang
For Arm aarch, use WFE instruction to enable power monitor API, and use SEV instruction to enable wake up API. Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/eal/arm/include/rte_pause_64.h | 5 ++- lib/eal/arm/rte_cpuflags.c | 5 +++ lib/eal/arm/rte_power_intrinsics.c |

[PATCH v1 1/3] eal: add 8 bits case for wait scheme

2022-08-24 Thread Feifei Wang
For wait scheme generic helper, add 8 bits case. Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/eal/arm/include/rte_pause_64.h | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/eal/arm/include/rte_pause_64.h b/lib/eal/arm/include

[PATCH v1 0/3] Enable PMD power management on Arm

2022-08-24 Thread Feifei Wang
For Arm aarch, use WFE instructions to enable PMD power management. Feifei Wang (3): eal: add 8 bits case for wait scheme eal: add power mgmt support on Arm examples/l3fwd-power: enable PMD power monitor on Arm examples/l3fwd-power/main.c| 30 - lib/eal/arm/include/rte_

[PATCH] net/pcap: reduce time for stopping device

2022-08-24 Thread Yiding Zhou
The pcap file will be synchronized to the disk when stopping the device. It takes a long time if the file is large that would cause the 'detach sync request' timeout when the device is closed under multi-process scenario. This commit fixes the issue by performing synchronization in Tx path Fixes:

Issue on capturing using DPDK Pdump on secondary interface.

2022-08-24 Thread Navin Srinivas
Hello, We are facing a strange issue, we have the following setup for our application. We wanted to capture packets using dpdk pdump for our application, and started to notice an issue in capturing on DPDK 21.11 So we went back to DPDK 20.11 and we still saw the issue. [image: image.png] Think th

RE: 20.11.6 patches review and test

2022-08-24 Thread Xueming(Steven) Li
Thanks Nvidia test team! > -Original Message- > From: Ali Alnubani > Sent: Tuesday, August 23, 2022 10:55 PM > To: Xueming(Steven) Li ; sta...@dpdk.org > Cc: dev@dpdk.org; Abhishek Marathe ; > benjamin.wal...@intel.com; David Christensen > ; Hemant Agrawal ; Ian > Stokes ; Jerin Jacob >

RE: 20.11.6 patches review and test

2022-08-24 Thread Xueming(Steven) Li
Thanks Readhat test team! From: YangHang Liu Sent: Wednesday, August 24, 2022 10:45 PM To: Xueming(Steven) Li Cc: sta...@dpdk.org; dev@dpdk.org; Abhishek Marathe ; Ali Alnubani ; benjamin.wal...@intel.com; David Christensen ; Hemant Agrawal ; Ian Stokes ; Jerin Jacob ; John McNamara ; Ju-Hyo

RE: 20.11.6 patches review and test

2022-08-24 Thread Xueming(Steven) Li
> -Original Message- > From: Jiang, YuX > Sent: Thursday, August 25, 2022 10:46 AM > To: Xueming(Steven) Li ; sta...@dpdk.org > Cc: dev@dpdk.org; Abhishek Marathe ; Ali > Alnubani ; Walker, Benjamin > ; David Christensen ; > Hemant Agrawal ; Stokes, Ian > ; Jerin Jacob ; Mcnamara, John

RE: 20.11.6 patches review and test

2022-08-24 Thread Jiang, YuX
> -Original Message- > From: Xueming(Steven) Li > Sent: Tuesday, August 23, 2022 7:51 PM > To: Jiang, YuX ; sta...@dpdk.org > Cc: dev@dpdk.org; Abhishek Marathe ; > Ali Alnubani ; Walker, Benjamin > ; David Christensen > ; Hemant Agrawal ; > Stokes, Ian ; Jerin Jacob ; > Mcnamara, John ; J

Re: [RFC] DPDK Distro Support Policies

2022-08-24 Thread aisha
On 8/24/2022 2:26 PM, Owen Hilyard wrote: Hello Everyone, At the tech board meeting today I brought up the topic of supported Linux distros/operating systems. We came up with the following proposal, but want community feedback before any decision is made. If you want a distro/OS added, plea

[PATCH] power: add unpriv. read of turbo % for pstate

2022-08-24 Thread Markus Theil
If DPDK applications should be used with a minimal set of privileges, using the msr kernel module on linux should not be necessary. Since at least kernel 4.4 the rdmsr call to obtain the last non-turbo boost frequency can be left out, if the sysfs interface is used. Also RHEL 7 with recent kernel

[RFC] DPDK Distro Support Policies

2022-08-24 Thread Owen Hilyard
Hello Everyone, At the tech board meeting today I brought up the topic of supported Linux distros/operating systems. We came up with the following proposal, but want community feedback before any decision is made. If you want a distro/OS added, please reply saying so and provide a compelling reaso

RE: [EXT] [PATCH v2 00/37] baseband/acc100: changes for 22.11

2022-08-24 Thread Chautru, Nicolas
Thanks for the feedback Akhil. Hernan is out for a bit but I can cover from him. There was no actual code change in v2, only change in commit messages so that to be more explicit and detailed. In case there is a v3, the change log would be amended to capture this. Thanks Nic > -Original M

Re: [PATCH v2] app/testpmd: fix incorrect queues state of secondary process

2022-08-24 Thread Singh, Aman Deep
Hi Peng, On 8/19/2022 3:39 PM, peng1x.zh...@intel.com wrote: From: Peng Zhang Primary process could set up queues state correctly when starting port, but under multi-process scenario, "stream_init" function would get wrong queues state for secondary process. This commit is to get queues state

[RFC PATCH v1 10/10] dts: add hello world testsuite

2022-08-24 Thread Juraj Linkeš
The testsuite implements the testcases defined in the corresponding test plan. Signed-off-by: Juraj Linkeš --- dts/tests/TestSuite_hello_world.py | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 dts/tests/TestSuite_hello_world.py diff --git a/dts/tests/T

[RFC PATCH v1 09/10] dts: add hello world testplan

2022-08-24 Thread Juraj Linkeš
The testplan describes the capabilities of the tested application along with the description of testcases to test it. Signed-off-by: Juraj Linkeš --- dts/test_plans/hello_world_test_plan.rst | 68 1 file changed, 68 insertions(+) create mode 100644 dts/test_plans/hello_

[RFC PATCH v1 07/10] dts: add testcase and basic test results

2022-08-24 Thread Juraj Linkeš
TestCase implements methods for setting up and tearing down testcases and basic workflow methods. Result stores information about the testbed and the results of testcases that ran on the testbed. Signed-off-by: Juraj Linkeš --- dts/framework/exception.py | 15 ++ dts/framework/test_case.py

[RFC PATCH v1 08/10] dts: add test runner and statistics collector

2022-08-24 Thread Juraj Linkeš
Add functions responsible for initializing testbed setup, testcase discovery and execution. The stats collector gathers the pass/fail results and provides a short report. Signed-off-by: Juraj Linkeš --- dts/framework/dts.py| 174 +--- dts/framework/stats_r

[RFC PATCH v1 05/10] dts: add system under test node

2022-08-24 Thread Juraj Linkeš
The SUT node contains methods to configure the node and build and configure DPDK. Signed-off-by: Juraj Linkeš --- dts/framework/sut_node.py | 603 ++ 1 file changed, 603 insertions(+) create mode 100644 dts/framework/sut_node.py diff --git a/dts/framework/su

[RFC PATCH v1 06/10] dts: add traffic generator node

2022-08-24 Thread Juraj Linkeš
The Traffic Generator node is responsible for configuring and running traffic generators. For HelloWorld, we don't need any traffic, so this is just a barebones implementation demonstrating the two nodes in use in DTS. Signed-off-by: Juraj Linkeš --- dts/framework/tg_node.py | 78 +++

[RFC PATCH v1 04/10] dts: add basic node management methods

2022-08-24 Thread Juraj Linkeš
The nodes DTS is working with are either a system under test node (where DPDK runs) and a traffic generator node. The added methods are common to both system under test nodes and traffic generator nodes. Signed-off-by: Juraj Linkeš --- dts/framework/node.py | 395

[RFC PATCH v1 03/10] dts: ssh connection additions for hello world

2022-08-24 Thread Juraj Linkeš
SCP is needed to transfer DPDK tarballs between nodes. Also add keepalive method that testcases use. Signed-off-by: Juraj Linkeš --- dts/framework/ssh_connection.py | 19 ++ dts/framework/ssh_pexpect.py| 61 +++-- 2 files changed, 78 insertions(+), 2 delet

[RFC PATCH v1 02/10] dts: hello world cli parameters and env vars

2022-08-24 Thread Juraj Linkeš
Add command line arguments (and the corresponding env variables) that specify DPDK build and test execution workflow. Also split the configuration into two parts, one that can be changed during runtime and one that can't. We will need to change the git refspec to a DPDK tarball path when support i

[RFC PATCH v1 01/10] dts: hello world config options

2022-08-24 Thread Juraj Linkeš
There are two categories of new config options: DPDK build/config options and testing options. Signed-off-by: Juraj Linkeš --- dts/conf.yaml | 20 ++- dts/framework/config/__init__.py | 141 - dts/framework/config/conf_yaml_schema.json

[RFC PATCH v1 00/10] dts: add hello world testcase

2022-08-24 Thread Juraj Linkeš
The patch is built on top of the existing SSH connection patch submitted earlier and contains the rest of the code to run the most basic testcase, hello world, which just runs the hello world application and verifies the output. The code added is mostly about setting up the testbed, building DPDK

[PATCH v2 2/3] eal: add cpuset lcore telemetry entries

2022-08-24 Thread Kevin Laatz
From: Anatoly Burakov Expose per-lcore cpuset information to telemetry. Signed-off-by: Anatoly Burakov --- lib/eal/common/eal_common_lcore_telemetry.c | 47 + 1 file changed, 47 insertions(+) diff --git a/lib/eal/common/eal_common_lcore_telemetry.c b/lib/eal/common/eal_co

[PATCH v2 1/3] eal: add lcore poll busyness telemetry

2022-08-24 Thread Kevin Laatz
From: Anatoly Burakov Currently, there is no way to measure lcore busyness in a passive way, without any modifications to the application. This patch adds a new EAL API that will be able to passively track core busyness. The busyness is calculated by relying on the fact that most DPDK API's will

[PATCH v2 0/3] Add lcore poll busyness telemetry

2022-08-24 Thread Kevin Laatz
Currently, there is no way to measure lcore busyness in a passive way, without any modifications to the application. This patchset adds a new EAL API that will be able to passively track core busyness. As part of the set, new telemetry endpoints are added to read the generate metrics. Anatoly Bura

[PATCH v2 3/3] doc: add howto guide for lcore poll busyness

2022-08-24 Thread Kevin Laatz
Add a new section to the howto guides for using the new lcore poll busyness telemetry endpoints and describe general usage. Signed-off-by: Kevin Laatz --- doc/guides/howto/lcore_busyness.rst | 79 + 1 file changed, 79 insertions(+) create mode 100644 doc/guides/howto

[PATCH] crypto/ipsec_mb: support all tag sizes for ZUC-EIA3-256

2022-08-24 Thread Pablo de Lara
Add support for 8-byte and 16-byte tags for ZUC-EIA3-256. Signed-off-by: Pablo de Lara --- doc/guides/cryptodevs/aesni_mb.rst | 1 - doc/guides/rel_notes/release_22_11.rst | 4 drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 22 ++--- drivers/crypto/ipsec_mb/pm

Re: [PATCH v2 1/3] ethdev: introduce pool sort capability

2022-08-24 Thread Ferruh Yigit
On 8/23/2022 4:26 AM, Ding, Xuan wrote: Hi Hanumanth, -Original Message- From: Hanumanth Pothula Sent: Saturday, August 13, 2022 1:25 AM To: Thomas Monjalon ; Ferruh Yigit ; Andrew Rybchenko Cc: dev@dpdk.org; Ding, Xuan ; Wu, WenxuanX ; Li, Xiaoyun ; step...@networkplumber.org; Wang,

DPDK Gov Board - My departure and replacement

2022-08-24 Thread St Leger, Jim
DPDK Community: I am writing to let you know that I will be leaving my role as the Intel representative on the DPDK Governing Board and as the board chair. I have taken on a new role, still at Intel, which will bring my work focus in a new direction. Robin Giller, whom some of you may know from

Re: 20.11.6 patches review and test

2022-08-24 Thread YangHang Liu
Hi Xueming, The dpdk 20.11.6-rc1 test result from Red Hat : PASS. We tested below 17 scenarios and all got PASS on RHEL8: - Guest with device assignment(PF) throughput testing(1G hugepage size): PASS - Guest with device assignment(PF) throughput testing(2M hugepage size) : PASS - Guest

Re: dpdk-22.07

2022-08-24 Thread Stephen Hemminger
Please choose a stable version 22.11 soon, or 21.11. bugs in 22.07 will not be fixed On Tue, Aug 23, 2022, 11:38 PM Michael Lekar wrote: > Hi All, > > > > My name is Michaele and I work in Radware Ltd . Currently we use 17.11.3 > version of dpdk in our product. Now we want to evaluate 22.07 ve

Re: [PATCH v1] vhost: fix build

2022-08-24 Thread David Marchand
On Mon, Aug 22, 2022 at 9:42 AM Min Zhou wrote: > > This patch fixes the following build failure seen on CentOS 8 > with gcc 12.1 because of uninitialized struct variable: > > [..] > ../lib/vhost/virtio_net.c:1159:18: warning: 'buf_vec[0].buf_addr' may be used > uninitialized [-Wmaybe-uninitial

[PATCH 2/2] net/qede/base: compilation fix for GCC-12

2022-08-24 Thread Amit Prakash Shukla
GCC 12 raises the following warning: ../drivers/net/qede/base/ecore_init_fw_funcs.c: In function 'ecore_dmae_to_grc.constprop.isra': ../drivers/net/qede/base/ecore_init_fw_funcs.c:1418:25: error: array subscript 1 is outside array bounds of 'u32[1]' {aka 'unsigned int[1]'} [-Werror

[PATCH 1/2] net/i40e: compilation fix for GCC-12

2022-08-24 Thread Amit Prakash Shukla
GCC 12 raises the following warning: meson --werror --buildtype=debugoptimized --cross-file config/x86/cross-mingw -Dexamples=helloworld build ninja -C build In function 'i40e_hash_get_pattern_type', inlined from 'i40e_hash_get_pattern_pctypes' at ../drivers/net/i40e/i40e_hash.c:520:8

[PATCH] examples/ipsec-secgw: compilation fix for GCC-12

2022-08-24 Thread Amit Prakash Shukla
Typecasting uint32_t array to uint16_t and accessing it as max array size(at time of declaration of uint32_t array) causes gcc-12 to throw an error. GCC 12 raises the following warning: In function 'send_multi_pkts', inlined from 'route6_pkts_neon' at ../examples/ipsec-secgw/ipsec_lpm_neon.h:

Re: [Patch v4 15/17] net/mana: add function to send packets

2022-08-24 Thread Thomas Monjalon
22/08/2022 17:09, Ferruh Yigit: > On 7/9/2022 12:49 AM, lon...@linuxonhyperv.com wrote: > > + for (uint16_t seg_idx = 0; seg_idx < m_pkt->nb_segs; > > seg_idx++) { > > This is C99 feature and we tend to not use it BUT, > > Thomas, David, > > In the past there were c89/c90/ansi cod

Re: [RFC v3 08/26] dev: move unrelated macros from header

2022-08-24 Thread Thomas Monjalon
24/08/2022 13:52, Morten Brørup: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 24/08/2022 08:50, David Marchand: > > > On Fri, Jul 29, 2022 at 3:22 PM David Marchand > > > wrote: > > > > > > I don't like them either. > > > > > > Not sure where to put them though... > > > > > > > > > >

RE: [RFC v3 08/26] dev: move unrelated macros from header

2022-08-24 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, 24 August 2022 09.39 > > 24/08/2022 08:50, David Marchand: > > On Fri, Jul 29, 2022 at 3:22 PM David Marchand > > wrote: > > > > > > On Fri, Jul 29, 2022 at 11:59 AM Bruce Richardson > > > wrote: > > > > > > Personally, I re

Re: [PATCH 0/3] ethdev: remove deprecated Flow Director configuration

2022-08-24 Thread Ferruh Yigit
On 8/3/2022 12:13 PM, Andrew Rybchenko wrote: Flow Director configuration fdir_conf was deprecated long time ago and was planned to be removed in 20.11. i40e, ixgbe, qede and txgbe driver maintainers are encouraged to review correspodning patches very carefully. Internal copy of the Flow Direct

RE: dpdk-22.07

2022-08-24 Thread Michael Lekar
I tried to change the meson configuration, by adding c_args=-fno-builtin and changing default_ldflags to "-static" instead of "--export-dynamic " in app/meson.build. But in the case I got LD error about missed lgcc_s library. Really I have only shared libgcc_s on my build machine. I am not fa

RE: dpdk-22.07

2022-08-24 Thread Michael Lekar
Thanks a lot for your answer. We need fully statically application, because we want to run it on device with older kernel, than building one. Regards, Michael -Original Message- From: Bruce Richardson Sent: Wednesday, August 24, 2022 11:07 AM To: Michael Lekar Cc: dev@dpdk.org Subject

Re: dpdk-22.07

2022-08-24 Thread Bruce Richardson
On Wed, Aug 24, 2022 at 08:32:34AM +, Michael Lekar wrote: > Thanks a lot for your answer. We need fully statically application, because > we want to run it on device with older kernel, than building one. > It's probably more the libc version that would be an issue rather than the kernel itse

Re: [EXT] Re: [PATCH 1/3] eventdev: add element offset to event vector

2022-08-24 Thread Mattias Rönnblom
On 2022-08-23 22:39, Pavan Nikhilesh Bhagavatula wrote: >> On 2022-08-16 17:49, pbhagavat...@marvell.com wrote: >>> From: Pavan Nikhilesh >>> >>> Add ``elem_offset:12`` bit field event vector structure >>> the bits are taken from ``rsvd:15``. >>> The element offset defines the offset into the vect

[PATCH v5 7/7] ci: add LOONGARCH64 cross compilation job

2022-08-24 Thread Min Zhou
Checks cross-compilation using Ubuntu 20.04 x86 for LoongArch. Signed-off-by: Min Zhou --- .ci/linux-build.sh | 9 + .github/workflows/build.yml | 10 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index 06104ec

[PATCH v5 3/7] net/memif: set memfd syscall ID on LoongArch

2022-08-24 Thread Min Zhou
Define the missing __NR_memfd_create syscall id to enable the memif PMD on LoongArch. Signed-off-by: Min Zhou --- drivers/net/memif/meson.build | 6 -- drivers/net/memif/rte_eth_memif.h | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/memif/meson.build b

[PATCH v5 6/7] test/cpuflags: add test for LoongArch cpu flag

2022-08-24 Thread Min Zhou
Add checks for all flag values defined in the LoongArch cpu feature table. Signed-off-by: Min Zhou --- app/test/test_cpuflags.c | 41 1 file changed, 41 insertions(+) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 98a99c2c7d..a0e3

[PATCH v5 5/7] examples/l3fwd: enable LoongArch operation

2022-08-24 Thread Min Zhou
Add missing em_mask_key() implementation to enable the l3fwd to be run on LoongArch. Signed-off-by: Min Zhou --- examples/l3fwd/l3fwd_em.c | 8 examples/l3fwd/meson.build | 6 -- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3f

[PATCH v5 4/7] net/tap: set BPF syscall ID for LoongArch

2022-08-24 Thread Min Zhou
Define the missing __NR_bpf syscall id to enable the tap PMD on LoongArch. Signed-off-by: Min Zhou --- drivers/net/tap/meson.build | 6 -- drivers/net/tap/tap_bpf.h | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.bu

[PATCH v5 1/7] eal/loongarch: support LoongArch architecture

2022-08-24 Thread Min Zhou
Add all necessary elements for DPDK to compile and run EAL on LoongArch64 Soc. This includes: - EAL library implementation for LoongArch ISA. - meson build structure for 'loongarch' architecture. RTE_ARCH_LOONGARCH define is added for architecture identification. - xmm_t structure operation stu

[PATCH v5 2/7] net/ixgbe: add vector stubs for LoongArch

2022-08-24 Thread Min Zhou
Similar to RISC-V, the current version for LoongArch do not support vector. Re-use vector processing stubs in ixgbe PMD defined for PPC for LoongArch. This enables ixgbe PMD usage in scalar mode on LoongArch. The ixgbe PMD driver was validated with Intel X520-DA2 NIC and the test-pmd application,

[PATCH v5 0/7] Introduce support for LoongArch architecture

2022-08-24 Thread Min Zhou
From: zhoumin Dear team, The following patch set is intended to support DPDK running on LoongArch architecture. LoongArch is the general processor architecture of Loongson Corporation and is a new RISC ISA, which is a bit like MIPS or RISC-V. The online documents of LoongArch architecture are

[PATCH 2/2] usertools/telemetry: add new telemetry client

2022-08-24 Thread Conor Walsh
A lot of DPDK apps do not provide feedback to their users while running, but many interesting metrics are available through the app's telemetry socket. Currently, the main way to view these metrics is to query them using the dpdk-telemetry.py script. This is useful to check a few values or to check

[PATCH 1/2] usertools/telemetry: move main to function

2022-08-24 Thread Conor Walsh
In order to allow other tools to use the generic telemetry functions provided within dpdk-telemetry move the "main" part of the code to a function and only run this code if the tool has been called by a user. This allows other scripts to use the tool as a module to prevent code duplication. Signed

Re: dpdk-22.07

2022-08-24 Thread Bruce Richardson
On Mon, Aug 22, 2022 at 03:02:38PM +, Michael Lekar wrote: >Hi All, > > >My name is Michaele and I work in Radware Ltd . Currently we use >17.11.3 version of dpdk in our product. Now we want to evaluate 22.07 >version of dpdk. We want to build statically linkage dpdk-test >

Re: [PATCH 00/10] ethdev: cleanup deprecated defines

2022-08-24 Thread Ferruh Yigit
On 8/24/2022 7:46 AM, David Marchand wrote: On Tue, Aug 23, 2022 at 8:08 PM Ferruh Yigit wrote: Adding your explicit ack while merging: Acked-by: David Marchand For series, Acked-by: Ferruh Yigit Series applied to dpdk-next-net/main, thanks. Thanks for the tweaks while merging. Btw, Step

Re: [RFC v3 08/26] dev: move unrelated macros from header

2022-08-24 Thread Thomas Monjalon
24/08/2022 08:50, David Marchand: > On Fri, Jul 29, 2022 at 3:22 PM David Marchand > wrote: > > > > On Fri, Jul 29, 2022 at 11:59 AM Bruce Richardson > > wrote: > > > > > Personally, I really don't like these macros at all. I think having > > > > > the > > > > > check explicitly in the code woul