[PATCH v2] net/mlx5: fix risk in Rx descriptor read in NEON vector path

2023-05-29 Thread Ruifeng Wang
In NEON vector PMD, vector load loads two contiguous 8B of descriptor data into vector register. Given vector load ensures no 16B atomicity, read of the word that includes op_own field could be reordered after read of other words. In this case, some words could contain invalid data. Reloaded qword

RE: [PATCH v4 13/13] net/cpfl: support hairpin bind/unbind

2023-05-29 Thread Liu, Mingxia
> -Original Message- > From: Xing, Beilei > Sent: Friday, May 26, 2023 3:39 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Liu, Mingxia ; Xing, Beilei > ; Wang, Xiao W > Subject: [PATCH v4 13/13] net/cpfl: support hairpin bind/unbind > > From: Beilei Xing > > This patch supports hairpin

RE: [PATCH v4 09/13] net/cpfl: support hairpin queue start/stop

2023-05-29 Thread Liu, Mingxia
> -Original Message- > From: Xing, Beilei > Sent: Friday, May 26, 2023 3:39 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Liu, Mingxia ; Xing, Beilei > ; Wang, Xiao W > Subject: [PATCH v4 09/13] net/cpfl: support hairpin queue start/stop > > From: Beilei Xing > > This patch supports Rx

Re: Hugepage migration

2023-05-29 Thread Stephen Hemminger
On Sun, 28 May 2023 23:07:40 +0300 Baruch Even wrote: > Hi, > > We found an issue with newer kernels (5.13+) that are found on newer OSes > (Ubuntu22, Rocky9, Ubuntu20 with kernel 5.15) where a 2M page that was > allocated for DPDK was migrated (moved into another physical page) when a > 1G page

[PATCH v4] ethdev: add flow item for RoCE infiniband BTH

2023-05-29 Thread Dong Zhou
IB(InfiniBand) is one type of networking used in high-performance computing with high throughput and low latency. Like Ethernet, IB defines a layered protocol (Physical, Link, Network, Transport Layers). IB provides native support for RDMA(Remote DMA), an extension of the DMA that allows direct acc

RE: [PATCH v4 05/13] net/cpfl: support hairpin queue setup and release

2023-05-29 Thread Liu, Mingxia
> -Original Message- > From: Liu, Mingxia > Sent: Tuesday, May 30, 2023 10:27 AM > To: Xing, Beilei ; Wu, Jingjing > Cc: dev@dpdk.org; Wang, Xiao W > Subject: RE: [PATCH v4 05/13] net/cpfl: support hairpin queue setup and > release > > > > > -Original Message- > > From: Xin

RE: [PATCH v4 05/13] net/cpfl: support hairpin queue setup and release

2023-05-29 Thread Liu, Mingxia
> -Original Message- > From: Xing, Beilei > Sent: Friday, May 26, 2023 3:39 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Liu, Mingxia ; Xing, Beilei > ; Wang, Xiao W > Subject: [PATCH v4 05/13] net/cpfl: support hairpin queue setup and release > > From: Beilei Xing > > Support hairpin

Re: Hugepage migration

2023-05-29 Thread Stephen Hemminger
On Sun, 28 May 2023 23:07:40 +0300 Baruch Even wrote: > Hi, > > We found an issue with newer kernels (5.13+) that are found on newer OSes > (Ubuntu22, Rocky9, Ubuntu20 with kernel 5.15) where a 2M page that was > allocated for DPDK was migrated (moved into another physical page) when a > 1G page

Re: [PATCH 2/4] node: add a node to receive pkts from kernel

2023-05-29 Thread Jerin Jacob
On Fri, Apr 21, 2023 at 11:33 AM Vamsi Attunuru wrote: > > Patch adds a node to receive packets from kernel > over a raw socket. Subjection suggestion: node/kernel_rx: support receving packet from kernel > > Signed-off-by: Vamsi Attunuru > --- > doc/guides/prog_guide/graph_lib.rst | 7 + > li

