bugfix

Message ID d8afaca2acc992d871b26c3d4f5d1c7f80d21b8d.1515063510.git.szymon.sliwa@linaro.org
State New
Headers show
Series
  • bugfix
Related show

Commit Message

Szymon Sliwa Jan. 4, 2018, 10:58 a.m.
From: Szymon Sliwa <szs@semihalf.com>

Signed-off-by: Szymon Sliwa <szymon.sliwa@linaro.org>
---
 platform/linux-dpdk/odp_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Krishna Garapati Jan. 5, 2018, 12:38 p.m. | #1
pls add the prefix "linux-dpdk: crypto" to commit message so it is
consistent with the rest and also be more clear.

/Krishna

On 4 January 2018 at 11:58, Szymon Sliwa <szymon.sliwa@linaro.org> wrote:

> From: Szymon Sliwa <szs@semihalf.com>
>
> Signed-off-by: Szymon Sliwa <szymon.sliwa@linaro.org>
> ---
>  platform/linux-dpdk/odp_crypto.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_
> crypto.c
> index 1126a79..40be239 100644
> --- a/platform/linux-dpdk/odp_crypto.c
> +++ b/platform/linux-dpdk/odp_crypto.c
> @@ -620,7 +620,7 @@ int odp_crypto_auth_capability(odp_auth_alg_t auth,
>                 while (cap->op != RTE_CRYPTO_OP_TYPE_UNDEFINED) {
>                         cap_auth_algo = cap->sym.auth.algo;
>                         if (cap->sym.xform_type ==
> -                           RTE_CRYPTO_SYM_XFORM_CIPHER) {
> +                           RTE_CRYPTO_SYM_XFORM_AUTH) {
>                                 if (cap_auth_algo == auth_xform.auth.algo)
>                                                 break;
>                         }
> --
> 2.7.4
>
> _______________________________________________
> lng-odp-dpdk mailing list
> lng-odp-dpdk@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp-dpdk
>

Patch

diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_crypto.c
index 1126a79..40be239 100644
--- a/platform/linux-dpdk/odp_crypto.c
+++ b/platform/linux-dpdk/odp_crypto.c
@@ -620,7 +620,7 @@  int odp_crypto_auth_capability(odp_auth_alg_t auth,
 		while (cap->op != RTE_CRYPTO_OP_TYPE_UNDEFINED) {
 			cap_auth_algo = cap->sym.auth.algo;
 			if (cap->sym.xform_type ==
-			    RTE_CRYPTO_SYM_XFORM_CIPHER) {
+			    RTE_CRYPTO_SYM_XFORM_AUTH) {
 				if (cap_auth_algo == auth_xform.auth.algo)
 						break;
 			}