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 4F69442624; Sat, 23 Sep 2023 15:36:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AF25402E6; Sat, 23 Sep 2023 15:36:10 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 16CBB402CF for ; Sat, 23 Sep 2023 15:36:08 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38NBx2Y6025341; Sat, 23 Sep 2023 06:36:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=FYlC2bNr5wT5VT/e3HcTVv8MlDyDMGI6sLP9Kg+78do=; b=cTp4CI68oDcDQuXwWQNH+QbDbXfmOU3zgHiB4RZfQg/GVWGsgCR+po0N+lMdb9Ugc0mI SMXSwMUQGuPMz5wiItREAJF7Rgw6SPDQKAkeaX/aBerUum9R5FqFic9Z8jMrkE+TZOGU anz1s98/tsmW15WH/ol+nH5nEYcb6Nqi4je67f9PsoGLU0OmZO4xoNd8P0ydEYvfMxVy 80GExOgd8Yjf3693V8d64K3uKIQOrm4lsCRsFrqR5oMd1z9REc8Cux7tXsdL+VhuOFoH AgZEdohAXjFrBfryQMqfqav90Qll1YloljgCzqhRj5jLigDw9Iu+oHZIGd0XF8Wz0/h8 6A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3t9yhkr5qp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 23 Sep 2023 06:36:08 -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.48; Sat, 23 Sep 2023 06:36:06 -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.48 via Frontend Transport; Sat, 23 Sep 2023 06:36:06 -0700 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 2A3373F709B; Sat, 23 Sep 2023 06:36:01 -0700 (PDT) From: Amit Prakash Shukla To: Amit Prakash Shukla , Jerin Jacob CC: , , , , , , , , , , , , Subject: [PATCH v3 10/12] eventdev: add support for DMA adapter enqueue Date: Sat, 23 Sep 2023 19:04:47 +0530 Message-ID: <20230923133449.3780841-11-amitprakashs@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230923133449.3780841-1-amitprakashs@marvell.com> References: <20230922201337.3347666-1-amitprakashs@marvell.com> <20230923133449.3780841-1-amitprakashs@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: m7LIwmjHjGGi-icQ5DAi6Qy02rrw00zh X-Proofpoint-ORIG-GUID: m7LIwmjHjGGi-icQ5DAi6Qy02rrw00zh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-23_10,2023-09-21_01,2023-05-22_02 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 Added API support to enqueue a DMA operation to the DMA driver. Signed-off-by: Amit Prakash Shukla --- lib/eventdev/rte_event_dma_adapter.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index 35acec6caf..9770b0b8df 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -1400,3 +1400,16 @@ rte_event_dma_adapter_stats_reset(uint8_t id) return 0; } + +uint16_t +rte_event_dma_adapter_enqueue(uint8_t dev_id, uint8_t port_id, struct rte_event ev[], + uint16_t nb_events) +{ + const struct rte_event_fp_ops *fp_ops; + void *port; + + fp_ops = &rte_event_fp_ops[dev_id]; + port = fp_ops->data[port_id]; + + return fp_ops->dma_enqueue(port, ev, nb_events); +} -- 2.25.1