RE: [PATCH v2] common/cnxk: fix atomic load in batch ops

2025-01-22 Thread Ashwin Sekhar T K
Rao Kottidi ; Harman Kalra > ; Ashwin Sekhar T K > Cc: Nawal Kishor > Subject: RE: [PATCH v2] common/cnxk: fix atomic load in batch ops > > > > > -Original Message- > > From: Nawal Kishor > > Sent: Monday, December 2, 2024 10:28 PM > &

[PATCH] common/cnxk: fix pool buffer size in opaque mode

2023-10-13 Thread Ashwin Sekhar T K
From: Kommula Shiva Shankar Pool buffer size in opaque mode must always be set to 0. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Kommula Shiva Shankar Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 6 +- 1 file

[PATCH v2] common/cnxk: fix bp_ena clear while disabling aura

2023-08-24 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin

[PATCH] common/cnxk: fix bp_ena clearing during pool tear down

2023-08-24 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin

[PATCH] common/cnxk: explicitly clear aura bp ena on cleanup

2023-08-22 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we needs explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 2 ++ 1 file changed, 2

[PATCH] mempool/cnxk: support CNF10KA SoC

2023-08-22 Thread Ashwin Sekhar T K
From: Sibaranjan Pattnayak Support for CNF10KA SoC by adding its PCI device ID. Signed-off-by: Sibaranjan Pattnayak Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mempool/cnxk/cnxk_mempool.c b/drivers

[PATCH 3/3] mempool/cnxk: fix alloc from non-EAL pthreads

2023-08-22 Thread Ashwin Sekhar T K
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch allocation cannot be used as we won't have a dedicated alloc buffer for the thread. So, fallback to bulk alloc in such cases. Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: As

[PATCH 2/3] mempool/cnxk: fix free from non-EAL pthreads

2023-08-22 Thread Ashwin Sekhar T K
n Kalra Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers/mempool/cnxk/cn10k_mempool_ops.c index 41b755b52b..2e46204c8d 100644 --- a/drivers/mempool/cnxk/cn10

[PATCH 1/3] mempool/cnxk: limit usage of async allocs

2023-08-22 Thread Ashwin Sekhar T K
led, the additional caching due to asynchronous allocation will be limited. A limitation has been added to cnxk documentation warning the users to adjust the local cache sizes accordingly. Signed-off-by: Ashwin Sekhar T K --- doc/guides/nics/cnxk.rst | 18 drivers/mempool/c

[PATCH] mempool/cnxk: limit usage of async allocs

2023-08-22 Thread Ashwin Sekhar T K
led, the additional caching due to asynchronous allocation will be limited. A limitation has been added to cnxk documentation warning the users to adjust the local cache sizes accordingly. Signed-off-by: Ashwin Sekhar T K --- doc/guides/nics/cnxk.rst | 18 drivers/mempool/c

[PATCH 2/2] mempool/cnxk: fix alloc from non-EAL pthreads

2023-07-30 Thread Ashwin Sekhar T K
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch allocation cannot be used as we won't have a dedicated alloc buffer for the thread. So, fallback to bulk alloc in such cases. Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: As

[PATCH 1/2] mempool/cnxk: limit usage of async allocs

2023-07-30 Thread Ashwin Sekhar T K
led, the additional caching due to asynchronous allocation will be limited. A limitation has been added to cnxk documentation warning the users to adjust the local cache sizes accordingly. Signed-off-by: Ashwin Sekhar T K --- doc/guides/nics/cnxk.rst | 18 drivers/mempool/c

RE: [EXT] [PATCH 1/1] app/test: resolve mbuf_test application failure

2023-07-03 Thread Ashwin Sekhar T K
Acked-by: Ashwin Sekhar T K Ashwin Sekhar T K > -Original Message- > From: Rakesh Kudurumalla > Sent: Wednesday, April 26, 2023 2:58 PM > To: Olivier Matz > Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; Nithin > Kumar Dabilpuram ; Rakesh Kudurumalla > > S

