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 B7A7941B8E; Tue, 31 Jan 2023 13:34:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 588A640DFB; Tue, 31 Jan 2023 13:34:04 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9C42D4067B for ; Tue, 31 Jan 2023 13:34:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675168442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WaVpFk6cZPrw82omTMOgK2UmoUiynE7p2FAbXn8HqqI=; b=XRAqyQc2qqXsc+JJMp5ED26yKvMkRJftm+ks7lPlLp66FmQfTcabI1VAhkADQm6FXUUZ+a do1AmRSpkrD385e2d9i+kcsorfUQieXkp/J58b9iloYbH5CKjXdSgGYrbzlYYH7TA53CiH C3z9J2F4TN901w9pJXBlJEdEo5d4KpE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-156-7kk9Ez2XNNOLCMDkc8kExw-1; Tue, 31 Jan 2023 07:33:59 -0500 X-MC-Unique: 7kk9Ez2XNNOLCMDkc8kExw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A13F21C08785; Tue, 31 Jan 2023 12:33:58 +0000 (UTC) Received: from [10.39.208.22] (unknown [10.39.208.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7738940C1073; Tue, 31 Jan 2023 12:33:57 +0000 (UTC) Message-ID: <158219f6-8c6a-a78f-cbd9-7fe7163431ae@redhat.com> Date: Tue, 31 Jan 2023 13:33:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 To: Hernan Vargas , dev@dpdk.org, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com References: <20230117165023.20567-1-hernan.vargas@intel.com> <20230117165023.20567-13-hernan.vargas@intel.com> From: Maxime Coquelin Subject: Re: [PATCH v1 12/13] test/bbdev: remove check for invalid opaque data In-Reply-To: <20230117165023.20567-13-hernan.vargas@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 1/17/23 17:50, Hernan Vargas wrote: > Assert also if the opaque date is invalid. data* > > 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; > } It is a fix, isn't it? Maxime