From: Ian Stokes <ian.stokes@intel.com>
To: dev@dpdk.org
Cc: pablo.de.lara.guarch@intel.com, Ian Stokes <ian.stokes@intel.com>
Subject: [dpdk-dev] [PATCH v2 1/1] cryptodev: fix build with Ofast.
Date: Tue, 17 Oct 2017 15:15:06 +0100 [thread overview]
Message-ID: <1508249706-14827-1-git-send-email-ian.stokes@intel.com> (raw)
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")
Signed-off-by: Ian Stokes <ian.stokes@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
next reply other threads:[~2017-10-17 14:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 14:15 Ian Stokes [this message]
2017-10-17 15:13 ` De Lara Guarch, Pablo
2017-10-17 15:16 ` Stokes, Ian
2017-10-19 19:11 ` De Lara Guarch, Pablo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1508249706-14827-1-git-send-email-ian.stokes@intel.com \
--to=ian.stokes@intel.com \
--cc=dev@dpdk.org \
--cc=pablo.de.lara.guarch@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).