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 300A341DB9 for ; Thu, 2 Mar 2023 21:22:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D65B42D0E; Thu, 2 Mar 2023 21:22:03 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B01CF40EE7; Thu, 2 Mar 2023 21:21:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677788519; x=1709324519; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KUc//m8KF1tq+Jfv9th0WwkiIMjwQ1CKLYbIprV2Ymc=; b=b+6pW1NkQW06IO0e1Gjq4jGOiiEHmbS/g/zgD5bMBy56K78rLBfrL0Cu Bs+upyfXzoF69v77+fZTczRWSfWoU12E9A8iEjaLSMSaj173WhnjwtgT+ XOYJXAFjb3Eep8Z6PEgLg5Pf/K5BW8GKnAIsQxMAAADCrSrqEpcmv/u+t qVj/yG3eSlXQjFtdL5jV9Q57U++YXHJdOb6ofZZjYz0RlLyQQu5YDI2VV mJSFceZejTYP9ewM2KfP75RMcmgDxBUKSu1x3/GHfdF8wxAf6iD2X794N fojYEusKFkM16+5WquZK5kgcrm6emjIvh8SIpkkEoSHshzQy150+zdTH1 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="334871162" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="334871162" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 12:21:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="705398098" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="705398098" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:21:57 -0800 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v3 03/17] test/bbdev: remove check for invalid opaque data Date: Thu, 2 Mar 2023 12:21:57 -0800 Message-Id: <20230302202211.170017-4-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230302202211.170017-1-hernan.vargas@intel.com> References: <20230302202211.170017-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 Reviewed-by: Maxime Coquelin --- 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 74e7e1394092..95d63a3548f5 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -78,7 +78,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 */ @@ -1951,10 +1950,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