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

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

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

[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

[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] 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 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 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 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] 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] 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] 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 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: 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] 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 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 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 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 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 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 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] 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/

[dpdk-dev] [PATCH] hash: add neon support for thash

2017-04-27 Thread Ashwin Sekhar T K
Tested using thash_autotest Signed-off-by: Ashwin Sekhar T K --- lib/librte_hash/rte_thash.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_thash.h b/lib/librte_hash/rte_thash.h index a4886a8..60d58c6 100644 --- a/lib/librte_hash/rte_thash.h +++ b

[dpdk-dev] [PATCH] efd: support lookup using neon intrinsics

2017-04-27 Thread Ashwin Sekhar T K
* Added file lib/librte_efd/rte_efd_arm64.h to hold arm64 specific definitions * Tested using efd_autotest Signed-off-by: Ashwin Sekhar T K --- MAINTAINERS| 1 + lib/librte_efd/rte_efd.c | 22 lib/librte_efd/rte_efd_arm64.h | 76

[dpdk-dev] [PATCH v2] hash: add neon support for thash

2017-04-27 Thread Ashwin Sekhar T K
Verified the changes with thash_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Slightly modified the content of the commit message body * Added prefix [dpdk-dev] to the email subject line lib/librte_hash/rte_thash.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion

[dpdk-dev] [PATCH v2] efd: support lookup using neon intrinsics

2017-04-27 Thread Ashwin Sekhar T K
* Added file lib/librte_efd/rte_efd_arm64.h to hold arm64 specific definitions * Verified the changes with efd_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Slightly modified the content of the commit message body * Added prefix [dpdk-dev] to the email subject line

[dpdk-dev] [PATCH] sched: enable neon optimizations

2017-04-27 Thread Ashwin Sekhar T K
* Enabled CONFIG_RTE_SCHED_VECTOR for arm64 * Verified the changes with sched_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- config/defconfig_arm64-armv8a-linuxapp-gcc | 2 +- lib/librte_sched/rte_sched.c | 22 ++ 2 files changed, 23 insertions

[dpdk-dev] [PATCH 1/2] table: separate out arch specific defines from lru header

2017-04-27 Thread Ashwin Sekhar T K
* Moved all x86 related lru defines to rte_lru_x86.h while retaining all common defines in rte_lru.h * Verified the changes with table_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- lib/librte_table/Makefile | 1 + lib/librte_table/rte_lru.h | 106

[dpdk-dev] [PATCH 2/2] table: add neon version for lru strategy 3

2017-04-27 Thread Ashwin Sekhar T K
* Added new file rte_lru_arm64.h for holding arm64 specific definitions * Verified the changes with table_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- MAINTAINERS | 1 + lib/librte_table/Makefile| 2 +- lib/librte_table/rte_lru.h | 2

[dpdk-dev] [PATCH 1/2] net: add arm64 neon version of CRC compute APIs

2017-04-27 Thread Ashwin Sekhar T K
runtime * Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- MAINTAINERS | 1 + lib/librte_eal/common/include/arch/arm/rte_vect.h | 45 +++ lib/librte_net/net_crc_neon.h | 357

[dpdk-dev] [PATCH 1/2] net: add arm64 neon version of CRC compute APIs

2017-04-27 Thread Ashwin Sekhar T K
runtime * Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- MAINTAINERS | 1 + lib/librte_eal/common/include/arch/arm/rte_vect.h | 45 +++ lib/librte_net/net_crc_neon.h | 357

[dpdk-dev] [PATCH 2/2] test: add tests for arm64 CRC neon versions

2017-04-27 Thread Ashwin Sekhar T K
Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- test/test/test_crc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/test/test/test_crc.c b/test/test/test_crc.c index cd5af69..ac0e359 100644 --- a/test/test/test_crc.c +++ b/test/test

[dpdk-dev] [PATCH v2] sched: add neon optimizations

2017-04-27 Thread Ashwin Sekhar T K
* Removed setting CONFIG_RTE_SCHED_VECTOR=n from armv8a config so that the setting from common_base is taken as the default setting for armv8a * Verified the changes with sched_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Removed line CONFIG_RTE_SCHED_VECTOR=n from

[dpdk-dev] [PATCH v2 2/2] table: add neon version for lru strategy 3

2017-04-28 Thread Ashwin Sekhar T K
* Added new file rte_lru_arm64.h for holding arm64 specific definitions * Verified the changes with table_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed checkpatch warnings/errors * Fixed merge conflict in MAINTAINERS * Symlink rte_lru_arm64.h only for arm64

[dpdk-dev] [PATCH v2 1/2] table: separate out arch specific defines from lru header

2017-04-28 Thread Ashwin Sekhar T K
* Moved all x86 related lru defines to rte_lru_x86.h while retaining all common defines in rte_lru.h * Verified the changes with table_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed checkpatch warnings/errors * Symlink lib/librte_table/rte_lru_x86.h only for x86

