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 AC462A00C2; Mon, 26 Sep 2022 17:05:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 429A041133; Mon, 26 Sep 2022 17:05:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id E714840DF7 for ; Mon, 26 Sep 2022 17:05:53 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28QDEtv5016741 for ; Mon, 26 Sep 2022 08:05:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=DHin85YwoetnWc+zueJMkqkZlG5uYck9PDRt3aVLMlk=; b=j9tyFOInkOWKhTcFga2yfXkTt/OdB86ph2D3CLF0tiYGUvFudULDjI7EkvgZ19Z6D/v8 E/1TEZNJcyF5mI5zLHeRdJUhWvwJeH/r0SDwbDmHteeQFPbQt4I7uGRgPt79WKwW5LR0 hongc5hhipSEA4kNiUHVLJIVx1Z2qN/n/MXVw92GfRKjRVxF+2hfqqoHSsxpwVohGiq1 b9iqCjhWW5Diwr1OTdGsQWy4zHtPHnIfdqS/DeilPSgWgI9idCc7HCQL1GoxhG3EmkVy QaN6ocWVsmF0Jw3xa9hpe3oNTU4DyJrdy2iRGsqZVpqgnyLCR5Yp4y7BTbJek3fjd9Dl rg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jucsq0bp8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 26 Sep 2022 08:05:52 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Sep 2022 08:05:51 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 26 Sep 2022 08:05:51 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.28.161.88]) by maili.marvell.com (Postfix) with ESMTP id 26D2A3F70D8; Mon, 26 Sep 2022 08:05:49 -0700 (PDT) From: To: CC: , Pavan Nikhilesh Subject: [PATCH] app/eventdev: fix incorrect cleanup check Date: Mon, 26 Sep 2022 20:35:48 +0530 Message-ID: <20220926150548.5076-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: MKSZvV0u5VE08dOcAeiUuwmX6zs4Vwib X-Proofpoint-ORIG-GUID: MKSZvV0u5VE08dOcAeiUuwmX6zs4Vwib X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-26_08,2022-09-22_02,2022-06-22_01 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 From: Pavan Nikhilesh During cleanup `rte_event_port_quiesce` should be called irrespective of whether an event has been dequeued or not to flush any prefetched events. Fixes: 7da008df0c8d ("app/eventdev: use port quiescing") Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/test_pipeline_common.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c index 4f40d37659..22a3918ed8 100644 --- a/app/test-eventdev/test_pipeline_common.c +++ b/app/test-eventdev/test_pipeline_common.c @@ -696,9 +696,6 @@ pipeline_worker_cleanup(uint8_t dev, uint8_t port, struct rte_event ev[], { int i; - if (!(deq - enq)) - return; - if (deq) { for (i = enq; i < deq; i++) { if (ev[i].op == RTE_EVENT_OP_RELEASE) -- 2.25.1