Re: [PATCH 1/4] node: add pkt punt to kernel node

2023-05-29 Thread Jerin Jacob
On Fri, Apr 21, 2023 at 11:33 AM Vamsi Attunuru wrote: > Subject suggestion: node/punt: support punting packet to kernel

[PATCH v3 2/2] test: add reassembly perf test

2023-05-29 Thread pbhagavatula
From: Pavan Nikhilesh Add reassembly perf autotest for both ipv4 and ipv6 reassembly. Each test is performed with variable number of fragments per flow, either ordered or unordered fragments and interleaved flows. Signed-off-by: Pavan Nikhilesh --- app/test/meson.build|2 + app

[PATCH v3 1/2] ip_frag: optimize key compare and hash generation

2023-05-29 Thread pbhagavatula
From: Pavan Nikhilesh Use optimized rte_hash_k32_cmp_eq routine for key comparison for x86 and ARM64. Use CRC instructions for hash generation on ARM64. Signed-off-by: Pavan Nikhilesh --- On Neoverse-N2, performance improved by 10% when measured with examples/ip_reassembly. v3 Changes: - Dro

2022 DPDK CVE Summary Report

2023-05-29 Thread Jiang, Cheng1
Hi folks, I made a summary report regarding the 2022 DPDK CVE issues. In this report, we will discuss the CVE[i] issues that have been fixed in 2022. A total of 4 CVEs were reported and addressed in 2022, details are as below. 1. CVE-2021-3839 - Link: https://access.redhat.com/security/cve/CVE-2

RE: [PATCH v3 3/3] net/mlx5/hws: add support for infiniband BTH match

2023-05-29 Thread Alex Vesker
Hi, > -Original Message- > From: Dong Zhou > Sent: Thursday, 25 May 2023 10:41 > To: Ori Kam ; Slava Ovsiienko ; > NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Matan Azrad ; Suanming Mou > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v3 3/3] net/mlx5/hws: add support for infinib

RE: [EXT] Re: [PATCH v2 2/3] ip_frag: improve reassembly lookup performance

2023-05-29 Thread Pavan Nikhilesh Bhagavatula
> On Tue, 23 May 2023 20:09:20 +0530 > wrote: > > > From: Pavan Nikhilesh > > > > Improve reassembly lookup performance by using NEON intrinsics for > > key validation. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > lib/ip_frag/ip_frag_internal.c | 224 +-- >

[PATCH 02/11] net/hns3: fix unenabled RTC time after reset

2023-05-29 Thread Dongdong Liu
From: Huisong Li The enabled status of RTC time will be cleared after global or IMP reset, which cause the local RTC time doesn't work. So this patch fix it. Fixes: 38b539d96eb6 ("net/hns3: support IEEE 1588 PTP") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu ---

[PATCH 10/11] net/hns3: fix inaccurate log

2023-05-29 Thread Dongdong Liu
From: Dengdui Huang This patch fix inaccurate log Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Fixes: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Signed-off-by: Dongdong Liu --- drivers/ne

[PATCH 00/11] net/hns3: add some bugfixes for hns3

2023-05-29 Thread Dongdong Liu
This patchset contains some bugfixes for hns3 pmd. Chengwen Feng (3): net/hns3: fix mbuf leak when start rxq in resetting net/hns3: fix mbuf leak when start rxq after resetting net/hns3: fix no errcode returned when failed to init queue Dengdui Huang (3): net/hns3: make code more clean

[PATCH 06/11] net/hns3: fix mbuf leak when start rxq after resetting

2023-05-29 Thread Dongdong Liu
From: Chengwen Feng In the reset restore-conf phase, the reset process will allocate for the Rx ring mbufs unconditionlly. And the rte_eth_dev_rx_queue_start() will also allocate for the Rx ring mbufs unconditionlly. So if the rte_eth_dev_rx_queue_start() is invoked after restore-conf phase, th