RE: [EXT] [PATCH v3] common/cnxk/roc_npa: unlock mbox in error cases

2023-06-20 Thread Ashwin Sekhar T K
Acked-by: Ashwin Sekhar T K > -Original Message- > From: Thierry Herbelot > Sent: Tuesday, June 20, 2023 3:14 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; Nithin Kumar Dabilpuram > ; Satha Koteswara Rao Kottidi > ; Jerin Jacob Kollanuk

RE: [EXT] [PATCH] common/cnxk/roc_npa: fix npa_aura_fini

2023-06-20 Thread Ashwin Sekhar T K
Hi Thierry, Could you please add the same fix in npa_aura_pool_fini() as well. Thanks Ashwin Sekhar T K > -Original Message- > From: Thierry Herbelot > Sent: Tuesday, June 20, 2023 2:22 PM > To: dev@dpdk.org > Cc: Thierry Herbelot ; Thomas Monjalon > ; Nithi

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

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

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

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

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

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

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

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

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

2023-05-26 Thread Ashwin Sekhar T K
Avoid waiting indefinitely when counting batch alloc pointers by adding a wait timeout. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h| 15 +-- drivers/mempool/cnxk/cn10k_mempool_ops.c | 3 ++- 2 files changed, 11 insertions(+), 7 deletions(-) diff

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

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

[PATCH v2 2/5] common/cnxk: add NPA aura create/destroy ROC APIs

2023-05-23 Thread Ashwin Sekhar T K
Add ROC APIs which allows to create NPA auras independently and attach it to an existing NPA pool. Also add API to destroy NPA auras independently. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 219 drivers/common/cnxk/roc_npa.h | 4

[PATCH v2 3/5] mempool/cnxk: add NPA aura range get/set APIs

2023-05-23 Thread Ashwin Sekhar T K
set API. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 35 - drivers/common/cnxk/roc_npa.h | 6 + drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk

[PATCH v2 3/5] mempool/cnxk: add NPA aura range get/set APIs

2023-05-23 Thread Ashwin Sekhar T K
set API. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 35 - drivers/common/cnxk/roc_npa.h | 6 + drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk

[PATCH v2 4/5] mempool/cnxk: add hwpool ops

2023-05-23 Thread Ashwin Sekhar T K
using this pool. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211 drivers/mempool/cnxk/cnxk_mempool.h | 4 + drivers/mempool/cnxk/meson.build| 1 + 3 files changed, 216 insertions(+) create mode 100644 drivers/mempool

[PATCH v2 5/5] mempool/cnxk: add support for exchanging mbufs between pools

2023-05-23 Thread Ashwin Sekhar T K
. * rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two rte_mempool where the range check is disabled. Signed-off-by: Ashwin Sekhar T K --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf.in| 1 + drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63

[PATCH v2 3/5] mempool/cnxk: add NPA aura range get/set APIs

2023-05-23 Thread Ashwin Sekhar T K
set API. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 35 - drivers/common/cnxk/roc_npa.h | 6 + drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk

[PATCH v2 1/5] mempool/cnxk: use pool config to pass flags

2023-05-23 Thread Ashwin Sekhar T K
Use lower bits of pool_config to pass flags specific to cnxk mempool PMD ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 24 drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++--- drivers/net/cnxk/cnxk_ethdev_sec.c | 25

[PATCH v2 3/5] mempool/cnxk: add NPA aura range get/set APIs

2023-05-23 Thread Ashwin Sekhar T K
set API. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 35 - drivers/common/cnxk/roc_npa.h | 6 + drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk

[PATCH v2 1/5] mempool/cnxk: use pool config to pass flags

2023-05-23 Thread Ashwin Sekhar T K
Use lower bits of pool_config to pass flags specific to cnxk mempool PMD ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 24 drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++--- drivers/net/cnxk/cnxk_ethdev_sec.c | 25

[PATCH v2 5/5] mempool/cnxk: add support for exchanging mbufs between pools

