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 BD06445838; Wed, 21 Aug 2024 22:37:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54C2E41148; Wed, 21 Aug 2024 22:37:41 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id C36D140E0B for ; Wed, 21 Aug 2024 22:37:39 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47LKKJcE025633 for ; Wed, 21 Aug 2024 13:37:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=Vj9GJNec6dCdQ6aXTkG7zs5 tlP5v/dLK/Dichy4DFHY=; b=Byf4voVcGcb30gtY6KiNc5nf+NZlUjY7zIwco/l qrUevtx5gbCG/AoD2a2J8A6yf8GmEpTkSevoWIYkkr4D9d4eQerw+E+Y8sw8YEpu QTUGvzaCucpLK8cyIniuYGOOoPpHzeSmNJxvaWwEyf8QQ3cKHOWBH+9uUpeHAIoV ESad8ddzHHf3kJAVzNZ+pqHDk9940K1b5aCce97aBbSCak9xOBu4T0rqoeXwVOaI eXpAK8lehwkvWBH7Tz5TPr8HR5AaT6SBSBmd5apr/gmwJw3f6w8pOByWBFEpE64g sjgbdBmCQeKwn7Gu2NQTHNy3sGA5xMi4KFQkHG8Wa5UuA2g== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 415aw2k0qt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 21 Aug 2024 13:37:38 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 21 Aug 2024 13:37:37 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 21 Aug 2024 13:37:37 -0700 Received: from MININT-80QBFE8.corp.innovium.com (MININT-80QBFE8.marvell.com [10.28.164.106]) by maili.marvell.com (Postfix) with ESMTP id AC37F3F704E; Wed, 21 Aug 2024 13:37:35 -0700 (PDT) From: To: , Amit Prakash Shukla CC: , Pavan Nikhilesh Subject: [PATCH] test/event: fix incorrect target event queue Date: Thu, 22 Aug 2024 02:07:31 +0530 Message-ID: <20240821203731.7766-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: 2kPZUHC44_DPTfh3G6P4oht7anySvVxB X-Proofpoint-ORIG-GUID: 2kPZUHC44_DPTfh3G6P4oht7anySvVxB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-21_14,2024-08-19_03,2024-05-17_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 In OP_FWD mode, if internal port is supported, the target event queue should be the TEST_APP_EV_QUEUE_ID. Fixes: a276e7c8fbb3 ("test/event: add DMA adapter auto-test") Signed-off-by: Pavan Nikhilesh --- app/test/test_event_dma_adapter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test/test_event_dma_adapter.c b/app/test/test_event_dma_adapter.c index 3b39521153bb..9988d4fc7bc5 100644 --- a/app/test/test_event_dma_adapter.c +++ b/app/test/test_event_dma_adapter.c @@ -271,7 +271,10 @@ test_op_forward_mode(void) ev[i].event = 0; ev[i].op = RTE_EVENT_OP_NEW; ev[i].event_type = RTE_EVENT_TYPE_DMADEV; - ev[i].queue_id = TEST_DMA_EV_QUEUE_ID; + if (params.internal_port_op_fwd) + ev[i].queue_id = TEST_APP_EV_QUEUE_ID; + else + ev[i].queue_id = TEST_DMA_EV_QUEUE_ID; ev[i].sched_type = RTE_SCHED_TYPE_ATOMIC; ev[i].flow_id = 0xAABB; ev[i].event_ptr = op; -- 2.45.2