[dpdk-dev] [PATCH v1 1/1] rte_crypto.h: Fix compilation issue with Ofast.
Ian Stokes
ian.stokes at intel.com
Tue Oct 17 13:04:15 CEST 2017
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.
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
lib/librte_cryptodev/rte_crypto.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/librte_cryptodev/rte_crypto.h b/lib/librte_cryptodev/rte_crypto.h
index 10fe080..3ef9e41 100644
--- a/lib/librte_cryptodev/rte_crypto.h
+++ b/lib/librte_cryptodev/rte_crypto.h
@@ -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;
}
--
1.7.0.7
More information about the dev
mailing list