2023-05-23 Thread Ashwin Sekhar T K
. * rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two rte_mempool where the range check is disabled. Signed-off-by: Ashwin Sekhar T K --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf.in| 1 + drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63

[PATCH v2 4/5] mempool/cnxk: add hwpool ops

2023-05-23 Thread Ashwin Sekhar T K
using this pool. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211 drivers/mempool/cnxk/cnxk_mempool.h | 4 + drivers/mempool/cnxk/meson.build| 1 + 3 files changed, 216 insertions(+) create mode 100644 drivers/mempool

[PATCH v2 2/5] common/cnxk: add NPA aura create/destroy ROC APIs

2023-05-23 Thread Ashwin Sekhar T K
Add ROC APIs which allows to create NPA auras independently and attach it to an existing NPA pool. Also add API to destroy NPA auras independently. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 219 drivers/common/cnxk/roc_npa.h | 4

[PATCH v2 1/5] mempool/cnxk: use pool config to pass flags

2023-05-23 Thread Ashwin Sekhar T K
Use lower bits of pool_config to pass flags specific to cnxk mempool PMD ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 24 drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++--- drivers/net/cnxk/cnxk_ethdev_sec.c | 25

[PATCH v2 2/5] common/cnxk: add NPA aura create/destroy ROC APIs

2023-05-23 Thread Ashwin Sekhar T K
Add ROC APIs which allows to create NPA auras independently and attach it to an existing NPA pool. Also add API to destroy NPA auras independently. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 219 drivers/common/cnxk/roc_npa.h | 4

[PATCH] doc: fix typo in graph lib doc

2023-05-03 Thread Ashwin Sekhar T K
Fix typo in graph lib doc. Fixes: 4dc6d8e63c168 ("doc: add graph library guide") Signed-off-by: Ashwin Sekhar T K --- doc/guides/prog_guide/graph_lib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/prog_guide/graph_lib.rst b/doc/guides/

[PATCH 5/5] mempool/cnxk: add support for exchanging mbufs between pools

2023-04-11 Thread Ashwin Sekhar T K
. * rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two rte_mempool where the range check is disabled. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63 - drivers/mempool/cnxk/cnxk_mempool.h | 4 ++ drivers/mempool/cnxk/meson.build

[PATCH 4/5] mempool/cnxk: add hwpool ops

2023-04-11 Thread Ashwin Sekhar T K
using this pool. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211 drivers/mempool/cnxk/cnxk_mempool.h | 4 + drivers/mempool/cnxk/meson.build| 1 + 3 files changed, 216 insertions(+) create mode 100644 drivers/mempool

[PATCH 3/5] mempool/cnxk: add NPA aura range get/set APIs

2023-04-11 Thread Ashwin Sekhar T K
set API. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 35 - drivers/common/cnxk/roc_npa.h | 6 + drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk

[PATCH 2/5] common/cnxk: add NPA aura create/destroy ROC APIs

2023-04-11 Thread Ashwin Sekhar T K
Add ROC APIs which allows to create NPA auras independently and attach it to an existing NPA pool. Also add API to destroy NPA auras independently. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 219 drivers/common/cnxk/roc_npa.h | 4

[PATCH 1/5] mempool/cnxk: use pool config to pass flags

2023-04-11 Thread Ashwin Sekhar T K
Use lower bits of pool_config to pass flags specific to cnxk mempool PMD ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 24 drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++--- drivers/net/cnxk/cnxk_ethdev_sec.c | 25

[PATCH 0/5] add hwpools and support exchanging mbufs between pools

2023-04-11 Thread Ashwin Sekhar T K
pools must be disabled while exchanging mbufs. Ashwin Sekhar T K (5): mempool/cnxk: use pool config to pass flags common/cnxk: add NPA aura create/destroy ROC APIs mempool/cnxk: add NPA aura range get/set APIs mempool/cnxk: add hwpool ops mempool/cnxk: add support for exchanging mbufs

[PATCH] mempool/cnxk: avoid indefinite wait when counting batch alloc pointers

