[PATCH v16 7/8] service: keep per-lcore state in lcore variable

2024-10-23 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v14: * Merge with bit

[PATCH v16 3/8] eal: add lcore variable performance test

2024-10-23 Thread Mattias Rönnblom
Add basic micro benchmark for lcore variables, in an attempt to assure that the overhead isn't significantly greater than alternative approaches, in scenarios where the benefits aren't expected to show up (i.e., when plenty of cache is available compared to the working set size of the per-lcore dat

RE: [EXTERNAL] [PATCH v6 2/3] crypto/qat: add sm2 encryption/decryption function

2024-10-23 Thread Akhil Goyal
> This commit adds SM2 elliptic curve based asymmetric > encryption and decryption to the Intel QuickAssist > Technology PMD. > > Signed-off-by: Arkadiusz Kusztal > --- > doc/guides/cryptodevs/features/qat.ini| 1 + > doc/guides/rel_notes/release_24_11.rst| 4 + > .../common/

[PATCH v16 4/8] eal: add lcore variables' programmer's guide

2024-10-23 Thread Mattias Rönnblom
Add lcore variables programmer's guide. This guide gives both an overview of the API, its implementation, and alternatives to the use of lcore variables for maintaining per-lcore id data. It has pictures, too. Signed-off-by: Mattias Rönnblom --- .../prog_guide/img/lcore_var_mem_layout.svg | 3

[PATCH v16 6/8] power: keep per-lcore state in lcore variable

2024-10-23 Thread Mattias Rönnblom
Replace static array of cache-aligned structs with an lcore variable, to slightly benefit code simplicity and performance. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v6: * Update FOREACH

[PATCH v16 2/8] eal: add lcore variable functional tests

2024-10-23 Thread Mattias Rönnblom
Add functional test suite to exercise the API. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Chengwen Feng Acked-by: Stephen Hemminger -- PATCH v6: * Update FOREACH invocations to match new API. RFC v5: * Adapt tests to reflect the removal of the GET() and SET() macro

[PATCH v16 8/8] eal: keep per-lcore power intrinsics state in lcore variable

2024-10-23 Thread Mattias Rönnblom
Keep per-lcore power intrinsics state in a lcore variable to reduce cache working set size and avoid any CPU next-line-prefetching causing false sharing. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng Acked-by: Stephen Hemminger --

[PATCH v16 5/8] random: keep PRNG state in lcore variable

2024-10-23 Thread Mattias Rönnblom
Replace keeping PRNG state in a RTE_MAX_LCORE-sized static array of cache-aligned and RTE_CACHE_GUARDed struct instances with keeping the same state in a more cache-friendly lcore variable. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Chengwen F

[PATCH v16 1/8] eal: add static per-lcore memory allocation facility

2024-10-23 Thread Mattias Rönnblom
Introduce DPDK per-lcore id variables, or lcore variables for short. An lcore variable has one value for every current and future lcore id-equipped thread. The primary use case is for statically allocating small, frequently-accessed data structures, for which one instance should exist for each l

[PATCH v16 0/8] Lcore variables

2024-10-23 Thread Mattias Rönnblom
This patch set introduces a new API for static per-lcore id memory allocation. Lcore variables are designed to replace static lcore id-indexed arrays and thread-local storage. Refer to the programmer's guide for a rationale and comparison with alternatives. Mattias Rönnblom (8): eal: add stat

Re: [PATCH RESEND] malloc: fix allocation for a specific case with ASan

2024-10-23 Thread Artur Paszkiewicz
Recheck-request: rebase=main,iol-unit-amd64-testing,iol-unit-arm64-testing

Can DPDK AF_XDP PMD support macvlan driver in container?

2024-10-23 Thread Xiaohua Wang
Hi, dpdk-testpmd with AF_XDP PMD can't work on p1p1 (macvlan) interface, but can work on eth0 (veth) interface. And is there a method to enable AF_XDP PMD to work in XDP SKB mode? Or add one option to set "SKB mode" in AF_XDP Options ? ===

[PATCH v4 03/42] eventdev: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/eventdev/rte_event_eth_rx_adapter.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v4 22/42] net/af_xdp: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/af_xdp/rte_eth_af_xdp.c | 12 ++-- 1 file changed, 6 insert