[PATCH 05/11] net/hns3: fix mbuf leak when start rxq in resetting

2023-05-29 Thread Dongdong Liu
From: Chengwen Feng In the reset restore-conf phase, the reset process will allocate for the Rx ring mbufs unconditionlly. And the rte_eth_dev_rx_queue_start() will also allocate for the Rx ring mbufs unconditionlly. So if the rte_eth_dev_rx_queue_start() is invoked before restore-conf phase, t

[PATCH 11/11] net/hns3: remove log redundant line break

2023-05-29 Thread Dongdong Liu
From: Dengdui Huang This patch remove log redundant line break Fixes: d51867db65c1 ("net/hns3: add initialization") Fixes: c6332c3cf9f0 ("net/hns3: support module EEPROM dump") Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.c | 1

[PATCH 09/11] net/hns3: make code more clean

2023-05-29 Thread Dongdong Liu
From: Dengdui Huang This patch modify the code that violates the coding standards. Signed-off-by: Dengdui Huang Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_regs.c | 3 +-- drivers/net/hns3/hns3_rxtx.c | 10 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/d

[PATCH 08/11] net/hns3: fix uninitialized variable

2023-05-29 Thread Dongdong Liu
From: Jie Hai This patch fixes possible use of uninitialized variable "old_tuple_fields". Fixes: e3069658da9f ("net/hns3: reimplement hash flow function") Cc: sta...@dpdk.org Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 5 +++-- 1 file changed, 3 inse

[PATCH 07/11] net/hns3: fix no errcode returned when failed to init queue

2023-05-29 Thread Dongdong Liu
From: Chengwen Feng If hns3_init_queues() return failed, the hns3vf_do_start() should return errcode. This patch fixes it. Fixes: 43d8adf3891c ("net/hns3: fix RSS flow rule restore") Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev

[PATCH 04/11] net/hns3: extract a PTP header file

2023-05-29 Thread Dongdong Liu
From: Huisong Li This patch extracts a PTP header file to contain PTP registers and external API in order to make PTP code structure more clear. Fixes: 38b539d96eb6 ("net/hns3: support IEEE 1588 PTP") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/h

[PATCH 01/11] net/hns3: fix uninitialized RTC time

2023-05-29 Thread Dongdong Liu
From: Huisong Li Driver doesn't initialize RTC time during probe phase, which lead to an inaccurate time. Fixes: 38b539d96eb6 ("net/hns3: support IEEE 1588 PTP") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ptp.c | 7 +++ 1 file chan

[PATCH 03/11] net/hns3: add the uninitialization process of PTP

2023-05-29 Thread Dongdong Liu
From: Huisong Li This patch adds the uninitialization process of PTP in case of having an impact on PF driver in kernel. Fixes: 38b539d96eb6 ("net/hns3: support IEEE 1588 PTP") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_ethdev.c | 2 +

RE: [PATCH v2 08/14] crypto/ipsec_mb: use rte_pktmbuf_mtod_offset

2023-05-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Stephen Hemminger > Sent: Saturday, May 6, 2023 5:04 PM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Ji, Kai > ; De Lara Guarch, Pablo > Subject: [PATCH v2 08/14] crypto/ipsec_mb: use rte_pktmbuf_mtod_offset > > Initial patch generated with cocci/mtod-offs

[PATCH] eal: fix prompt info when remap_segment failed

2023-05-29 Thread Fengnan Chang
when there is enough space for memseg, we should pormpt which config to modify, not just print numbers. Signed-off-by: Fengnan Chang --- lib/eal/linux/eal_memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c ind

[PATCH v4] eal: fix eal init may failed when too much continuous memsegs under legacy mode

2023-05-29 Thread Fengnan Chang
Under legacy mode, if the number of continuous memsegs greater than RTE_MAX_MEMSEG_PER_LIST, eal init will failed even though another memseg list is empty, because only one memseg list used to check in remap_needed_hugepages. Fix this by make remap_segment return how many segments mapped, remap_seg

