DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] crypto/mvsam: remove crypto end enumerators
@ 2020-09-30  8:01 michaelsh
  2020-10-09 19:51 ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: michaelsh @ 2020-09-30  8:01 UTC (permalink / raw)
  To: dev; +Cc: akhil.goyal, marko.kovacevic, lironh, michaelsh, arkadiuszx.kusztal

From: Michael Shamis <michaelsh@marvell.com>

Remove enumerators RTE_CRYPTO_CIPHER_LIST_END,
RTE_CRYPTO_AUTH_LIST_END, RTE_CRYPTO_AEAD_LIST_END to prevent
some problems that may arise when adding new crypto algorithms.

Signed-off-by: Michael Shamis <michaelsh@marvell.com>
---
 drivers/crypto/mvsam/rte_mrvl_pmd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c
index aaa40dced..bec51c9ff 100644
--- a/drivers/crypto/mvsam/rte_mrvl_pmd.c
+++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c
@@ -67,7 +67,7 @@ __rte_aligned(32);
  * Map of supported cipher algorithms.
  */
 static const
-struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = {
+struct cipher_params_mapping cipher_map[] = {
 	[RTE_CRYPTO_CIPHER_NULL] = {
 		.supported = ALGO_SUPPORTED,
 		.cipher_alg = SAM_CIPHER_NONE },
@@ -107,7 +107,7 @@ struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = {
  * Map of supported auth algorithms.
  */
 static const
-struct auth_params_mapping auth_map[RTE_CRYPTO_AUTH_LIST_END] = {
+struct auth_params_mapping auth_map[] = {
 	[RTE_CRYPTO_AUTH_NULL] = {
 		.supported = ALGO_SUPPORTED,
 		.auth_alg = SAM_AUTH_NONE },
@@ -156,7 +156,7 @@ struct auth_params_mapping auth_map[RTE_CRYPTO_AUTH_LIST_END] = {
  * Map of supported aead algorithms.
  */
 static const
-struct cipher_params_mapping aead_map[RTE_CRYPTO_AEAD_LIST_END] = {
+struct cipher_params_mapping aead_map[] = {
 	[RTE_CRYPTO_AEAD_AES_GCM] = {
 		.supported = ALGO_SUPPORTED,
 		.cipher_alg = SAM_CIPHER_AES,
-- 
2.24.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] crypto/mvsam: remove crypto end enumerators
  2020-09-30  8:01 [dpdk-dev] [PATCH] crypto/mvsam: remove crypto end enumerators michaelsh
@ 2020-10-09 19:51 ` Akhil Goyal
  2020-10-09 20:28   ` [dpdk-dev] [EXT] " Michael Shamis
  0 siblings, 1 reply; 3+ messages in thread
From: Akhil Goyal @ 2020-10-09 19:51 UTC (permalink / raw)
  To: michaelsh, dev; +Cc: marko.kovacevic, lironh, arkadiuszx.kusztal

> From: Michael Shamis <michaelsh@marvell.com>
> 
> Remove enumerators RTE_CRYPTO_CIPHER_LIST_END,
> RTE_CRYPTO_AUTH_LIST_END, RTE_CRYPTO_AEAD_LIST_END to prevent
> some problems that may arise when adding new crypto algorithms.
> 
> Signed-off-by: Michael Shamis <michaelsh@marvell.com>
> ---
Applied to dpdk-next-crypto

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-dev] [EXT] RE: [PATCH] crypto/mvsam: remove crypto end enumerators
  2020-10-09 19:51 ` Akhil Goyal
@ 2020-10-09 20:28   ` Michael Shamis
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Shamis @ 2020-10-09 20:28 UTC (permalink / raw)
  To: Akhil Goyal, dev; +Cc: marko.kovacevic, Liron Himi, arkadiuszx.kusztal

Thanks!


---
Sent from Workspace ONE Boxer<https://whatisworkspaceone.com/boxer>

On 9 October 2020 at 22:51:52 GMT+3, Akhil Goyal <akhil.goyal@nxp.com> wrote:
External Email

----------------------------------------------------------------------
> From: Michael Shamis <michaelsh@marvell.com>
>
> Remove enumerators RTE_CRYPTO_CIPHER_LIST_END,
> RTE_CRYPTO_AUTH_LIST_END, RTE_CRYPTO_AEAD_LIST_END to prevent
> some problems that may arise when adding new crypto algorithms.
>
> Signed-off-by: Michael Shamis <michaelsh@marvell.com>
> ---
Applied to dpdk-next-crypto

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-09 20:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30  8:01 [dpdk-dev] [PATCH] crypto/mvsam: remove crypto end enumerators michaelsh
2020-10-09 19:51 ` Akhil Goyal
2020-10-09 20:28   ` [dpdk-dev] [EXT] " Michael Shamis

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git