From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BCD241CA8 for ; Wed, 15 Feb 2023 18:13:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A13C342D70; Wed, 15 Feb 2023 18:13:17 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 5710E42D0B; Wed, 15 Feb 2023 18:13:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676481183; x=1708017183; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=He66fUZ4A/E2hjvgyhjO71pHIO6RPBK35Lfz6L8q9xY=; b=V4TIMcDRLh4n6Aqbm4lMyjp+ywhs1axo7qIhAMnQiwQ+CT+qlwXMs1rK KHAY2KhFrpyNy8wYpThKq+t5x5Shv7mwG/zzm0AnIgGTWxYn/YF9MU/Rl T+ah6Vo0q1S+EW7oSXdriD1gp98P2pGdpxBvpAeMjQDlcof4N4lhTOAqb fRBdrBRJDVMImRLH5pBGhNcLTEmKiVvRy0iu326ImLhP7Mf63WRltnXVY FstrAgJealjoHgCpQk2zh/khElPbt1YVRrXb+rGfjUvGSpzhYVA1YPTdJ 4kR4RWS3cOI+Jo8Yhtbf9Ip/xSZLzspUohcHO+PWq+bSAc+WO8Jy4e/Ie A==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="332789839" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="332789839" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 09:10:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="758489665" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="758489665" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:10:00 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v2 12/16] test/bbdev: remove check for invalid opaque data Date: Wed, 15 Feb 2023 09:09:45 -0800 Message-Id: <20230215170949.60569-13-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230215170949.60569-1-hernan.vargas@intel.com> References: <20230215170949.60569-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Assert also if the opaque data is invalid. Fixes: 335c11fd276 ("app/bbdev: support HARQ validation") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index a19eda2de8..2ce1c7e7d3 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -79,7 +79,6 @@ #define SYNC_WAIT 0 #define SYNC_START 1 -#define INVALID_OPAQUE -1 #define INVALID_QUEUE_ID -1 /* Increment for next code block in external HARQ memory */ @@ -1999,10 +1998,9 @@ check_enc_status_and_ordering(struct rte_bbdev_enc_op *op, "op_status (%d) != expected_status (%d)", op->status, expected_status); - if (op->opaque_data != (void *)(uintptr_t)INVALID_OPAQUE) - TEST_ASSERT((void *)(uintptr_t)order_idx == op->opaque_data, - "Ordering error, expected %p, got %p", - (void *)(uintptr_t)order_idx, op->opaque_data); + TEST_ASSERT((void *)(uintptr_t)order_idx == op->opaque_data, + "Ordering error, expected %p, got %p", + (void *)(uintptr_t)order_idx, op->opaque_data); return TEST_SUCCESS; } -- 2.37.1