[dpdk-dev] [PATCH v2 1/2] net: add arm64 neon version of CRC compute APIs

2017-04-28 Thread Ashwin Sekhar T K
runtime * Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed merge conflict in MAINTAINERS MAINTAINERS | 1 + lib/librte_eal/common/include/arch/arm/rte_vect.h | 45 +++ lib/librte_net/net_crc_neon.h

[dpdk-dev] [PATCH v2 2/2] test: add tests for arm64 CRC neon versions

2017-04-28 Thread Ashwin Sekhar T K
Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed checkpatch errors/warnings test/test/test_crc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/test/test/test_crc.c b/test/test/test_crc.c index cd5af69..9f2a17d 100644 --- a

[dpdk-dev] [PATCH v3] efd: support lookup using neon intrinsics

2017-05-01 Thread Ashwin Sekhar T K
* Added file lib/librte_efd/rte_efd_arm64.h to hold arm64 specific definitions * Verified the changes with efd_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Slightly modified the content of the commit message body * Added prefix [dpdk-dev] to the email subject line v3

[dpdk-dev] [PATCH v3 2/4] eal: move gcc version definition to common header

2017-05-03 Thread Ashwin Sekhar T K
moved the definition of GCC_VERSION from lib/librte_table/rte_lru.h to lib/librte_eal/common/include/rte_common.h Tested compilation on arm64 with gcc Tested compilation on x86 with gcc and clang Signed-off-by: Ashwin Sekhar T K --- v3: * Moved changes for GCC_VERSION into a separate commit

[dpdk-dev] [PATCH v3 1/4] mk: add crypto capability for generic armv8a and thunderx

2017-05-03 Thread Ashwin Sekhar T K
* RTE_MACHINE_CPUFLAG_AES * RTE_MACHINE_CPUFLAG_PMULL * RTE_MACHINE_CPUFLAG_SHA1 * RTE_MACHINE_CPUFLAG_SHA2 at run-time, the following flags can be used to detect these capabilities * RTE_CPUFLAG_AES * RTE_CPUFLAG_PMULL * RTE_CPUFLAG_SHA1 * RTE_CPUFLAG_SHA2 Signed-off-by: Ashwin Sekhar T K

[dpdk-dev] [PATCH v3 3/4] net: add arm64 neon version of CRC compute APIs

2017-05-03 Thread Ashwin Sekhar T K
Added CRC compute APIs for arm64 utilizing the pmull capability Added new file net_crc_neon.h to hold the arm64 pmull CRC implementation Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed merge conflict in MAINTAINERS v3: * Moved feature

[dpdk-dev] [PATCH v3 4/4] test: add tests for arm64 CRC neon versions

2017-05-03 Thread Ashwin Sekhar T K
Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed checkpatch errors/warnings test/test/test_crc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/test/test/test_crc.c b/test/test/test_crc.c index cd5af69..9f2a17d 100644 --- a

[dpdk-dev] [PATCH v4 1/4] mk: add crypto capability for generic armv8a and thunderx

2017-05-09 Thread Ashwin Sekhar T K
* RTE_MACHINE_CPUFLAG_AES * RTE_MACHINE_CPUFLAG_PMULL * RTE_MACHINE_CPUFLAG_SHA1 * RTE_MACHINE_CPUFLAG_SHA2 at run-time, the following flags can be used to detect these capabilities * RTE_CPUFLAG_AES * RTE_CPUFLAG_PMULL * RTE_CPUFLAG_SHA1 * RTE_CPUFLAG_SHA2 Signed-off-by: Ashwin Sekhar T K

[dpdk-dev] [PATCH v4 3/4] net: add arm64 neon version of CRC compute APIs

2017-05-09 Thread Ashwin Sekhar T K
Added CRC compute APIs for arm64 utilizing the pmull capability Added new file net_crc_neon.h to hold the arm64 pmull CRC implementation Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed merge conflict in MAINTAINERS v3: * Moved feature

[dpdk-dev] [PATCH v4 2/4] eal: move gcc version definition to common header

2017-05-09 Thread Ashwin Sekhar T K
Moved the definition of GCC_VERSION from lib/librte_table/rte_lru.h to lib/librte_eal/common/include/rte_common.h. Tested compilation on: * arm64 with gcc * x86 with gcc and clang Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jan Viktorin --- v3: * Moved changes for GCC_VERSION into a

[dpdk-dev] [PATCH v4 4/4] test: add tests for arm64 CRC neon versions

2017-05-09 Thread Ashwin Sekhar T K
Verified the changes with crc_autotest unit test case Signed-off-by: Ashwin Sekhar T K --- v2: * Fixed checkpatch errors/warnings test/test/test_crc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/test/test/test_crc.c b/test/test/test_crc.c index cd5af69..9f2a17d 100644 --- a