Re: [External] Re: [PATCH v3] eal: fix eal init may failed when too much continuous memsegs under legacy mode

2023-05-29 Thread Fengnan Chang
Burakov, Anatoly 于2023年5月26日周五 23:33写道: > > On 5/26/2023 3:41 PM, Burakov, Anatoly wrote: > > On 5/26/2023 4:41 AM, Fengnan Chang wrote: > >> Under legacy mode, if the number of continuous memsegs greater > >> than RTE_MAX_MEMSEG_PER_LIST, eal init will failed even though > >> another memseg list

RE: [PATCH 1/2] cryptodev: update raw datapath API documentation

2023-05-29 Thread Akhil Goyal
> > Subject: [PATCH 1/2] cryptodev: update raw datapath API documentation > > > > Clarify the error codes returned by rte_cryptodev_raw_dp_ctx. Cryptodev > > can return -ENOTSUP to indicate any unsupported features with raw APIs. > > > > Remove redundant references about 'rte_cryptodev_raw_attach_s

[Bug 1241] DPDK 18.11.5: i40e PMD fails to start X710 port when set mtu.

2023-05-29 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1241 Bug ID: 1241 Summary: DPDK 18.11.5: i40e PMD fails to start X710 port when set mtu. Product: DPDK Version: 18.11 Hardware: x86 OS: Linux Status: UNCONFI

[PATCH v6] crypto/qat: support to enable insecure algorithms