2023-04-11 Thread Ashwin Sekhar T K
Avoid waiting indefinitely when counting batch alloc pointers by adding a wait timeout. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h| 15 +-- drivers/mempool/cnxk/cn10k_mempool_ops.c | 3 ++- 2 files changed, 11 insertions(+), 7 deletions(-) diff

[PATCH] common/cnxk: update ROC erratas

2023-04-11 Thread Ashwin Sekhar T K
Update the models where errata IPBUNPA-37480 is applicable. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_errata.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_errata.h b/drivers/common/cnxk/roc_errata.h index 2d15e639b7

[PATCH] common/cnxk: synchronize NPA aura bitmap accesses

2023-01-06 Thread Ashwin Sekhar T K
Ensure that all cnxk mempool aura bitmap accesses are synchronized. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_idev.c | 1 + drivers/common/cnxk/roc_idev_priv.h | 1 + drivers/common/cnxk/roc_npa.c | 29 - drivers/common/cnxk/roc_npa.h

[PATCH v1 3/3] net/cnxk: add debug check for number of Tx descriptors

2022-11-16 Thread Ashwin Sekhar T K
When SG2 descriptors are used and more than 5 segments are present, in certain combination of segments the number of descriptors required will be greater than 16. In debug builds, add an assert to capture this scenario. Signed-off-by: Ashwin Sekhar T K --- drivers/net/cnxk/cn10k_tx.h | 20

[PATCH v1 2/3] net/cnxk: add sg2 descriptor support

2022-11-16 Thread Ashwin Sekhar T K
Add support for creating packets with segments from different pools. This is enabled by using the SG2 descriptors. SG2 descriptors are only used when the segment is to be freed by the HW. Signed-off-by: Ashwin Sekhar T K --- drivers/net/cnxk/cn10k_tx.h | 161

[PATCH v1 1/3] net/cnxk: rework no-fast-free offload handling

2022-11-16 Thread Ashwin Sekhar T K
Add a separate routine to handle no-fast-free offload in vector Tx path for multisegmented packets. Signed-off-by: Ashwin Sekhar T K --- drivers/net/cnxk/cn10k_tx.h | 124 +--- 1 file changed, 59 insertions(+), 65 deletions(-) diff --git a/drivers/net/cnxk

[PATCH v3] mempool/cnxk: fix mempool destroy for empty pools

2022-11-07 Thread Ashwin Sekhar T K
In scenarios where rte_mempool_free() is called immediately after rte_mempool_create_empty(), the NPA pool will not be created. In such cases the free path should not call roc_npa_pool_destroy(). Fixes: bbf19e89b87c ("mempool/cnxk: add generic operations") Signed-off-by: Ashwin

[PATCH v2] mempool/cnxk: destroy NPA pool only if its created

2022-11-07 Thread Ashwin Sekhar T K
In scenarios where rte_mempool_free() is called immediately after rte_mempool_create_empty(), the NPA pool will not be created. In such cases the free path should not call roc_npa_pool_destroy(). Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool_ops.c | 8 1 file

[PATCH v1] mempool/cnxk: destroy NPA pool only if its created

2022-11-07 Thread Ashwin Sekhar T K
In scenarios where rte_mempool_free() is called immediately after rte_mempool_create_empty(), the NPA pool will not be created. In such cases the free path should not call roc_npa_pool_destroy(). Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool_ops.c | 8 1 file

[PATCH 2/2] crypto/ipsec_mb: enable IPsec on Arm platform

2022-07-27 Thread Ashwin Sekhar T K
Acked-by: Ashwin Sekhar T K

[PATCH v5 1/1] crypto/openssl: support aes cmac operations

2022-07-18 Thread Ashwin Sekhar T K
Extend openssl crypto PMD to support AES CMAC operations. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 138 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++ 3 files changed

[PATCH v5 0/1] crypto/openssl: add aes cmac support

2022-07-18 Thread Ashwin Sekhar T K
Add support for aes cmac operations. v2: * Added support for openssl 3.0 v3: * Fixed checkpatch warnings. v4: * Fixed further checkpatch warnings. v5: * Fixed duplicated preprocessor checks. Ashwin Sekhar T K (1): crypto/openssl: support aes cmac operations drivers/crypto/openssl