[dpdk-dev] [PATCH 0/6] add clang compilation support for armv8a linuxapp

2017-05-10 Thread Ashwin Sekhar T K
nal and is only done for machines which has the crc extensions. Doing this avoids the need for having the ".arch armv8-a+crc" directives in the code. Patch 2 adds the arm64-armv8a-linuxapp-clang defconfig. Patch 3, 4, 5 and 6 are for fixing the compilation errors/warnings. Ashwin Se

[dpdk-dev] [PATCH 1/6] hash: compile armv8a CRC32 support conditionally

2017-05-10 Thread Ashwin Sekhar T K
Compile the armv8a CRC32 support only if the machine has the CRC extensions i.e if RTE_MACHINE_CPUFLAG_CRC32 is defined. Removed the .arch assembly directives as these are no more necessary. Signed-off-by: Ashwin Sekhar T K --- lib/librte_hash/Makefile| 2 ++ lib/librte_hash

[dpdk-dev] [PATCH 2/6] config: add clang support for armv8a linuxapp

2017-05-10 Thread Ashwin Sekhar T K
Added new config arm64-armv8a-linuxapp-clang Signed-off-by: Ashwin Sekhar T K --- config/defconfig_arm64-armv8a-linuxapp-clang | 56 1 file changed, 56 insertions(+) create mode 100644 config/defconfig_arm64-armv8a-linuxapp-clang diff --git a/config

[dpdk-dev] [PATCH 4/6] acl: fix warning seen with armv8a clang

2017-05-10 Thread Ashwin Sekhar T K
Fixed warning -Wunknown-warning-option seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K --- lib/librte_acl/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_acl/Makefile b/lib/librte_acl/Makefile index e2dacd606..b39b9b12f 100644

[dpdk-dev] [PATCH 3/6] net/thunderx: fix compile errors for armv8a clang

2017-05-10 Thread Ashwin Sekhar T K
Replaced usage of %a0 in inline assembly with [%x0] Signed-off-by: Ashwin Sekhar T K --- drivers/net/thunderx/base/nicvf_plat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/thunderx/base/nicvf_plat.h b/drivers/net/thunderx/base/nicvf_plat.h index 36da12009

[dpdk-dev] [PATCH 5/6] eal/arm: fix warnings seen with armv8a clang

2017-05-10 Thread Ashwin Sekhar T K
Fixed warning -Wasm-operand-widths seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K --- lib/librte_eal/common/include/arch/arm/rte_byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_byteorder.h b/lib

[dpdk-dev] [PATCH 6/6] eal: fix warning seen with armv8a clang

2017-05-10 Thread Ashwin Sekhar T K
Fixed warning -Wempty-body seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K --- lib/librte_eal/linuxapp/eal/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile index 640afd088

[dpdk-dev] [PATCH v2 1/6] hash: compile armv8a CRC32 support conditionally

2017-05-11 Thread Ashwin Sekhar T K
Compile the armv8a CRC32 support only if the machine has the CRC extensions i.e if RTE_MACHINE_CPUFLAG_CRC32 is defined. Removed the .arch assembly directives as these are no more necessary. Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jerin Jacob --- lib/librte_hash/Makefile| 2

[dpdk-dev] [PATCH v2 0/6] Add clang compilation support for armv8a linuxapp

2017-05-11 Thread Ashwin Sekhar T K
common defines from arm64-armv8a-linuxapp-gcc to common_armv8a_config * Removed the -Wno-empty-body flag from eal Makefile. Added rte_pause() to the while loop causing this warning. Ashwin Sekhar T K (6): hash: compile armv8a CRC32 support conditionally config: add clang support for a

[dpdk-dev] [PATCH v2 2/6] config: add clang support for armv8a linuxapp

2017-05-11 Thread Ashwin Sekhar T K
defines are inherited from common_armv8a_linuxapp. Signed-off-by: Ashwin Sekhar T K --- config/common_armv8a_linuxapp| 53 config/defconfig_arm64-armv8a-linuxapp-clang | 35 ++ config/defconfig_arm64-armv8a-linuxapp-gcc | 23

[dpdk-dev] [PATCH v2 4/6] acl: fix warning seen with armv8a clang

2017-05-11 Thread Ashwin Sekhar T K
Fixed warning -Wunknown-warning-option seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jerin Jacob --- lib/librte_acl/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_acl/Makefile b/lib/librte_acl/Makefile index

[dpdk-dev] [PATCH v2 3/6] net/thunderx: fix compile errors for armv8a clang

2017-05-11 Thread Ashwin Sekhar T K
Replaced usage of %a0 in inline assembly with [%x0] Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jerin Jacob --- drivers/net/thunderx/base/nicvf_plat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/thunderx/base/nicvf_plat.h b/drivers/net/thunderx/base

  1   2   >