[PATCH v4 18/42] crypto/caam_jr: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/crypto/caam_jr/caam_jr_uio.c | 5 +++-- 1 file changed, 3 insertions(+)

[PATCH v4 13/42] bus/pci: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/pci/bsd/pci.c| 8 drivers/bus/pci/linux/pci.c

[PATCH v4 10/42] bus/cdx: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/cdx/cdx.c | 2 +- drivers/bus/cdx/cdx_vfio.c | 13 +++

[PATCH v4 15/42] bus/vmbus: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/vmbus/linux/vmbus_bus.c | 7 --- drivers/bus/vmbus/linux/vmbu

[PATCH v4 17/42] common/mlx5: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/common/mlx5/linux/mlx5_nl.c | 12 ++-- drivers/common/mlx5/mlx5

[PATCH v4 19/42] dma/idxd: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/dma/idxd/idxd_bus.c | 15 --- 1 file changed, 8 insertions(

[PATCH v4 26/42] net/enetfec: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/enetfec/enet_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v4 25/42] net/dpaa2: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 d

[PATCH v4 20/42] net/af_packet: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/af_packet/rte_eth_af_packet.c | 2 +- 1 file changed, 1 insertion(+

[PATCH v4 21/42] net/bnxt: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/bnxt/bnxt_stats.c | 2 +- drivers/net/bnxt/rte_pm

[PATCH v4 36/42] net/tap: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/tap/rte_eth_tap.c | 28 ++-- drivers/net/ta

[PATCH v4 33/42] net/mlx5: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/mlx5/hws/mlx5dr_matcher.c | 2 +- drivers/net/mlx5/linux/mlx5_

[PATCH v4 35/42] net/sfc: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/sfc/sfc_flow.c| 2 +- drivers/net/sfc/sfc_flow_tunnel.c |

[PATCH v4 40/42] vdpa/ifc: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/vdpa/ifc/ifcvf_vdpa.c | 23 --- 1 file changed, 12

[PATCH v4 41/42] vdpa/mlx5: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH v4 37/42] net/vhost: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/vhost/rte_eth_vhost.c | 6 +++--- 1 file changed, 3 insertions(+),

[PATCH v4 42/42] vdpa/sfc: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/vdpa/sfc/sfc_vdpa_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v4 09/42] bpf: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/bpf/bpf_load_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH v4 05/42] node: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/node/kernel_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH v4 00/42] replace strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. It is better to use rte_strerror() instead of strerror(). In this patchset, only the libs and drivers are modified. chang log: v3->v4 fix ci error v2->v3 drop patch "telemetry: replace strerror" due to compile fail v1-v2 fix ci err

[PATCH v4 07/42] power: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/power/guest_channel.c| 7 --- lib/power/power_kvm_vm.c

[PATCH v4 04/42] latency: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/latencystats/rte_latencystats.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v4 01/42] devtools: forbid use of strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. rte_strerror() has been provided in DPDK to replace it. Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- devtools/checkpatches.sh | 8 1 file changed, 8 insertions(+) diff --git a/devto

[PATCH v4 11/42] bus/dpaa: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/dpaa/base/fman/fman.c | 2 +- drivers/bus/dpaa/dpaa_bus.c | 2

[PATCH v4 12/42] bus/fslmc: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/fslmc/fslmc_vfio.c | 12 ++-- 1 file changed, 6 insertions(

[PATCH v4 14/42] bus/vdev: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/bus/vdev/vdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 16/42] common/cnxk: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/common/cnxk/roc_dev.c | 6 -- drivers/common/cnxk/roc_model.c | 4