[PATCH v4 1/1] crypto/openssl: support aes cmac operations

2022-07-18 Thread Ashwin Sekhar T K
Extend openssl crypto PMD to support AES CMAC operations. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++ 3 files changed

[PATCH v4 0/1] crypto/openssl: add aes cmac support

2022-07-18 Thread Ashwin Sekhar T K
Add support for aes cmac operations. v2: * Added support for openssl 3.0 v3: * Fixed checkpatch warnings. v4: * Fixed more checkpatch warnings. Ashwin Sekhar T K (1): crypto/openssl: support aes cmac operations drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl

[PATCH v3 1/1] crypto/openssl: support aes cmac operations

2022-07-18 Thread Ashwin Sekhar T K
Extend openssl crypto PMD to support AES CMAC operations. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++ 3 files changed

[PATCH v3 0/1] crypto/openssl: add aes cmac support

2022-07-18 Thread Ashwin Sekhar T K
Add support for aes cmac operations. v2: * Added support for openssl 3.0 v3: * Fixed checkpatch warnings. Ashwin Sekhar T K (1): crypto/openssl: support aes cmac operations drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 142

[PATCH v2 1/1] crypto/openssl: support aes cmac operations

2022-07-17 Thread Ashwin Sekhar T K
Extend openssl crypto PMD to support AES CMAC operations. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++ 3 files changed

[PATCH v2 0/1] crypto/openssl: add aes cmac support

2022-07-17 Thread Ashwin Sekhar T K
Add support for aes cmac operations. v2: * Added support for openssl 3.0 Ashwin Sekhar T K (1): crypto/openssl: support aes cmac operations drivers/crypto/openssl/openssl_pmd_private.h | 14 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++- drivers/crypto/openssl

[PATCH v2] crypto/ipsec_mb: enable support for arm64

2022-06-30 Thread Ashwin Sekhar T K
Enable support for arm64 architecture in ipsec_mb. x86 specific code is conditionally compiled only for x86 architecture builds. Other architectures will be unsupported. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/ipsec_mb/ipsec_mb_private.c | 7 +++ drivers/crypto/ipsec_mb

[PATCH] crypto/openssl: support cmac operations

2022-06-10 Thread Ashwin Sekhar T K
Extend openssl crypto PMD to support CMAC operations. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/openssl/openssl_pmd_private.h | 9 ++ drivers/crypto/openssl/rte_openssl_pmd.c | 88 drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 + 3 files changed, 117

[PATCH] crypto/ipsec_mb: enable compilation for non x86 arch

2022-06-10 Thread Ashwin Sekhar T K
Enable compilation for non x86 architectures by conditionally compiling x86 specific code. Signed-off-by: Ashwin Sekhar T K --- drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c b/drivers/crypto/ipsec_mb

[PATCH] drivers: wait optionally when counting allocated pointers

2022-06-10 Thread Ashwin Sekhar T K
When counting the batch allocated pointers in cnxk mempool driver, currently it always waits for in-flight batch operations to finish. Add a provision to make this waiting optional. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h| 7 +-- drivers/mempool/cnxk

[PATCH] mempool/cnxk: avoid batch op free for empty mempools

2022-04-28 Thread Ashwin Sekhar T K
Batch op data is initialized inside mempool alloc. But in case of empty mempools, the alloc function is not called and hence the initialization of batch op data is also not done. So ensure the validity of batch op data inside mempool free. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool

[PATCH v3] mempool/cnxk: fix bug in batch alloc issue failure path

2022-02-17 Thread Ashwin Sekhar T K
Fix bug in batch alloc issue failure path where it was enqueuing invalid pointers back to the pool. The code should rightly be falling back to default dequeue path in such cases. Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- drive

[PATCH v2] mempool/cnxk: fix bug in batch alloc issue failure path

