From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 65BF0A0588 for ; Thu, 16 Apr 2020 19:15:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44E2B1DDC8; Thu, 16 Apr 2020 19:15:03 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 9155D1D9D9; Thu, 16 Apr 2020 19:14:58 +0200 (CEST) IronPort-SDR: EqcycCMxE3gcR/xx2Vmh1PKhCTYyhV1IWujDML5OLGplF2nuVFqjExAIEE2yOLrvGZLplW0dsY 2IJkNe+Yur4Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 10:14:57 -0700 IronPort-SDR: DbrvQ33EwigiS8RgaQt1iciSlBIKeKYaGw57XfLYpc/OiRXpoG5/cchL6C9yYgj2JPj8Higjwr zvaxbf+6xNPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,391,1580803200"; d="scan'208";a="242722689" Received: from silpixa00400565.ir.intel.com (HELO silpixa00400565.ger.corp.intel.com) ([10.237.222.249]) by orsmga007.jf.intel.com with ESMTP; 16 Apr 2020 10:14:55 -0700 From: Pablo de Lara To: fiona.trahe@intel.com, declan.doherty@intel.com Cc: dev@dpdk.org, Pablo de Lara , stable@dpdk.org Date: Thu, 16 Apr 2020 18:12:46 +0100 Message-Id: <20200416171246.1789-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] test/crypto: fix flag check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 --- 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 2ff7fc91b..4973c74a9 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.25.2