[PATCH v4 32/42] net/mlx4: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/mlx4/mlx4.c| 14 +++--- drivers/net/mlx4/mlx4_ethde

[PATCH v4 23/42] net/bonding: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/bonding/bonding_testpmd.c | 4 ++-- drivers/net/bonding/rte_eth_b

[PATCH v4 31/42] net/memif: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/memif/memif_socket.c | 4 ++-- drivers/net/memif/rte_eth_memif.c

[PATCH v4 30/42] net/ixgbe: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/ixgbe/ixgbe_testpmd.c | 12 ++-- 1 file changed, 6 insertio

[PATCH v4 28/42] net/i40e: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/i40e/i40e_testpmd.c | 42 - 1 file

[PATCH v4 27/42] net/failsafe: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/failsafe/failsafe.c | 8 drivers/net/failsafe/fail

[PATCH v4 24/42] net/dpaa: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/dpaa/dpaa_ethdev.c | 4 ++-- drivers/net/dpaa/fmlib/fm_lib.c | 6 +

[PATCH v4 29/42] net/ice: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/ice/ice_testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v4 06/42] pdump: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/pdump/rte_pdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[PATCH v4 39/42] raw/ifpga: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/raw/ifpga/afu_pmd_n3000.c | 5 +++-- drivers/raw/ifpga/base/ifpga

[PATCH v4 08/42] vhost: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/vhost/fd_man.c | 7 --- lib/vhost/socket.c | 13 ++--

[PATCH v4 34/42] net/qede: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/qede/qede_regs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[PATCH v4 38/42] net/virtio: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- drivers/net/virtio/virtio_user/vhost_kernel.c | 8 +++--- .../net/virtio/virti

[PATCH v7 2/3] crypto/qat: add sm2 encryption/decryption function

2024-10-23 Thread Arkadiusz Kusztal
This commit adds SM2 elliptic curve based asymmetric encryption and decryption to the Intel QuickAssist Technology PMD. Signed-off-by: Arkadiusz Kusztal --- doc/guides/rel_notes/release_24_11.rst| 4 + .../common/qat/qat_adf/icp_qat_fw_mmp_ids.h | 3 + drivers/common/qat/qat_adf/qa

[PATCH v7 0/3] add ec points to sm2 op

2024-10-23 Thread Arkadiusz Kusztal
In the case when PMD cannot support the full process of the SM2, but elliptic curve computation only, additional fields are needed to handle such a case. v2: - rebased against the 24.11 code v3: - added feature flag - added QAT patches - added test patches v4: - replaced feature flag with capabili

[PATCH 1/3] net/ena: upgrade driver version to 2.11.0

2024-10-23 Thread shaibran
From: Shai Brandes Upgrade ENA driver version to 2.11.0. Signed-off-by: Shai Brandes --- drivers/net/ena/ena_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 1dec54fb58..1a652b09ac 100644 --- a/driver

[PATCH 0/3] net/ena: ena release 2.11.0

2024-10-23 Thread shaibran
From: Shai Brandes Dear all, Please find attached the patches for our upcoming release. We welcome and appreciate any feedback you may have. Thank you in advance. Best regards, Shai Brandes Shai Brandes (3): net/ena: upgrade driver version to 2.11.0 net/ena: support malformed Rx descriptor e

Re: [PATCH v1] doc: update supported MEV TS version for CPFL

2024-10-23 Thread Bruce Richardson
On Tue, Oct 08, 2024 at 11:43:13AM +, Soumyadeep Hore wrote: > Current MEV TS IPU support FW version 1.6. Hence, > updating the same in documentation > > Signed-off-by: Soumyadeep Hore > --- Acked-by: Bruce Richardson Applied to dpdk-next-net-intel Thanks, /Bruce

Re: [PATCH v4 0/4] updates for net/ice driver