2022-02-17 Thread Ashwin Sekhar T K
Fix bug in batch alloc issue failure path where it was enqueing invalid pointers back to the pool. The code should rightly be falling back to default dequeue path in such cases. Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- drive

[PATCH] mempool/cnxk: fix bug in batch alloc issue failure path

2022-02-10 Thread Ashwin Sekhar T K
Fix bug in batch alloc issue failure path. Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempoo

[PATCH] common/cnxk: enable lmtst burst for batch free

2021-12-04 Thread Ashwin Sekhar T K
Use lmtst burst when more than 15 pointers is requested to be freed. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 86 +++ 1 file changed, 68 insertions(+), 18 deletions(-) diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk

[PATCH 3/3] common/cnxk: wait for xaq pool to fill

2021-11-29 Thread Ashwin Sekhar T K
Wait for XAQ pool to get filled with the freed pointers before proceeding. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_sso.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c index 45ff16ca0e..c1aa3324be

[PATCH 2/3] common/cnxk: wait for sqb pool to fill

2021-11-29 Thread Ashwin Sekhar T K
Wait for SQB pool to get filled with the freed pointers before proceeding. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index

[PATCH 1/3] common/cnxk: add support to wait for pool filling

2021-11-29 Thread Ashwin Sekhar T K
Add roc_npa_aura_op_available_wait() API which can be used to wait until an NPA pool gets filled up to a certain count of pointers. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/common

[PATCH 0/3] Wait for NPA pools to get filled

2021-11-29 Thread Ashwin Sekhar T K
NPA could take some time to reflect the pointers which has been freed into pools. So, after populating a pool with pointers, wait until the populated pointers are reflected in the pool. Ashwin Sekhar T K (3): common/cnxk: add support to wait for pool filling common/cnxk: wait for sqb pool to

[PATCH] common/cnxk: update cpu directive in NPA assembly code

2021-11-29 Thread Ashwin Sekhar T K
Update the CPU directive in ROC NPA assembly code snippets. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h index

[PATCH] common/cnxk: use cas with release semantics for batch alloc

2021-11-29 Thread Ashwin Sekhar T K
Before issuing the batch alloc, we clear the first word of cache lines so that NPA can update the status. Make sure that this line clear is flushed before the batch alloc is issued. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_io.h | 12 drivers/common/cnxk

[PATCH] common/cnxk: ensure ROC cache alignment of NPA stack size

2021-11-29 Thread Ashwin Sekhar T K
stack size requested is a multiple of 128B. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c index efcb7582eb..75fc22442f 100644 --- a/drivers/common/cnxk/roc_npa.c

[dpdk-dev] [PATCH v2] common/cnxk: align NPA stack to ROC cache line size

2021-09-17 Thread Ashwin Sekhar T K
ol HW operations") Signed-off-by: Ashwin Sekhar T K Acked-by: Jerin Jacob --- drivers/common/cnxk/roc_npa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c index d064d125c1..a0d2cc8f19 100644 --- a/drivers/c

[dpdk-dev] [PATCH v3] devtools: add acronyms in dictionary for commit checks

2021-09-17 Thread Ashwin Sekhar T K
rk Pool Allocator NPC -> Network Parser and CAM Unit ROC -> Rest Of Chip RQ -> Receive Queue RVU -> Resource Virtualization Unit SQ -> Send Queue SSO -> Schedule Synchronize Order Unit TIM -> Timer Unit Signed-off-by: Ashwin Sekhar T K --- devtools/words-case.t

[dpdk-dev] [PATCH v2] devtools: add acronyms in dictionary for commit checks

2021-09-17 Thread Ashwin Sekhar T K
etwork Parser and CAM Unit ROC -> Rest Of Chip RVU -> Resource Virtualization Unit SSO -> Schedule Synchronize Order Unit TIM -> Timer Unit Signed-off-by: Ashwin Sekhar T K --- devtools/words-case.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git a/devtools/words-c

[dpdk-dev] [PATCH v1] devtools: add acronyms in dictionary for commit checks

