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 6C89A425D1; Mon, 18 Sep 2023 14:32:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 593D7402DE; Mon, 18 Sep 2023 14:32: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 E12194025D for ; Mon, 18 Sep 2023 14:32:39 +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 38HLpFId002381; Mon, 18 Sep 2023 05:32:39 -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=ZFwZPHsWEToJapwTq5iTqhuyYmSQwDWh8jKdaRkxbeo=; b=W++IEJibiKkA0P8KYDS4Ci28holYH9p5Ed/84d/eMNmFXOP4+FSP7cz42GeyNZOk4ldi wRhSjeLW/H1qrr4u2UDkl+PZ+9nH5m4ryTbhXu+rS9HKCPP1BuJac2WRZsOeRHZOs3Lx FftTdg8b2HiafJNMI1oqfeFhZbsX/vS30nCQ1/Y4byDyQr02dLuxsi8buglJLajYzVXG h1GHGLLPnbMi6mYcVpx8fWQBsIvYHjEkhURDKtjissHnwHV2oMbpl7/buIJbsQnMrmkR PWR/PABg9LDa41FJqYS2QxbnTMKX1J1I6iJLrEb9+XUzfa5ZDfcZwuL4EigmQcD1Q/NL Qw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3t5bvkm2es-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Sep 2023 05:32:39 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 18 Sep 2023 05:32:36 -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; Mon, 18 Sep 2023 05:32:36 -0700 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 39A2D5B6921; Mon, 18 Sep 2023 05:32:30 -0700 (PDT) From: Amit Prakash Shukla To: Chengwen Feng , Kevin Laatz , Bruce Richardson CC: , , , , , , , , , , , Amit Prakash Shukla Subject: [PATCH v1 1/2] dmadev: add DMA operation structure Date: Mon, 18 Sep 2023 18:02:26 +0530 Message-ID: <20230918123227.1562074-1-amitprakashs@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: qC9yZ4HcKzrLFxdPWg1mpEPADlF4i1VH X-Proofpoint-ORIG-GUID: qC9yZ4HcKzrLFxdPWg1mpEPADlF4i1VH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-18_05,2023-09-18_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 For the event based DMA transfer, all the required parameters are to be sent as part of a structure. This patch adds a structure containing the parameters for event based DMA operation. Signed-off-by: Amit Prakash Shukla --- lib/dmadev/rte_dmadev.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h index b157ab7600..bf8db2d28d 100644 --- a/lib/dmadev/rte_dmadev.h +++ b/lib/dmadev/rte_dmadev.h @@ -794,6 +794,18 @@ struct rte_dma_sge { uint32_t length; /**< The DMA operation length. */ }; +/** + * A structure used to hold event based DMA operation request entry. + */ +struct rte_dma_op { + struct rte_dma_sge *src_seg; /**< Source segments. */ + struct rte_dma_sge *dst_seg; /**< Destination segments. */ + uint16_t nb_src; /**< Number of source segments. */ + uint16_t nb_dst; /**< Number of destination segments. */ + uint64_t flags; /**< Flags related to the operation. */ + struct rte_mempool *op_mp; /**< Mempool from which op is allocated. */ +}; + #include "rte_dmadev_core.h" /**@{@name DMA operation flag -- 2.25.1