test: fix GMAC SGL test
This ptach fixes the GMAC SGL test that fails to bypass unsupported PMDs.
--- app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
app/test/test_cryptodev.c +2 -2
@@ -11069,8 +11069,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 ;
Signature · 1 line
2.26.2
PATCH v2 1/1 test: fix GMAC SGL test
This patch fixes the GMAC SGL test that fails to bypass unsupported PMDs.
---
v2:
- fix typo
app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
app/test/test_cryptodev.c +2 -2
@@ -11069,8 +11069,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 ;
Signature · 1 line
2.26.2
Best Regards
Jiang yu
Quoted 41 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Fan Zhang
Sent: Thursday, October 29, 2020 10:47 PM
To: [email protected]
Cc: [email protected]; Zhang, Roy Fan <[email protected]>; De Lara Guarch, Pablo <[email protected]>
Subject: [dpdk-dev] [dpdk-dev v2] test: fix GMAC SGL testThis patch fixes the GMAC SGL test that fails to bypass unsupported PMDs.
Fixes dcdd01691f39 ("test/crypto: add GMAC SGL")Signed-off-by Fan Zhang <[email protected]>---
v2:
- fix typoapp/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)app/test/test_cryptodev.c index renamed from app/test/test_cryptodev.c +0
-0
0fed124d3..130719d67100644app/test/test_cryptodev.c +0
-2@@ -11069,8 +11069,8 @@ test_AES_GMAC_authentication_SGL(conststruct 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)) &&app/test/test_cryptodev.c +2
-0+ 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.26.2
Quoted 10 lines
-----Original Message-----
From: Zhang, Roy Fan <[email protected]>
Sent: Thursday, October 29, 2020 2:47 PM
To: [email protected]
Cc: [email protected]; Zhang, Roy Fan <[email protected]>; De Lara Guarch, Pablo <[email protected]>
Subject: [dpdk-dev v2] test: fix GMAC SGL test
Quoted 6 lines
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 <[email protected]>
Commit message can be changed to "test/crypto: fix GMAC SGL", but I think it can be changed when applying the patch.
Akhil Goyal
AppliedQuoted 7 lines
Quoted 7 lines
Subject: [dpdk-dev v2] test: fix GMAC SGL test
This patch fixes the GMAC SGL test that fails to bypass unsupported PMDs.
Fixes dcdd01691f39 ("test/crypto: add GMAC SGL")
Quoted 6 lines
Quoted 1 line
Signed-off-by Fan Zhang <[email protected]>Commit message can be changed to "test/crypto: fix GMAC SGL", but I think it can be changed when applying the patch.
Acked-by Pablo de Lara <[email protected]>
Applied to dpdk-next-crypto
Thanks.