From 042bb5654404643afcebef194d23f559606665ef Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Thu, 16 Apr 2020 18:12:46 +0100 Subject: [PATCH] test/crypto: fix flag check An incorrect flag check was done, using "&&" instead of "&". Fixes: 2717246ecd7d ("cryptodev: replace mbuf scatter gather flag") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- app/test/test_cryptodev_blockcipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c index 2ff7fc91ba..4973c74a92 100644 --- a/app/test/test_cryptodev_blockcipher.c +++ b/app/test/test_cryptodev_blockcipher.c @@ -93,7 +93,7 @@ test_blockcipher_one_case(const struct blockcipher_test_case *t, uint64_t feat_flags = dev_info.feature_flags; uint64_t oop_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT; - if (t->feature_mask && BLOCKCIPHER_TEST_FEATURE_OOP) { + if (t->feature_mask & BLOCKCIPHER_TEST_FEATURE_OOP) { if (!(feat_flags & oop_flag)) { printf("Device doesn't support out-of-place " "scatter-gather in input mbuf. " -- 2.20.1