From: Fan Zhang Date: Thu, 29 Oct 2020 14:46:31 +0000 (+0000) Subject: test/crypto: fix GMAC SGL case X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=755d3cfe89ddbf2679d4909033f74fdcc4acc138;p=dpdk.git 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 --- 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;