2024-10-23 Thread Bruce Richardson
On Tue, Oct 22, 2024 at 05:39:40PM +0100, Bruce Richardson wrote: > This patchset contains a set of updates for the ice driver, a number of > which are in the area of the "rte_tm" APIs for Tx scheduling. > > These patches were previously submitted as part of a larger set[1], but > separating them

[PATCH v7 3/3] app/test: add test sm2 C1/Kp test cases

2024-10-23 Thread Arkadiusz Kusztal
This commit adds tests cases to be used when C1 or kP elliptic curve points need to be computed. Signed-off-by: Arkadiusz Kusztal --- app/test/test_cryptodev_asym.c | 138 - app/test/test_cryptodev_sm2_test_vectors.h | 112 - 2 files changed, 246 i

[PATCH v7 1/3] cryptodev: add ec points to sm2 op

2024-10-23 Thread Arkadiusz Kusztal
In the case when PMD cannot support the full process of the SM2, but elliptic curve computation only, additional fields are needed to handle such a case. Points C1, kP therefore were added to the SM2 crypto operation struct. Signed-off-by: Arkadiusz Kusztal --- doc/guides/rel_notes/release_24_1

[PATCH 2/3] net/ena: support malformed Rx descriptor error

2024-10-23 Thread shaibran
From: Shai Brandes Add validation check for packet descriptor consistency and improve reset logic and stats tracking. Signed-off-by: Shai Brandes Reviewed-by: Amit Bernstein --- doc/guides/rel_notes/release_24_11.rst | 1 + drivers/net/ena/ena_ethdev.c | 29 +++-

[PATCH 3/3] net/ena: remove outdated devarg documentation

2024-10-23 Thread shaibran
From: Shai Brandes Removed obsolete devarg enforcing normal llq policy, as its logic is now handled by the new `llq_policy` devarg. Signed-off-by: Shai Brandes --- doc/guides/nics/ena.rst | 4 1 file changed, 4 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst i

[PATCH v4 02/42] eal: use rte strerror

2024-10-23 Thread Dengdui Huang
The function strerror() is insecure in a multi-thread environment. This patch uses rte_strerror() to replace it. Cc: sta...@dpdk.org Signed-off-by: Dengdui Huang Acked-by: Chengwen Feng Acked-by: Morten Brørup --- lib/eal/common/eal_common_fbarray.c | 2 +- lib/eal/common/eal_common_opti

RedHat QE's test result against DPDK release candidate 24.11-rc1

2024-10-23 Thread Yanghang Liu
I tested below 18 scenarios on the RHEL 9 host and didn't find any new dpdk issues. - VM with device assignment(PF) throughput testing(1G hugepage size): PASS - VM with device assignment(PF) throughput testing(2M hugepage size) : PASS - VM with device assignment(VF) throughput testi

[PATCH v2 1/1] event/octeontx: resolve possible integer overflow

2024-10-23 Thread Hanumanth Pothula
The last argument passed to ssovf_parsekv() is an unsigned char*, but it is accessed as an integer. This can lead to an integer overflow. Hence, make ensure the argument is accessed as a char and for better error handling use strtol instead of atoi. Signed-off-by: Hanumanth Pothula --- v2: use

RE: [RFC] net/ice: add devargs to control link update

2024-10-23 Thread Ye, MingjinX
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, October 22, 2024 11:23 PM > To: Ye, MingjinX > Cc: dev@dpdk.org > Subject: Re: [RFC] net/ice: add devargs to control link update > > On Tue, 22 Oct 2024 06:20:43 + > Mingjin Ye wrote: > > > +static int > > +ice_pars

[PATCH] net/hns3: fix inaccurate error log

2024-10-23 Thread Jie Hai
If register number obtained from firmware is different from the register list driver hold, an error log occurs. The incorrect use of `&&` makes this log inaccurate, change it to `&`. Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[v5 00/42] DPAA2 specific patches

