From 755d3cfe89ddbf2679d4909033f74fdcc4acc138 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Thu, 29 Oct 2020 14:46:31 +0000 Subject: [PATCH] test/crypto: fix GMAC SGL case This patch fixes the GMAC SGL test that fails to bypass unsupported PMDs. Fixes: dcdd01691f39 ("test/crypto: add GMAC SGL") Signed-off-by: Fan Zhang Acked-by: Pablo de Lara Tested-by: Yu Jiang --- app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 2128b012d5..514d485860 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -11147,8 +11147,8 @@ test_AES_GMAC_authentication_SGL(const struct gmac_test_data *tdata, rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); feature_flags = dev_info.feature_flags; - if ((!(feature_flags & RTE_CRYPTODEV_FF_IN_PLACE_SGL)) && - (!(feature_flags & RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT)) && + if ((!(feature_flags & RTE_CRYPTODEV_FF_IN_PLACE_SGL)) || + (!(feature_flags & RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT)) || (!(feature_flags & RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT))) return -ENOTSUP; -- 2.20.1