RE: [PATCH] net/ice: fix ACL filter uninit

2025-02-24 Thread Li, HongboX
> -Original Message- > From: Mingjin Ye > Sent: Friday, February 21, 2025 4:25 PM > To: dev@dpdk.org > Cc: Ye, MingjinX ; Richardson, Bruce > ; Burakov, Anatoly > > Subject: [PATCH] net/ice: fix ACL filter uninit > > The pf has enabled the ACL filter, so uninit is no longer limited to th

Re: [PATCH v13 00/28] [v13]drivers/net Add Support mucse N10 Pmd Driver

2025-02-24 Thread Stephen Hemminger
On Thu, 20 Feb 2025 13:06:30 +0800 "11" wrote: > Hi Stephen, > > For the release thing, that be ok. > > But for Debian 12 with MUSDK it be failed, do I need to fixed it , > The ability when I used it that I had been memset it. But the compile-tool > is warning it, > hw->phy_port_ids[idx] = abi

Re: [PATCH v6 2/2] net/af_xdp: Refactor af_xdp_tx_zc

2025-02-24 Thread Stephen Hemminger
On Sat, 1 Feb 2025 00:10:21 +0100 Ariel Otilibili wrote: > @ -559,21 +582,12 @@ af_xdp_tx_zc(void *queue, struct rte_mbuf **bufs, > uint16_t nb_pkts) > mbuf = bufs[i]; > > if (mbuf->pool == umem->mb_pool) { > - if (!xsk_ring_prod__reserve(&txq->

[PATCH 3/6] config: allow faster instruction sets to be used with MSVC

2025-02-24 Thread Andre Muezerie
Up to now MSVC has being used with the default mode, which uses SSE2 instructions for scalar floating-point and vector calculations. https://learn.microsoft.com/en-us/cpp/build/reference/arch-x64?view=msvc-170 This patch allows users to specify the CPU for which the generated code should be optimi

[PATCH 0/6] allow faster instruction sets to be used with MSVC

2025-02-24 Thread Andre Muezerie
Up to now MSVC has being used with the default mode, which uses SSE2 instructions for scalar floating-point and vector calculations. https://learn.microsoft.com/en-us/cpp/build/reference/arch-x64?view=msvc-170 This series allows users to specify the CPU for which the generated code should be optim

[PATCH 2/6] eal: only use numbers as align parameters for MSVC

2025-02-24 Thread Andre Muezerie
After the instruction set updates for MSVC the error below poped up: ..\lib\eal\x86\include\rte_vect.h(82): error C2059: syntax error: '(' The issue is that MSVC does not allow __rte_aligned(RTE_X86_ZMM_SIZE). It only accepts numbers that are power of 2. So, even though RTE_X86_ZMM_SIZE represent

[PATCH 4/6] drivers/net: make compatible with instruction set updates for MSVC

2025-02-24 Thread Andre Muezerie
Top level 'cc_avx2_flags' was created and holds the correct flags depending on the compiler used. Signed-off-by: Andre Muezerie --- drivers/net/bnxt/meson.build | 2 +- drivers/net/enic/meson.build | 2 +- drivers/net/intel/i40e/meson.build | 2 +- drivers/net/intel/iavf/meson.build

[PATCH 5/6] acl: make compatible with instruction set updates for MSVC

2025-02-24 Thread Andre Muezerie
Top level 'cc_avx2_flags' was created and holds the correct flags depending on the compiler used. File meson.build was updated to handle the correct AVX512 flags depending on compiler used. Signed-off-by: Andre Muezerie --- lib/acl/meson.build | 16 +--- 1 file changed, 9 insertions

[PATCH 1/6] eal: make compatible with instruction set updates for MSVC

2025-02-24 Thread Andre Muezerie
After the instruction set updates for MSVC the error below poped up: ../lib/eal/common/rte_random.c(6): fatal error C1083: Cannot open include file: 'x86intrin.h': No such file or directory The fix is to not include header x86intrin.h with MSVC. Signed-off-by: Andre Muezerie --- lib/eal/co

Re: [PATCH v7 1/4] bus/pci: fix registration of PCI device

2025-02-24 Thread Stephen Hemminger
On Wed, 12 Feb 2025 18:38:32 +0200 Shani Peretz wrote: > When registering a new PCI device, the device->name field stored > the user-provided string from devargs (e.g., "08:00.0" or ":08:00.0"). > This approach led to inconsistencies when registering new devices. > > This patch fix this issu

[PATCH 6/6] member: make compatible with instruction set updates for MSVC

2025-02-24 Thread Andre Muezerie
File meson.build was updated to handle the correct AVX512 flags depending on compiler used. Signed-off-by: Andre Muezerie --- lib/member/meson.build | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/member/meson.build b/lib/member/meson.build index f92cbb7f25..8

[PATCH 2/3] net/mlx5: add jump FDB Rx flag

2025-02-24 Thread Suanming Mou
When jump FDB Rx is supported, flow will be able to jump from FDB Tx to FDB Rx, in that case the dest action in FDB Rx table should support FDB Tx as well. Signed-off-by: Suanming Mou --- drivers/common/mlx5/mlx5_devx_cmds.c | 8 drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/net/m

[PATCH 0/2] net/xsc: Resolve warnings from PVS

2025-02-24 Thread Renyong Wan
This patch series resolves two warnings reported by PVS studio. --- Renyong Wan (2): net/xsc: check possible null pointer dereference net/xsc: suppress assign the same value warning drivers/net/xsc/xsc_rx.c| 6 +- drivers/net/xsc/xsc_vfio_mbox.c | 2 +- 2 files changed, 6 inserti

[PATCH 1/2] net/xsc: check possible null pointer dereference

2025-02-24 Thread Renyong Wan
This issue was reported by PVS studio, described as: https://pvs-studio.com/en/docs/warnings/v522/ Signed-off-by: Rong Qian Signed-off-by: Renyong Wan --- drivers/net/xsc/xsc_rx.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/xsc/xsc_rx.c b/drivers/net/xsc

[PATCH 2/2] net/xsc: suppress assign the same value warning

2025-02-24 Thread Renyong Wan
This issue was reported by PVS studio, described as: https://pvs-studio.com/en/docs/warnings/v1048/ This warning is harmless since both structs have the same size. The tool is just being annoying, so we should suppress it. Signed-off-by: Rong Qian Signed-off-by: Renyong Wan --- drivers/net/xsc

[PATCH 1/3] net/mlx5/hws: support jump FDB Rx

2025-02-24 Thread Suanming Mou
Before FW introduced the JUMP_FDB_RX action feature, jump from FDB Tx to Rx is not allowed. JUMP_FDB_RX feature introduces the internal loopback for Tx case and allow the REG C0 C1 B be preserved as well. This commit adds the JUMP_FDB_RX cap bit check and use JUMP_FDB_RX instead of FT for dest tab

[PATCH 0/3] net/mlx5: support jump FDB Rx

2025-02-24 Thread Suanming Mou
Before FW introduced the JUMP_FDB_RX action feature, jump from FDB Tx to Rx is not allowed. JUMP_FDB_RX feature introduces the internal loopback for Tx case and allow the REG C0 C1 B be preserved as well. This series adds the jump from FDB Tx to FDB Rx support and allows RSS action in FDB domain r

[PATCH] net/nfp: fix get represetor wrong port stats

2025-02-24 Thread Chaoyong He
From: Long Wu The 'ipackets'/'opackets' are used to record the number of packets on represetor port received/sent. But the code does not consider concurrent calculation of 'ipackets'/'opackets'. If multiple queues are calculated 'ipackets'/'opackets' simultaneously, it will result in incorrect re

[PATCH 3/3] net/mlx5: allow FDB RSS

2025-02-24 Thread Suanming Mou
RSS can be used in FDB Rx rules when JUMP_FDB_RX action to allow jump from FDB Tx to FDB Rx table. Different with NIC RSS, FDB RSS will not do the internal implicit metadata copy. This commit enables the FDB RSS if JUMP_FDB_RX is supported. Signed-off-by: Suanming Mou --- drivers/net/mlx5/mlx5

[PATCH v3 0/3] Rx adapter API to add Rx queues in burst

2025-02-24 Thread Shijith Thotton
This patch series introduces the rte_event_eth_rx_adapter_queues_add() API, allowing multiple Rx queues to be added to an Rx adapter in a single burst. This enhancement benefits applications that require bulk addition of Rx queues. To support this API, a new internal eventdev PMD operation for a

[PATCH v3 1/3] eventdev/eth_rx: add API to burst add queues to Rx adapter

2025-02-24 Thread Shijith Thotton
This patch introduces a new API, rte_event_eth_rx_adapter_queues_add(), to allow bulk addition of multiple Rx queues in the eventdev Rx adapter. The existing rte_event_eth_rx_adapter_queue_add() API supports adding multiple queues by specifying rx_queue_id = -1, but it lacks the ability to apply

[PATCH v3 2/3] event/cnxk: enable PMD op to burst add queues to Rx adapter

2025-02-24 Thread Shijith Thotton
Implemented PMD support for the eventdev PMD operation to burst add queues to the Rx adapter. Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 82 -- drivers/event/cnxk/cn20k_eventdev.c | 195 --- drivers/event/cnxk/cn9k_eventdev.c

[PATCH v3 3/3] test/event: unit test to burst add Rx queues to adapter

2025-02-24 Thread Shijith Thotton
Added unit test for adding queues to Rx adapter in bursts using rte_event_eth_rx_adapter_queues_add(). Signed-off-by: Shijith Thotton --- app/test/test_event_eth_rx_adapter.c | 86 1 file changed, 86 insertions(+) diff --git a/app/test/test_event_eth_rx_adapter.c b

Re: [PATCH 1/8] net/mlx5/hws: introduce capability for unified mode

2025-02-24 Thread Raslan Darawsheh
Hi, From: Hamdan Igbaria Sent: Sunday, February 16, 2025 1:04 PM To: Hamdan Agbariya; Slava Ovsiienko; NBU-Contact-Thomas Monjalon (EXTERNAL); Suanming Mou; Dariusz Sosnowski; Bing Zhao; Ori Kam; Matan Azrad Cc: dev@dpdk.org; Erez Shitrit Subject: [PATCH 1/8] net/mlx5/hws: introduce capability f

Re: [PATCH] power: use hugepage memory for queue list entry structure

2025-02-24 Thread lihuisong (C)
在 2025/2/20 17:41, Konstantin Ananyev 写道: Hi Hi all, Kindly ping for review. 在 2024/12/19 15:53, Huisong Li 写道: The queue_list_entry structure data is used in rx_callback of io path when enable PMD Power Management. However its memory is currently from normal heap memory. For better perfo

[PATCH v2 01/33] net/cnxk: allow duplicate SPI in outbound IPsec

2025-02-24 Thread Nithin Dabilpuram
Since outbound IPsec is not really dependent on SPI, allow duplicate SPI in outbound inline IPsec sessions. Signed-off-by: Nithin Dabilpuram --- v2: - Rebased on top of latest code - Fixed build issue with 26/33 - Updated release notes drivers/net/cnxk/cn10k_ethdev_sec.c | 14 +++--- d

[PATCH v2 02/33] common/cnxk: remove unused param in SA init

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Remove unused param in SA init. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 5 ++--- drivers/common/cnxk/cnxk_security.h | 3 +-- drivers/common/cnxk/roc_ie_ot.c | 4 +--- drivers/common/cnxk/roc_ie_ot.h | 3 +-- drivers/common/cnxk/

[PATCH v2 04/33] common/cnxk: move CTX defines to common

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph CTX defines are common for all cases using CPT CTX. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.h | 1 + drivers/common/cnxk/roc_cpt.h | 16 drivers/common/cnxk/roc_ie_ot.h | 16 drivers/net/cnxk/cn10k_rxtx.h

[PATCH v2 03/33] net/cnxk: remove unnecessary delay on stats read

2025-02-24 Thread Nithin Dabilpuram
Remove unnecessary delay on security stats read as application is expected to poll if stats are not updated as expected. It is expected that there would be a delay in stats to show up like any other ethdev stats get API. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c |

[PATCH v2 05/33] common/cnxk: add cn20k CPT result struct

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph CPT result structure is same as in cn10k. Add entry for cn20k. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/hw/cpt.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h index 47df3fbf9f..b308a18f0

[PATCH v2 06/33] common/cnxk: enable IE with cn9k and cn10k only

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph IE engines are present only with cn9k and cn10k. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 43 +++ drivers/common/cnxk/roc_cpt.h | 3 +++ 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/drivers/common/cnx

[PATCH v2 08/33] common/cnxk: add CPT cn20k device enumeration

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Add CPT cn20k device enumeration. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_constants.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/cnxk/roc_constants.h b/drivers/common/cnxk/roc_constants.h index 67cd74b28a..ac492651de 100644 --- a/dr

[PATCH v2 07/33] common/cnxk: make special handling only for 9k

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph 9k would need special handling compared to 10k & 20k. Update the check to reflect the same. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/

[PATCH v2 10/33] common/cnxk: add 20k defines for IPsec

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Add 20K defines for IPsec. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 1 + drivers/common/cnxk/roc_ie_ow.c | 41 +++ drivers/common/cnxk/roc_ie_ow.h | 537 drivers/common/cnxk

[PATCH v2 11/33] common/cnxk: update default eng group for cn20k

2025-02-24 Thread Nithin Dabilpuram
CN20K does not have IE engines, hence change the default eng group for cn20k and use legacy for cn10k or older version. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt.c | 6 +++--- drivers/common/cnxk/roc_cpt.h | 10 +++--- drivers/common/cnxk/roc_nix_inl.c

[PATCH v2 09/33] common/cnxk: add CPT LMT defines

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph add CPT LMT defines Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h index c8cf9354da..ac27479371 100644 --- a/drivers/common/cnxk/roc_cpt.h +++

[PATCH v2 12/33] common/cnxk: support for cn20k IPsec session

2025-02-24 Thread Nithin Dabilpuram
Add support for cn20k IPsec session create/destroy. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 546 +++- drivers/common/cnxk/cnxk_security.h | 12 +- drivers/common/cnxk/version.map | 2 + 3 files changed, 557 insertions(+), 3 deleti

[PATCH v2 13/33] common/cnxk: add cn20k meta pkt structs

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Adds below structures for cn20k, - cpt_parse_hdr_s - cpt_rxc_sg_s - cpt_rxc_ptr_info_s Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h| 211 +--- drivers/common/cnxk/roc_cpt.h | 2 +- drivers/common/cnxk/roc_cpt_debug.

[PATCH v2 15/33] common/cnxk: support inline SA context invalidate

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Add SA context invalidate support for cn20k. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h | 11 - drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_inl.c | 37 ++- 3 files changed, 47 insertions

[PATCH v2 16/33] common/cnxk: update feature flags for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Features updated for cn20k platform. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_features.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/common/cnxk/roc_features.h b/drivers/common/cnxk/roc_features.h i

[PATCH v2 17/33] common/cnxk: add mbox define for inline profile support

2025-02-24 Thread Nithin Dabilpuram
Add mbox support for global inline profile allocation. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_mbox.h| 45 ++ drivers/common/cnxk/roc_nix_inl.c | 53 +++ 2 files changed, 85 insertions(+), 13 deletions(-) diff --git a/

[PATCH v2 14/33] common/cnxk: support for inline IPsec for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Support in NIX inline device for inbound and outbound SA init. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_cpt.h | 1 + drivers/common/cnxk/roc_nix_inl.c | 62 ++- drivers/common/cnxk/roc_nix_inl_dev.c | 22 ++ dri

[PATCH v2 20/33] common/cnxk: add API to fetch inline profile ID

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali For Inline device, add new roc API to get IPsec and reassembly profile id. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix_inl.c | 60 +++ drivers/common/cnxk/roc_nix_inl.h | 2 ++ 2 files changed, 62 insertions(+) diff --git a/d

[PATCH v2 21/33] common/cnxk: add NPC action2 support

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Add action2 config for IPsec rule. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/nix.h | 13 +++-- drivers/common/cnxk/roc_mbox.h | 1 + drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_mcam.c | 1 + 4 files changed, 14

[PATCH v2 19/33] common/cnxk: add NIX inline reassembly profile config

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Reassembly profile configuration for nix inline path. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_features.h | 6 + drivers/common/cnxk/roc_ie_ow.c| 22 +++ drivers/common/cnxk/roc_ie_ow.h| 2 + drivers/common/cnxk/roc_nix.h

[PATCH v2 23/33] net/cnxk: support for cn20k inline IPsec session

2025-02-24 Thread Nithin Dabilpuram
Add support for cn20k inline IPsec session create/destroy. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c |7 - drivers/net/cnxk/cn20k_ethdev.c | 11 + drivers/net/cnxk/cn20k_ethdev.h | 17 + drivers/net/cnxk/cn20k_ethdev_sec.c | 1182 +++

[PATCH v2 25/33] net/cnxk: store pool buffer size in lookup memory

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Store the pool buffer size in lookup memory to calculate mbuf start address for reassembly case in fastpath. Also, restructured lookup memory data per port. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_ethdev.c | 17 + drivers/net/cnxk/cn20k_rxtx.h

[PATCH v2 24/33] common/cnxk: update CPT RXC time config mbox for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Sync in CPT_RXC_TIME_CFG mbox as per new fields added for cn20k and restructure to support it. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_mbox.h| 2 ++ drivers/common/cnxk/roc_nix_inl.c | 55 +-- drivers/common/cnxk/roc_nix_i

[PATCH v2 28/33] common/cnxk: enable allmulti mode on rpm/cgx VF

2025-02-24 Thread Nithin Dabilpuram
From: Monendra Singh Kushwaha This patch enables allmulti mode on rpm/cgx vf devices. Signed-off-by: Monendra Singh Kushwaha --- .mailmap | 1 + drivers/common/cnxk/roc_mbox.h| 1 + drivers/common/cnxk/roc_nix_npc.c | 10 +++--- 3 files changed, 9 insertions(

[PATCH v2 29/33] common/cnxk: fix inbound IPsec sa setup

2025-02-24 Thread Nithin Dabilpuram
Make sure the w2 in inbound SA is set for inline IPsec have L3 header on errors. Fixes: 350b7a536a51 ("common/cnxk: enable L3 header write back in SA") Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH v2 26/33] net/cnxk: inline IPsec Rx support for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Inline IPsec Rx support for cn20k Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cn20k_worker.h | 4 +- drivers/net/cnxk/cn20k_rx.h | 736 -- 2 files changed, 688 insertions(+), 52 deletions(-) diff --git a/drivers/event/cnxk/cn20

[PATCH v2 27/33] event/cnxk: inline IPsec Rx support for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Inline IPsec Rx support for cn20k Signed-off-by: Rahul Bhansali --- doc/guides/rel_notes/release_25_03.rst | 1 + drivers/event/cnxk/cn20k_worker.h | 111 - 2 files changed, 108 insertions(+), 4 deletions(-) diff --git a/doc/guides/rel_notes

[PATCH v2 30/33] common/cnxk: add stats reset for inline device

2025-02-24 Thread Nithin Dabilpuram
From: Monendra Singh Kushwaha This patch adds support to reset inline device stats. Signed-off-by: Monendra Singh Kushwaha --- drivers/common/cnxk/roc_nix_inl.h | 1 + drivers/common/cnxk/roc_nix_inl_dev.c | 27 +++ drivers/common/cnxk/version.map | 1 + 3 f

[PATCH v2 32/33] net/cnxk: update MC address list configure API

2025-02-24 Thread Nithin Dabilpuram
From: Satha Rao Return -ENOSPC when there is no space to update the complete MC address list, without flushing the existing list of addresses. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev_ops.c | 32 ++ 1 file changed, 24 insertions(+), 8 deletions(-)

[PATCH v2 31/33] common/cnxk: change the error log to a debug log

2025-02-24 Thread Nithin Dabilpuram
From: Srujana Challa This patch updates the error log to a debug log since it is not needed. Signed-off-by: Srujana Challa --- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_inl_dev.c b/drivers/common/cnxk/

[PATCH v2 18/33] common/cnxk: support for inline inbound queue

2025-02-24 Thread Nithin Dabilpuram
In CN20k, since we have 16 Inline inbound queues possible, add support to attach inline inbound queue directly to the application instead of getting it attached to CPT PF. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_features.h | 12 + drivers/common/cnxk/roc_mbox.h

[PATCH v2 33/33] common/cnxk: move interrupt handling to platform-specific

2025-02-24 Thread Nithin Dabilpuram
From: Satha Rao This change refactors the interrupt handling to be platform-specific. Some platforms directly call ioctls, while others provide a library API for the same functionality. Moving the interrupt handling to platform-specific implementations enhances clarity and maintainability. Signe

[PATCH v2 22/33] common/cnxk: support for NPC inline rule for cn20k

2025-02-24 Thread Nithin Dabilpuram
Use UCAST_CPT in cn20k as opposed to UCAST_IPSEC in cn10k for inline IPsec rule. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h| 1 + drivers/common/cnxk/roc_npc.c | 15 +++ drivers/common/cnxk/roc_npc_mcam.c | 7 --- drivers/common

[PATCH v3 06/33] common/cnxk: enable IE with cn9k and cn10k only

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph IE engines are present only with cn9k and cn10k. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 43 +++ drivers/common/cnxk/roc_cpt.h | 3 +++ 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/drivers/common/cnx

[PATCH v3 08/33] common/cnxk: add CPT cn20k device enumeration

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Add CPT cn20k device enumeration. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_constants.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/cnxk/roc_constants.h b/drivers/common/cnxk/roc_constants.h index 67cd74b28a..ac492651de 100644 --- a/dr

[PATCH v3 14/33] common/cnxk: support for inline IPsec for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Support in NIX inline device for inbound and outbound SA init. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_cpt.h | 1 + drivers/common/cnxk/roc_nix_inl.c | 62 ++- drivers/common/cnxk/roc_nix_inl_dev.c | 22 ++ dri

[PATCH v3 15/33] common/cnxk: support inline SA context invalidate

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Add SA context invalidate support for cn20k. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h | 11 - drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_inl.c | 37 ++- 3 files changed, 47 insertions

[PATCH v3 16/33] common/cnxk: update feature flags for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Features updated for cn20k platform. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_features.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/common/cnxk/roc_features.h b/drivers/common/cnxk/roc_features.h i

[PATCH v3 17/33] common/cnxk: add mbox define for inline profile support

2025-02-24 Thread Nithin Dabilpuram
Add mbox support for global inline profile allocation. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_mbox.h| 45 ++ drivers/common/cnxk/roc_nix_inl.c | 53 +++ 2 files changed, 85 insertions(+), 13 deletions(-) diff --git a/

[PATCH v3 19/33] common/cnxk: add NIX inline reassembly profile config

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Reassembly profile configuration for nix inline path. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_features.h | 6 + drivers/common/cnxk/roc_ie_ow.c| 22 +++ drivers/common/cnxk/roc_ie_ow.h| 2 + drivers/common/cnxk/roc_nix.h

[PATCH v3 20/33] common/cnxk: add API to fetch inline profile ID

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali For Inline device, add new roc API to get IPsec and reassembly profile id. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix_inl.c | 60 +++ drivers/common/cnxk/roc_nix_inl.h | 2 ++ 2 files changed, 62 insertions(+) diff --git a/d

[PATCH v3 21/33] common/cnxk: add NPC action2 support

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Add action2 config for IPsec rule. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/nix.h | 13 +++-- drivers/common/cnxk/roc_mbox.h | 1 + drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_mcam.c | 1 + 4 files changed, 14

[PATCH v3 23/33] net/cnxk: support for cn20k inline IPsec session

2025-02-24 Thread Nithin Dabilpuram
Add support for cn20k inline IPsec session create/destroy. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c |7 - drivers/net/cnxk/cn20k_ethdev.c | 11 + drivers/net/cnxk/cn20k_ethdev.h | 17 + drivers/net/cnxk/cn20k_ethdev_sec.c | 1182 +++

[PATCH v3 05/33] common/cnxk: add cn20k CPT result struct

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph CPT result structure is same as in cn10k. Add entry for cn20k. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/hw/cpt.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h index 47df3fbf9f..b308a18f0

[PATCH v3 24/33] common/cnxk: update CPT RXC time config mbox for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Sync in CPT_RXC_TIME_CFG mbox as per new fields added for cn20k and restructure to support it. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_mbox.h| 2 ++ drivers/common/cnxk/roc_nix_inl.c | 55 +-- drivers/common/cnxk/roc_nix_i

[PATCH v3 04/33] common/cnxk: move CTX defines to common

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph CTX defines are common for all cases using CPT CTX. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.h | 1 + drivers/common/cnxk/roc_cpt.h | 16 drivers/common/cnxk/roc_ie_ot.h | 16 drivers/net/cnxk/cn10k_rxtx.h

[PATCH v3 07/33] common/cnxk: make special handling only for 9k

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph 9k would need special handling compared to 10k & 20k. Update the check to reflect the same. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/

[PATCH v3 26/33] net/cnxk: inline IPsec Rx support for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Inline IPsec Rx support for cn20k Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cn20k_worker.h | 4 +- drivers/net/cnxk/cn20k_rx.h | 736 -- 2 files changed, 688 insertions(+), 52 deletions(-) diff --git a/drivers/event/cnxk/cn20

[PATCH v3 27/33] event/cnxk: inline IPsec Rx support for cn20k

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Inline IPsec Rx support for cn20k Signed-off-by: Rahul Bhansali --- doc/guides/rel_notes/release_25_03.rst | 1 + drivers/event/cnxk/cn20k_worker.h | 111 - 2 files changed, 108 insertions(+), 4 deletions(-) diff --git a/doc/guides/rel_notes

[PATCH v3 10/33] common/cnxk: add 20k defines for IPsec

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Add 20K defines for IPsec. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 1 + drivers/common/cnxk/roc_ie_ow.c | 41 +++ drivers/common/cnxk/roc_ie_ow.h | 537 drivers/common/cnxk

[PATCH v3 29/33] common/cnxk: fix inbound IPsec sa setup

2025-02-24 Thread Nithin Dabilpuram
Make sure the w2 in inbound SA is set for inline IPsec have L3 header on errors. Fixes: 350b7a536a51 ("common/cnxk: enable L3 header write back in SA") Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3 11/33] common/cnxk: update default eng group for cn20k

2025-02-24 Thread Nithin Dabilpuram
CN20K does not have IE engines, hence change the default eng group for cn20k and use legacy for cn10k or older version. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt.c | 6 +++--- drivers/common/cnxk/roc_cpt.h | 10 +++--- drivers/common/cnxk/roc_nix_inl.c

[PATCH v3 32/33] net/cnxk: update MC address list configure API

2025-02-24 Thread Nithin Dabilpuram
From: Satha Rao Return -ENOSPC when there is no space to update the complete MC address list, without flushing the existing list of addresses. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev_ops.c | 32 ++ 1 file changed, 24 insertions(+), 8 deletions(-)

[PATCH v3 31/33] common/cnxk: change the error log to a debug log

2025-02-24 Thread Nithin Dabilpuram
From: Srujana Challa This patch updates the error log to a debug log since it is not needed. Signed-off-by: Srujana Challa --- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_inl_dev.c b/drivers/common/cnxk/

[PATCH v3 12/33] common/cnxk: support for cn20k IPsec session

2025-02-24 Thread Nithin Dabilpuram
Add support for cn20k IPsec session create/destroy. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 546 +++- drivers/common/cnxk/cnxk_security.h | 12 +- drivers/common/cnxk/version.map | 2 + 3 files changed, 557 insertions(+), 3 deleti

[PATCH v3 09/33] common/cnxk: add CPT LMT defines

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph add CPT LMT defines Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h index c8cf9354da..ac27479371 100644 --- a/drivers/common/cnxk/roc_cpt.h +++

[PATCH v3 13/33] common/cnxk: add cn20k meta pkt structs

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Adds below structures for cn20k, - cpt_parse_hdr_s - cpt_rxc_sg_s - cpt_rxc_ptr_info_s Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h| 211 +--- drivers/common/cnxk/roc_cpt.h | 2 +- drivers/common/cnxk/roc_cpt_debug.

[PATCH v3 18/33] common/cnxk: support for inline inbound queue

2025-02-24 Thread Nithin Dabilpuram
In CN20k, since we have 16 Inline inbound queues possible, add support to attach inline inbound queue directly to the application instead of getting it attached to CPT PF. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_features.h | 12 + drivers/common/cnxk/roc_mbox.h

[PATCH v3 25/33] net/cnxk: store pool buffer size in lookup memory

2025-02-24 Thread Nithin Dabilpuram
From: Rahul Bhansali Store the pool buffer size in lookup memory to calculate mbuf start address for reassembly case in fastpath. Also, restructured lookup memory data per port. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_ethdev.c | 17 + drivers/net/cnxk/cn20k_rxtx.h

[PATCH v3 22/33] common/cnxk: support for NPC inline rule for cn20k

2025-02-24 Thread Nithin Dabilpuram
Use UCAST_CPT in cn20k as opposed to UCAST_IPSEC in cn10k for inline IPsec rule. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h| 1 + drivers/common/cnxk/roc_npc.c | 15 +++ drivers/common/cnxk/roc_npc_mcam.c | 7 --- drivers/common

[PATCH v3 30/33] common/cnxk: add stats reset for inline device

2025-02-24 Thread Nithin Dabilpuram
From: Monendra Singh Kushwaha This patch adds support to reset inline device stats. Signed-off-by: Monendra Singh Kushwaha --- drivers/common/cnxk/roc_nix_inl.h | 1 + drivers/common/cnxk/roc_nix_inl_dev.c | 27 +++ drivers/common/cnxk/version.map | 1 + 3 f

[PATCH v3 28/33] common/cnxk: enable allmulti mode on rpm/cgx VF

2025-02-24 Thread Nithin Dabilpuram
From: Monendra Singh Kushwaha This patch enables allmulti mode on rpm/cgx vf devices. Signed-off-by: Monendra Singh Kushwaha --- .mailmap | 1 + drivers/common/cnxk/roc_mbox.h| 1 + drivers/common/cnxk/roc_nix_npc.c | 10 +++--- 3 files changed, 9 insertions(

[PATCH v3 02/33] common/cnxk: remove unused param in SA init

2025-02-24 Thread Nithin Dabilpuram
From: Anoob Joseph Remove unused param in SA init. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 5 ++--- drivers/common/cnxk/cnxk_security.h | 3 +-- drivers/common/cnxk/roc_ie_ot.c | 4 +--- drivers/common/cnxk/roc_ie_ot.h | 3 +-- drivers/common/cnxk/

[PATCH v3 33/33] common/cnxk: move interrupt handling to platform-specific

2025-02-24 Thread Nithin Dabilpuram
From: Satha Rao This change refactors the interrupt handling to be platform-specific. Some platforms directly call ioctls, while others provide a library API for the same functionality. Moving the interrupt handling to platform-specific implementations enhances clarity and maintainability. Signe

[PATCH v3 03/33] net/cnxk: remove unnecessary delay on stats read

2025-02-24 Thread Nithin Dabilpuram
Remove unnecessary delay on security stats read as application is expected to poll if stats are not updated as expected. It is expected that there would be a delay in stats to show up like any other ethdev stats get API. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c |

[PATCH v3 01/33] net/cnxk: allow duplicate SPI in outbound IPsec

2025-02-24 Thread Nithin Dabilpuram
Since outbound IPsec is not really dependent on SPI, allow duplicate SPI in outbound inline IPsec sessions. Signed-off-by: Nithin Dabilpuram --- v3: - Add cc stable to 29/33 patch v2: - Rebased on top of latest code - Fixed build issue with 26/33 - Updated release notes drivers/net/cnxk/cn10k

[PATCH 0/2] Wangxun bug fixes

2025-02-24 Thread Zaiyu Wang
Fix some bugs for txgbe and ngbe. Zaiyu Wang (2): net/ngbe: fix WOL and NCSI capability error net/txgbe: remove meaningless choice for SW-FW sync drivers/net/ngbe/base/ngbe_hw.c| 8 +--- drivers/net/txgbe/base/txgbe_phy.c | 8 ++-- 2 files changed, 7 insertions(+), 9 deletions(-)

RE: [PATCH v5 08/10] test-pmd: declare lcore_count atomic

2025-02-24 Thread Konstantin Ananyev
> Subject: [PATCH v5 08/10] test-pmd: declare lcore_count atomic As a nit, the changes are not in testpmd, bit in the UT. Acked-by: Konstantin Ananyev > Compiling with MSVC results in the error below: > > app/test/test_ring_perf.c(197): error C7712: address argument to atomic > operati

[PATCH 1/2] net/ngbe: fix WOL and NCSI capability error

2025-02-24 Thread Zaiyu Wang
When determining NIC's WOL and NCSI capability via sub-system ID, flag matching must be exact, not inclusive. Misidentifying WOL/NCSI capability will skip PHY configuration, causing link-up failure. Fixes: 5f1ab0d529fc ("net/ngbe: add WOL and NCSI capability") Cc: sta...@dpdk.org Signed-off-by: Z

[PATCH 2/2] net/txgbe: remove meaningless choice for SW-FW sync

2025-02-24 Thread Zaiyu Wang
Remove superfluous 'if' and 'else' for SW-FW sync. Bugzilla ID: 1581 Fixes: 5364a1ce30df ("net/txgbe: add PHY init") Cc: sta...@dpdk.org Signed-off-by: Zaiyu Wang --- drivers/net/txgbe/base/txgbe_phy.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/txgbe

[v5 0/5] vhost: add RSA support

2025-02-24 Thread Gowrishankar Muthukrishnan
This patch series supports asymmetric RSA in vhost crypto library. It also includes changes to improve vhost crypto library: * support newer QEMU versions. * fix broken vhost_crypto example application. * stabilize crypto fastpath operations. v5: - added docs. Gowrishankar Muthukrishnan (5):

[v5 1/5] vhost: skip crypto op fetch before vring init

2025-02-24 Thread Gowrishankar Muthukrishnan
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR), worker thread should not try to fetch crypto op, which would lead to memory fault. Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Acked-b

[v5 2/5] vhost: update vhost_user crypto session parameters

2025-02-24 Thread Gowrishankar Muthukrishnan
As per requirements on vhost_user spec, session id should be located at the end of session parameter. Update VhostUserCryptoSessionParam structure to support newer QEMU versions (v9). Due to additional parameters added in QEMU, received payload from QEMU would be larger than existing payload. Henc

[v5 3/5] examples/vhost_crypto: fix user callbacks

2025-02-24 Thread Gowrishankar Muthukrishnan
In order to handle new vhost user connection, use new_connection and destroy_connection callbacks. Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Akhil Goyal --- examples/vhost_crypto/main.c | 4 ++--

[v5 4/5] vhost: support asymmetric RSA crypto ops

2025-02-24 Thread Gowrishankar Muthukrishnan
Support asymmetric RSA crypto operations in vhost-user. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Akhil Goyal --- v5: - release notes --- doc/guides/rel_notes/release_25_03.rst | 3 + lib/vhost/vhost_crypto.c | 486 +++-- lib/vhost/virtio_crypto.h

  1   2   >