2024-10-23 Thread vanshika . shukla
From: Vanshika Shukla This series includes: -> Fixes and enhancements for NXP DPAA2 drivers. -> Upgrade with MC version 10.37 -> Enhancements in DPDMUX code -> Fixes for coverity issues reported V2 changes: Fixed the broken compilation for clang in: "net/dpaa2: dpdmux single flow/multipl

[v5 09/42] net/dpaa2: support link state for eth interfaces

2024-10-23 Thread vanshika . shukla
From: Rohit Raj This patch add support to update the duplex value along with link status and link speed after setting the link UP. Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_ethdev.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/dpaa

[v5 08/42] bus/fslmc: upgrade with MC version 10.37

2024-10-23 Thread vanshika . shukla
From: Gagandeep Singh This patch upgrades the MC version compaitbility to 10.37 Signed-off-by: Gagandeep Singh Signed-off-by: Apeksha Gupta --- doc/guides/platform/dpaa2.rst | 4 +- drivers/bus/fslmc/mc/dpio.c | 94 - drivers/bus/fslmc/mc/fsl_dpcon.h

[v5 16/42] bus/fslmc: dynamic IOVA mode configuration

2024-10-23 Thread vanshika . shukla
From: Jun Yang IOVA mode should not be configured with CFLAGS because 1) User can perform "--iova-mode" to configure IOVA. 2) IOVA mode is determined by negotiation between multiple devices. Eal is in VA mode only when all devices support VA mode. Hence: 1) Remove RTE_LIBRTE_DPAA2_USE_PHYS_IO

[v5 14/42] bus/fslmc: enhance MC VFIO multiprocess support

2024-10-23 Thread vanshika . shukla
From: Jun Yang MC VFIO is not registered into RTE VFIO. Primary process registers MC vfio mp action for secondary process to request. VFIO/Container handlers are provided via CMSG. Primary process is responsible to connect MC VFIO group to container. In addition, MC VFIO code is refactored accor

[v5 18/42] bus/fslmc: create dpaa2 device with it's object

2024-10-23 Thread vanshika . shukla
From: Jun Yang Create dpaa2 device with object instead of object ID. Assign each dpaa2 object with it's container. Signed-off-by: Jun Yang --- drivers/bus/fslmc/bus_fslmc_driver.h | 39 drivers/bus/fslmc/fslmc_vfio.c | 3 +- drivers/bus/fslmc/portal/dpaa

[v5 19/42] bus/fslmc: fix coverity issue

2024-10-23 Thread vanshika . shukla
From: Rohit Raj Fix Issues reported by NXP Internal Coverity. Fixes: 64f131a82fbe ("bus/fslmc: add qbman debug") Cc: hemant.agra...@nxp.com Cc: sta...@dpdk.org Signed-off-by: Rohit Raj --- drivers/bus/fslmc/qbman/qbman_debug.c | 49 +-- 1 file changed, 32 insertions(+)

[v5 21/42] bus/fslmc: introduce VFIO DMA mapping API for fslmc

2024-10-23 Thread vanshika . shukla
From: Jun Yang Declare rte_fslmc_vfio_mem_dmamap and rte_fslmc_vfio_mem_dmaunmap in bus_fslmc_driver.h for external usage. Signed-off-by: Jun Yang --- drivers/bus/fslmc/bus_fslmc_driver.h | 7 ++- drivers/bus/fslmc/fslmc_bus.c| 2 +- drivers/bus/fslmc/fslmc_vfio.c

[v5 36/42] net/dpaa2: check IOVA before sending MC command

2024-10-23 Thread vanshika . shukla
From: Jun Yang Convert VA to IOVA and check IOVA before sending parameter to MC. Invalid IOVA of parameter sent to MC will cause system stuck and not be recovered unless power reset. IOVA is not checked in data path because: 1) MC is not involved and error can be recovered. 2) IOVA check impacts

[v5 34/42] net/dpaa2: fix memory corruption in TM