2021-09-17 Thread Ashwin Sekhar T K
etwork Parser and CAM Unit ROC -> Rest Of Chip RVU -> Resource Virtualization Unit SSO -> Schedule Syncronize Order Unit TIM -> Timer Unit Signed-off-by: Ashwin Sekhar T K --- devtools/words-case.txt | 8 1 file changed, 8 insertions(+) diff --git a/devtools/words-case.tx

[dpdk-dev] [PATCH v2 2/2] common/cnxk: avoid using stashing option of stype

2021-09-17 Thread Ashwin Sekhar T K
Avoid using stashing option of stype in NPA in cn10k-a0 stepping. This is a workaround for a HW Errata due to which NPA stashing operations will never result in writing the data into L2 cache. But instead, it will be written into LLC. Signed-off-by: Ashwin Sekhar T K Acked-by: Jerin Jacob

[dpdk-dev] [PATCH v2 1/2] common/cnxk: update roc models

2021-09-17 Thread Ashwin Sekhar T K
Make following updates to roc models. - Use consistent upper/lower case in macros defining different ROC models. - Add api to detect cn96 Cx stepping. - Make all current cn10k models as A0 stepping. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_model.c | 51

[dpdk-dev] [PATCH 2/2] common/cnxk: avoid using stashing option of stype

2021-08-30 Thread Ashwin Sekhar T K
Avoid using stashing option of stype in NPA in cn10k-a0 stepping. This is a workaround for a HW Errata due to which NPA stashing operations will never result in writing the data into L2 cache. But instead, it will be written into LLC. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk

[dpdk-dev] [PATCH 1/2] common/cnxk: update roc models

2021-08-30 Thread Ashwin Sekhar T K
Update roc models. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_model.c | 51 +++ drivers/common/cnxk/roc_model.h | 53 + 2 files changed, 67 insertions(+), 37 deletions(-) diff --git a/drivers/common/cnxk/roc_model.c

[dpdk-dev] [PATCH] common/cnxk: avoid using stype STSTP in batch alloc

2021-08-30 Thread Ashwin Sekhar T K
Avoid using stype STSTP in batch alloc. This is a workaround for errata IPBUNPA-37480. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_nix_queue.c | 5 + drivers/common/cnxk/roc_nix_tm_ops.c | 8 drivers/common/cnxk/roc_npa.h| 2 +- 3 files changed, 14

[dpdk-dev] [PATCH] common/cnxk: align npa stack to roc cache line size

2021-08-30 Thread Ashwin Sekhar T K
NPA stack should be aligned to ROC cache line size. Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations") Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npa.c

[dpdk-dev] [PATCH v4 11/11] mempool/cnxk: add cn10k batch dequeue op

2021-04-08 Thread Ashwin Sekhar T K
Add the implementation for Marvell CN10k mempool batch dequeue op. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 72 +++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers

[dpdk-dev] [PATCH v4 10/11] mempool/cnxk: add cn10k get count op

2021-04-08 Thread Ashwin Sekhar T K
Add the implementation for Marvell CN10k get count op. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers/mempool/cnxk

[dpdk-dev] [PATCH v4 09/11] mempool/cnxk: add cn10k batch enqueue op

2021-04-08 Thread Ashwin Sekhar T K
Add the implementation for Marvell CN10k mempool batch enqueue op. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers

[dpdk-dev] [PATCH v4 08/11] mempool/cnxk: add batch op init

2021-04-08 Thread Ashwin Sekhar T K
: Ashwin Sekhar T K --- doc/guides/mempool/cnxk.rst | 5 + drivers/mempool/cnxk/cn10k_mempool_ops.c | 147 ++- drivers/mempool/cnxk/cnxk_mempool.h | 2 + drivers/mempool/cnxk/cnxk_mempool_ops.c | 11 +- 4 files changed, 160 insertions(+), 5 deletions(-) diff

[dpdk-dev] [PATCH v4 07/11] mempool/cnxk: add cn10k mempool ops