2023-05-29 Thread Vikash Poddar
All the insecure algorithms are default disable from cryptodev Gen 1,2,3 and 4. use qat_legacy_capa to enable all the legacy algorithms. These change effects both sym and asym insecure crypto algorithms. Signed-off-by: Vikash Poddar --- Depends-on: patch-28182 ("[v2] common/qat: fix qat_dev_cmd_p

Re: [PATCH v8] enhance NUMA affinity heuristic

2023-05-29 Thread Burakov, Anatoly
On 5/26/2023 6:50 PM, Stephen Hemminger wrote: On Fri, 26 May 2023 15:44:15 +0100 "Burakov, Anatoly" wrote: + /* Set control thread socket ID to SOCKET_ID_ANY as control +* threads may be scheduled on any NUMA node. +*/ + RTE_PER_LCORE(_socket_id) = SOCKET_ID_ANY;

[Bug 1240] [dpdk-23.07] meson_test/test_fasts: test eal_flags_file_prefix_autotest failed with `-a xx:xx.x ` parameter

2023-05-29 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1240 Bug ID: 1240 Summary: [dpdk-23.07] meson_test/test_fasts: test eal_flags_file_prefix_autotest failed with `-a xx:xx.x ` parameter Product: DPDK Version: 23.07 H

[PATCH v2 2/2] common/cnxk: add new APIs for batch operations

2023-05-29 Thread Ashwin Sekhar T K
Add new APIs for counting and extracting allocated objects from a single cache line in the batch alloc memory. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 78 ++- 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/drivers/comm

[PATCH v2 1/2] mempool/cnxk: fix indefinite wait in batch alloc

2023-05-29 Thread Ashwin Sekhar T K
Avoid waiting indefinitely when counting batch allocated pointers by adding a wait timeout. Fixes: 50d08d3934ec ("common/cnxk: fix batch alloc completion poll logic") Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h| 15 +-- drivers/mempool/cnxk/cn10k_m

RE: [PATCH v3 4/4] bus/pci: add VFIO sparse mmap support

2023-05-29 Thread Xia, Chenbo
> -Original Message- > From: Li, Miao > Sent: Friday, May 26, 2023 12:31 AM > To: dev@dpdk.org > Cc: sk...@marvell.com; tho...@monjalon.net; david.march...@redhat.com; > ferruh.yi...@amd.com; Xia, Chenbo ; Cao, Yahui > ; Burakov, Anatoly > Subject: [PATCH v3 4/4] bus/pci: add VFIO sparse

[dpdk-dev] [PATCH v1] drivers/cnxk: improve the build time for non arm64 build

2023-05-29 Thread jerinj
From: Jerin Jacob Specialized fast path routines are not applicable to non arm64 build, removing those function contained files to improve the build time on non arm64 build. Signed-off-by: Jerin Jacob --- drivers/event/cnxk/cn10k_eventdev.c | 5 + drivers/event/cnxk/cn9k_eventdev.c | 4

Re: [PATCH 1/2] mempool/cnxk: avoid indefinite wait

2023-05-29 Thread Jerin Jacob
On Fri, May 26, 2023 at 7:15 PM Ashwin Sekhar T K wrote: > > Avoid waiting indefinitely when counting batch alloc > pointers by adding a wait timeout. Please add Fixes: and change the subject starts with "fix ..." > > Signed-off-by: Ashwin Sekhar T K > --- > drivers/common/cnxk/roc_npa.h

[PATCH v5 2/2] test/crypto: Add SM3/SM4 test vectors for verification in test app

2023-05-29 Thread Sunyang Wu
Add SM3/SM4 test vectors for verification in test app. Signed-off-by: Sunyang Wu --- The test results of using openssl are as follows: + SM4 Chain : 24/24 passed, 0/24 skipped, 0/24 failed, 0/24 unsupported + SM4 Cipher Only : 10/10 passed, 0/10 skipped, 0/10 failed, 0/10 unsupported + Auth Only

[PATCH v5 1/2] cryptodev: support SM3_HMAC,SM4_CFB and SM4_OFB

2023-05-29 Thread Sunyang Wu
Add SM3_HMAC/SM4_CFB/SM4_OFB support in DPDK. Signed-off-by: Sunyang Wu --- doc/guides/cryptodevs/features/default.ini | 3 +++ doc/guides/rel_notes/release_23_07.rst | 5 + lib/cryptodev/rte_crypto_sym.h | 8 +++- lib/cryptodev/rte_cryptodev.c | 5 - 4 f

Re: [PATCH 2/2] build: fix warning when running external command

2023-05-29 Thread Bruce Richardson
On Mon, May 29, 2023 at 01:57:51PM +0800, Ruifeng Wang wrote: > Meson gives warnings on calls to run_command when there is > a missing "check" parameter. Most of the occurrences has been fixed. > Fixed the remaining one in this change. > > Fixes: ecb904cc4596 ("build: fix warnings when running ext

Re: [PATCH 1/2] config/arm: update config for Neoverse N2

2023-05-29 Thread Juraj Linkeš
Acked-by: Juraj Linkeš On Mon, May 29, 2023 at 7:58 AM Ruifeng Wang wrote: > Updated maximum number of lcores and numa nodes to support platforms > with multiple numa nodes. > Added mcpu compiler option. > > Signed-off-by: Ruifeng Wang > Reviewed-by: Feifei Wang > --- > config/arm/meson.buil

Re: [PATCH 1/2] config/arm: Do not require processor information

2023-05-29 Thread Juraj Linkeš
+ Lijuan Hi Lijuan, Akihiko wonders whether it's possible to add the ability to do a generic build in DTS. If I understand correctly, we don't pass -Dplatform to meson build which results in native build which in turn is not supported on all arm microarchitectures, resulting in failing builds. Add

RE: [PATCH v2 1/3] cryptodev: add SM2 asymmetric crypto algorithm

2023-05-29 Thread Gowrishankar Muthukrishnan
Hi ArkadiuszX, > > ShangMi 2 (SM2) is a encryption and digital signature algorithm used > > in the Chinese National Standard. > > It is more of a set of public-key cryptography algorithms based on elliptic > curves. Ok I ll rephrase it. > > > ... > > --- > > doc/guides/cryptodevs/features/def