2024-10-23 Thread vanshika . shukla
From: Gagandeep Singh driver was reserving memory in an array for 8 queues only, but it can support many more queues configuration. This patch fixes the memory corruption issue by defining the queue array with correct size. Fixes: 72100f0dee21 ("net/dpaa2: support level 2 in traffic management"

[v5 33/42] net/dpaa2: add flow support for IPsec AH and ESP

2024-10-23 Thread vanshika . shukla
From: Jun Yang Support AH/ESP flow with SPI field. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 528 - 1 file changed, 385 insertions(+), 143 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c index 018ffec

[v5 38/42] net/dpaa2: store drop priority in mbuf

2024-10-23 Thread vanshika . shukla
From: Apeksha Gupta store drop priority in mbuf from fd. Signed-off-by: Sachin Saxena Signed-off-by: Apeksha Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/net/dpaa2/dpaa2_rxtx.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw

[v5 35/42] net/dpaa2: support software taildrop

2024-10-23 Thread vanshika . shukla
From: Gagandeep Singh Add software based taildrop support. Signed-off-by: Gagandeep Singh --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 24 +++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslm

[v5 42/42] net/dpaa2: dpdmux single flow/multiple rules support

2024-10-23 Thread vanshika . shukla
From: Jun Yang Support multiple extractions as well as hardware descriptions instead of hard code. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.h | 1 + drivers/net/dpaa2/dpaa2_flow.c | 22 -- drivers/net/dpaa2/dpaa2_mux.c| 393 --- dr

RE: [EXT] Re: [v4 23/42] net/dpaa2: flow API refactor

2024-10-23 Thread Vanshika Shukla
This seems ok. > -Original Message- > From: Stephen Hemminger > Sent: Wednesday, October 23, 2024 6:23 AM > To: Vanshika Shukla > Cc: dev@dpdk.org; Hemant Agrawal ; Sachin > Saxena ; Jun Yang > Subject: [EXT] Re: [v4 23/42] net/dpaa2: flow API refactor > > Caution: This is an external

[v5 41/42] net/dpaa2: add support for C-VLAN and MAC

2024-10-23 Thread vanshika . shukla
From: Vanshika Shukla This patch adds the support for DPDMUX_METHOD_C_VLAN_MAC method which implements DPDMUX based on C-VLAN and MAC address. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 2 +- drivers/net/dpaa2/mc/fsl_dpdmux.h | 16 2 files changed,

[v5 37/42] net/dpaa2: improve DPDMUX error behavior settings

2024-10-23 Thread vanshika . shukla
From: Sachin Saxena compatible with MC v10.36 or later Signed-off-by: Sachin Saxena --- drivers/net/dpaa2/dpaa2_mux.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index f4b8d481af..13de7d5783 10064

[v5 02/42] net/dpaa2: support PTP packet one-step timestamp

2024-10-23 Thread vanshika . shukla
From: Vanshika Shukla This patch adds PTP one-step timestamping support. dpni_set_single_step_cfg() MC API is utilized with offset provided to insert correction time on frame. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 61 +++ drivers/net

[v5 05/42] bus/fslmc: change dpcon close as internal symbol

2024-10-23 Thread vanshika . shukla
From: Hemant Agrawal This patch marks dpcon_close API as internal symbol and also adds it into version map file Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/mc/fsl_dpcon.h | 3 ++- drivers/bus/fslmc/version.map| 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/driv

[v5 03/42] net/dpaa2: add proper MTU debugging print

2024-10-23 Thread vanshika . shukla
From: Apeksha Gupta This patch add proper debug info for check information of max-pkt-len and configured params. also store MTU Signed-off-by: Apeksha Gupta Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/d

[v5 01/42] net/dpaa2: enhance Tx scatter-gather mempool

2024-10-23 Thread vanshika . shukla
From: Jun Yang Create TX SG pool only for primary process and lookup this pool in secondary process. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 46 +++- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethde

[v5 06/42] bus/fslmc: add close API to close DPAA2 device

2024-10-23 Thread vanshika . shukla
From: Rohit Raj Add rte_fslmc_close API to close all the DPAA2 devices while closing the DPDK application. Signed-off-by: Rohit Raj --- drivers/bus/fslmc/bus_fslmc_driver.h | 3 + drivers/bus/fslmc/fslmc_bus.c| 13 drivers/bus/fslmc/fslmc_vfio.c | 87 +++

[v5 11/42] net/dpaa2: add new PMD API to check dpaa platform version

2024-10-23 Thread vanshika . shukla
From: Jun Yang This patch add support to check the DPAA platform type from the applications. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 16 +--- drivers/net/dpaa2/dpaa2_flow.c| 5 ++--- drivers/net/dpaa2/rte_pmd_dpaa2.h | 4 drivers/net/dpaa2/version

[v5 07/42] net/dpaa2: dpdmux: add support for CVLAN

2024-10-23 Thread vanshika . shukla
From: Vanshika Shukla This patch adds the support for DPDMUX_METHOD_C_VLAN_MAC method which implements DPDMUX based on C-VLAN and MAC address. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 59 +-- drivers/net/dpaa2/mc/fsl_dpdmux.h | 18 +

[v5 10/42] net/dpaa2: update DPNI link status method

2024-10-23 Thread vanshika . shukla
From: Brick Yang If SFP module is not connected to the port and flow control is configured using flow control API, link will show DOWN even after connecting the SFP module and fiber cable. This issue cannot be reproduced if only SFP module is connected and fiber cable is disconnected before conf

[v5 12/42] bus/fslmc: improve BMAN buffer acquire

2024-10-23 Thread vanshika . shukla
From: Jun Yang Ignore reserved bits of BMan acquire response number. Signed-off-by: Jun Yang --- drivers/bus/fslmc/qbman/qbman_portal.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/q

[v5 15/42] bus/fslmc: free VFIO group FD in case of add group failure

2024-10-23 Thread vanshika . shukla
From: Rohit Raj Free vfio_group_fd if add group fails to avoid resource leak Signed-off-by: Rohit Raj --- drivers/bus/fslmc/fslmc_vfio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 63e84cb4d8..3d46

[v5 28/42] net/dpaa2: protocol inside tunnel distribution

2024-10-23 Thread vanshika . shukla
From: Jun Yang Control flow by protocols inside tunnel. The tunnel flow items applied by application are in order from outer to inner. The inner items start from tunnel item, something like vxlan, GRE etc. For example: flow create 0 ingress pattern ipv4 / vxlan / ipv6 / end actions pf /

[v5 30/42] net/dpaa2: add GTP flow support

2024-10-23 Thread vanshika . shukla
From: Jun Yang Configure gtp flow to support RSS and FS. Check FAF of parser result to identify GTP frame. Signed-off-by: Jun Yang --- drivers/net/dpaa2/dpaa2_flow.c | 172 ++--- 1 file changed, 138 insertions(+), 34 deletions(-) diff --git a/drivers/net/dpaa2/dpaa

[v5 24/42] net/dpaa2: dump Rx parser result

2024-10-23 Thread vanshika . shukla
From: Jun Yang export DPAA2_PRINT_RX_PARSER_RESULT=1 is used to dump RX parser result and frame attribute flags generated by hardware parser and soft parser. The parser results are converted to big endian described in RM. The areas set by soft parser are dump as well. Signed-off-by: Jun Yang --

[v5 27/42] net/dpaa2: add VXLAN distribution support

2024-10-23 Thread vanshika . shukla
From: Jun Yang Extracts from vxlan header for distribution. The vxlan header is set by soft parser code in soft parser context located from offset 43 of parser results: vxlan protocol is identified by vxlan bit of frame attribute flags. The parser result extracts are added for this functionali

  1   2   3   >