Re: [PATCH v2 1/1] net/cnxk: mark invalid MAC address if it doesn't exist

2025-05-28 Thread Nithin Dabilpuram
Acked-by: Nithin Dabilpuram On Wed, May 28, 2025 at 11:51 AM wrote: > > From: Sunil Kumar Kori > > When user requests to configure a device which is already in > configured state then first device gets resets to default and > then reconfigured with latest parameters. >

Re: [RFC PATCH 1/4] ethdev: add support to provide link type

2025-04-16 Thread Nithin Dabilpuram
On Wed, Apr 16, 2025 at 5:33 AM Stephen Hemminger wrote: > > On Tue, 15 Apr 2025 12:38:18 +0530 > Nithin Dabilpuram wrote: > > > On Fri, Apr 4, 2025 at 6:16 AM Stephen Hemminger > > wrote: > > > > > > On Thu, 3 Apr 2025 12:

Re: [RFC PATCH 1/4] ethdev: add support to provide link type

2025-04-15 Thread Nithin Dabilpuram
On Fri, Apr 4, 2025 at 6:16 AM Stephen Hemminger wrote: > > On Thu, 3 Apr 2025 12:38:34 +0530 > Nithin Dabilpuram wrote: > > > /** > > * A structure used to retrieve link-level information of an Ethernet port. > > */ > > @@

[RFC PATCH 3/4] common/cnxk: provide port type from fwdata

2025-04-04 Thread Nithin Dabilpuram
Port type data is made available by firmware via CGX lmac specific firmware data. Extract the same. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h | 12 drivers/common/cnxk/roc_mbox.h| 4 ++-- drivers/common/cnxk/roc_nix.h | 1 + drivers/common

[RFC PATCH 2/4] common/cnxk: support to get speed cap from fwdata

2025-04-03 Thread Nithin Dabilpuram
Speed capability currently is updating as all speeds capable. Get it from CGX fw data supported link modes instead. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h | 54 ++ drivers/common/cnxk/roc_mbox.h | 24 +++--- drivers/common/cnxk

[RFC PATCH 1/4] ethdev: add support to provide link type

2025-04-03 Thread Nithin Dabilpuram
Linux kernel netdevs. Signed-off-by: Nithin Dabilpuram --- lib/ethdev/ethdev_trace.h| 7 + lib/ethdev/ethdev_trace_points.c | 3 +++ lib/ethdev/rte_ethdev.c | 44 ++-- lib/ethdev/rte_ethdev.h | 28 lib/ethdev

[RFC PATCH 4/4] net/cnxk: report link type along with link status

2025-04-03 Thread Nithin Dabilpuram
Provide link type along with link status get. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 21 - drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/cnxk/cnxk_link.c | 10 +++--- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a

[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

[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 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 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 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 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 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

[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 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 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 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 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

[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 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

[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 inser

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[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 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 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 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 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 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 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 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(-) di

[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 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 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 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 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 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 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 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 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 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 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

[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

[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 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 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 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 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 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 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 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 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 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

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

2025-01-31 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

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

2025-01-31 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 33/34] net/cnxk: update MC address list configure API

2025-01-31 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 32/34] common/cnxk: change the error log to a debug log

2025-01-31 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 31/34] common/cnxk: add stats reset for inline device

2025-01-31 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 30/34] common/cnxk: fix inbound IPsec sa setup

2025-01-31 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(-) di

[PATCH 29/34] net/cnxk: fix of NIX send header L3 type

2025-01-31 Thread Nithin Dabilpuram
From: Rahul Bhansali For small packets less than 55 bytes, SQ error interrupts are observed. When checksum offload flag is enabled and mbuf ol_flags are not set, then default L3 type will be set to IPv6 in vector processing. Based on this, HW will still validate for minimum header size and genera

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

2025-01-31 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 27/34] event/cnxk: inline IPsec Rx support for cn20k

2025-01-31 Thread Nithin Dabilpuram
From: Rahul Bhansali Inline IPsec Rx support for cn20k Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cn20k_worker.h | 111 -- drivers/net/cnxk/cn20k_rx.h | 5 +- 2 files changed, 109 insertions(+), 7 deletions(-) diff --git a/drivers/event/cnxk/cn20k

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

2025-01-31 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 | 737 -- 2 files changed, 689 insertions(+), 52 deletions(-) diff --git a/drivers/event/cnxk/cn20

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

2025-01-31 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 24/34] common/cnxk: update CPT RXC time config mbox for cn20k

2025-01-31 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 21/34] common/cnxk: add NPC action2 support

2025-01-31 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 23/34] net/cnxk: support for cn20k inline IPsec session

2025-01-31 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 22/34] common/cnxk: support for NPC inline rule for cn20k

2025-01-31 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

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

2025-01-31 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 19/34] common/cnxk: add NIX inline reassembly profile config

2025-01-31 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 18/34] common/cnxk: support for inline inbound queue

2025-01-31 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 14/34] common/cnxk: support for inline IPsec for cn20k

2025-01-31 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 17/34] common/cnxk: add mbox define for inline profile support

2025-01-31 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 16/34] common/cnxk: update feature flags for cn20k

2025-01-31 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 15/34] common/cnxk: support inline SA context invalidate

2025-01-31 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 13/34] common/cnxk: add cn20k meta pkt structs

2025-01-31 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 12/34] common/cnxk: support for cn20k IPsec session

2025-01-31 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

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

2025-01-31 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 08/34] common/cnxk: add CPT cn20k device enumeration

2025-01-31 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 09/34] common/cnxk: add CPT LMT defines

2025-01-31 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 +++

  1   2   3   4   5   6   7   8   9   10   >