cryptodev: fix build with -Ofast
authorIan Stokes <ian.stokes@intel.com>
Tue, 17 Oct 2017 14:15:06 +0000 (15:15 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:10:40 +0000 (18:10 +0200)
commit812f48370f93198f082f98a69f0882b6ae1bde61
tree3848facf76570235d61361d9ad91bd575f91cfef
parentcdea34452b09f5ce3c2f3ada6182afa0071fce47
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.

Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented")
Cc: stable@dpdk.org
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_cryptodev/rte_crypto.h