cryptodev: fix build with Ofast.
PATCH v2 1/1 cryptodev: fix build with Ofast.
When compiling with an application that includes rte_cryptodev.h with Ofast, an error is reported regarding enumeration RTE_CRYPTO_OP_TYPE_UNDEFINED not handled in switch case in function
__rte_crypto_op_reset().
Fix this by adding a case for RTE_CRYPTO_OP_TYPE_UNDEFINED.
oriented")
--- lib/librte_cryptodev/rte_crypto.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/librte_cryptodev/rte_crypto.h +1 -0
@@ -144,6 +144,7 @@ struct rte_crypto_op {case RTE_CRYPTO_OP_TYPE_SYMMETRIC :__rte_crypto_sym_op_reset (op->sym);break ; +case RTE_CRYPTO_OP_TYPE_UNDEFINED :default :break ; }
Signature · 1 line
1.7.0.7
Quoted 15 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 3:15 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; Stokes, Ian <[email protected]>
Subject: [PATCH v2 1/1] cryptodev: fix build with Ofast.When compiling with an application that includes
rte_cryptodev.hwith Ofast, an error is reported regarding enumerationRTE_CRYPTO_OP_TYPE_UNDEFINEDnot handled in switch case in function__rte_crypto_op_reset().
Quoted 6 lines
Fix this by adding a case for
RTE_CRYPTO_OP_TYPE_UNDEFINED.Fixes c0f87eb5252b ("cryptodev: change burst API to be crypto oporiented")
Signed-off-by Ian Stokes <[email protected]>
Oh, and also CC stable :) I will do it for you.
Quoted 13 lines
Quoted 13 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 3:15 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; Stokes, Ian <[email protected]>
Subject: [PATCH v2 1/1] cryptodev: fix build with Ofast.When compiling with an application that includes
rte_cryptodev.hwith Ofast, an error is reported regarding enumerationRTE_CRYPTO_OP_TYPE_UNDEFINEDnot handled in switch case in function__rte_crypto_op_reset().
Quoted 8 lines
Quoted 6 lines
Fix this by adding a case for
RTE_CRYPTO_OP_TYPE_UNDEFINED.Fixes c0f87eb5252b ("cryptodev: change burst API to be crypto oporiented")
Signed-off-by Ian Stokes <[email protected]>Oh, and also CC stable :) I will do it for you.
Apologies Pablo, thanks for this.
Ian
Quoted 2 lines
Acked-by Pablo de Lara <[email protected]>
De Lara Guarch, Pablo
AppliedQuoted 29 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 4:17 PM
To: De Lara Guarch, Pablo <[email protected]>; [email protected]
Cc: [email protected]
Subject: RE: [PATCH v2 1/1] cryptodev: fix build with Ofast.Quoted 11 lines
Quoted 11 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 3:15 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; Stokes, Ian <[email protected]>
Subject: [PATCH v2 1/1] cryptodev: fix build with Ofast.When compiling with an application that includes
rte_cryptodev.hwith Ofast, an error is reported regarding enumerationRTE_CRYPTO_OP_TYPE_UNDEFINEDnot handled in switch case infunction
Quoted 7 lines
Quoted 7 lines
__rte_crypto_op_reset().Fix this by adding a case for
RTE_CRYPTO_OP_TYPE_UNDEFINED.Fixes c0f87eb5252b ("cryptodev: change burst API to be crypto oporiented")
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Ian Stokes <[email protected]>Oh, and also CC stable :) I will do it for you.
Apologies Pablo, thanks for this.
Ian
Quoted 2 lines
Acked-by Pablo de Lara <[email protected]>
Applied to dpdk-next-crypto.
Thanks,
Pablo