rte_crypto.h: Fix compilation issue with Ofast.
PATCH 1/1 rte_crypto.h: Fix compilation issue 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 case for RTE_OP_TYPE_UNDEFINED.
--- 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
Hi Ian,
Quoted 8 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 12:04 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; Stokes, Ian <[email protected]>
Subject: [PATCH v1 1/1]rte_crypto.h: Fix compilation issue with Ofast.
Quoted 8 lines
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().Fix this by adding case for
RTE_OP_TYPE_UNDEFINED.Signed-off-by Ian Stokes <[email protected]>
Since this is a fix, you should add a fixes line with the commit id where the issue was introduced. This case: Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented")
Also, the title should be: "cryptodev: fix build with Ofast"
Could you send a v2 with these changes?
Thanks,
Pablo
.
Quoted 20 lines
Hi Ian,
Quoted 8 lines
-----Original Message-----
From: Stokes, Ian
Sent: Tuesday, October 17, 2017 12:04 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; Stokes, Ian <[email protected]>
Subject: [PATCH v1 1/1]rte_crypto.h: Fix compilation issue with Ofast.Quoted 8 lines
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().Fix this by adding case for
RTE_OP_TYPE_UNDEFINED.Signed-off-by Ian Stokes <[email protected]>
Quoted 8 lines
Since this is a fix, you should add a fixes line with the commit id where the issue was introduced.
This case: Fixes:c0f87eb5252b("cryptodev: change burst API to be crypto op oriented")Also, the title should be: "cryptodev: fix build with Ofast"
Could you send a v2 with these changes?
Thanks for the feedback Pablo, will send a v2.
Thanks
Ian
Quoted 3 lines
Thanks,
Pablo