2021-04-08 Thread Ashwin Sekhar T K
Add Marvell CN10k mempool ops and implement CN10k mempool alloc. CN10k has 64 bytes L1D cache line size. Hence the CN10k mempool alloc does not make the element size an odd multiple L1D cache line size as NPA requires the element sizes to be multiples of 128 bytes. Signed-off-by: Ashwin Sekhar T

[dpdk-dev] [PATCH v4 06/11] mempool/cnxk: add cn9k optimized mempool enqueue/dequeue

2021-04-08 Thread Ashwin Sekhar T K
Add Marvell CN9k mempool enqueue/dequeue. Marvell CN9k supports burst dequeue which allows to dequeue up to 32 pointers using pipelined casp instructions. Signed-off-by: Pavan Nikhilesh Signed-off-by: Ashwin Sekhar T K --- doc/guides/mempool/cnxk.rst | 4 +++ drivers/mempool/cnxk

[dpdk-dev] [PATCH v4 05/11] mempool/cnxk: add cn9k mempool ops

2021-04-08 Thread Ashwin Sekhar T K
Add Marvell CN9k mempool ops and implement CN9k mempool alloc which makes sure that the element size always occupy odd number of cachelines to ensure even distribution among of elements among L1D cache sets. Signed-off-by: Pavan Nikhilesh Signed-off-by: Ashwin Sekhar T K --- drivers/mempool

[dpdk-dev] [PATCH v4 04/11] mempool/cnxk: register plt init callback

2021-04-08 Thread Ashwin Sekhar T K
Register the CNXk mempool plt init callback which will set the appropriate mempool ops to be used for the platform. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool_ops.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mempool/cnxk

[dpdk-dev] [PATCH v4 03/11] mempool/cnxk: add generic ops

2021-04-08 Thread Ashwin Sekhar T K
Add generic CNXk mempool ops which will enqueue/dequeue from pool one element at a time. Signed-off-by: Pavan Nikhilesh Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 26 drivers/mempool/cnxk/cnxk_mempool_ops.c | 171 drivers

[dpdk-dev] [PATCH v4 02/11] mempool/cnxk: add device probe/remove

2021-04-08 Thread Ashwin Sekhar T K
Add the implementation for CNXk mempool device probe and remove. Signed-off-by: Pavan Nikhilesh Signed-off-by: Ashwin Sekhar T K --- doc/guides/mempool/cnxk.rst | 23 + drivers/mempool/cnxk/cnxk_mempool.c | 132 +++- 2 files changed, 151 insertions(+), 4

[dpdk-dev] [PATCH v4 01/11] mempool/cnxk: add build infra and doc

2021-04-08 Thread Ashwin Sekhar T K
. Andreev M: Andrew Rybchenko F: drivers/mempool/bucket/ +Marvell cnxk +M: Ashwin Sekhar T K +M: Pavan Nikhilesh +F: drivers/mempool/cnxk/ +F: doc/guides/mempool/cnxk.rst + Marvell OCTEON TX2 M: Jerin Jacob M: Nithin Dabilpuram diff --git a/doc/guides/mempool/cnxk.rst b/doc/guides/mempool

[dpdk-dev] [PATCH v4 00/11] Add Marvell CNXK mempool driver

2021-04-08 Thread Ashwin Sekhar T K
/octeontx2 driver once the 'CNXK' drivers are feature complete for Marvell CN9K SoC. Depends-on: series-16131 ("Add Marvell CNXK common driver") v4: - Added a bullet point for cnxk mempool driver in release_21_05.rst. Ashwin Sekhar T K (11): mempool/cnxk: add build infra and doc

[dpdk-dev] [PATCH v3 11/11] mempool/cnxk: add cn10k batch dequeue op

2021-04-06 Thread Ashwin Sekhar T K
Add the implementation for Marvell CN10k mempool batch dequeue op. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 72 +++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers

[dpdk-dev] [PATCH v3 10/11] mempool/cnxk: add cn10k get count op

2021-04-06 Thread Ashwin Sekhar T K
Add the implementation for Marvell CN10k get count op. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers/mempool/cnxk

  1   2   >