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 49318423FE; Tue, 17 Jan 2023 17:51:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CE0842D7D; Tue, 17 Jan 2023 17:50:37 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 4F64A42D42 for ; Tue, 17 Jan 2023 17:50:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974229; x=1705510229; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Lw9fsc413rkCQlbOa2jSKB8NrynPHm9GoFVleYQGdUc=; b=E7itj/dHs/YFmHFeqSMijhIWFotDtl5UT/Lt4kDv1P6I9ZXkz5YMybIq ms3vctflpPk1H0LxKJzUKvMKZjqzGpwld03/8uznxB+FwKJUMduRH59Qe g+/R/xZWmNriUWxKI7G3e5/OwrjSzjSg+3ez/JwqEkjc2Mxx6TYtcYxzv V7Jc1zCXp/PBjRp/enCecepHr+ZJKqgtYR2KNj1LuSg6PXdzlNnga3kqH 4XoriflLf+SqTLyeRdoImNA844XKr0q8A3hWPVTf1T30VrAj0cWoDp8xd DcF0CvF7ONzZdBVVbt1z5G0fsxxzJBbwjzM0RvBxQ85dS2IogVrSWaiFJ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022097" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022097" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 08:50:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235122" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235122" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2023 08:50:28 -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 Subject: [PATCH v1 12/13] test/bbdev: remove check for invalid opaque data Date: Tue, 17 Jan 2023 08:50:22 -0800 Message-Id: <20230117165023.20567-13-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230117165023.20567-1-hernan.vargas@intel.com> References: <20230117165023.20567-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Assert also if the opaque date is invalid. 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 0930786fda..81bf2c8b60 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 */ @@ -1998,10 +1997,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