DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1 1/2] dmadev: add DMA operation structure
@ 2023-09-18 12:32 Amit Prakash Shukla
  2023-09-18 12:32 ` [PATCH v1 2/2] dmadev: get DMA device using device ID Amit Prakash Shukla
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Amit Prakash Shukla @ 2023-09-18 12:32 UTC (permalink / raw)
  To: Chengwen Feng, Kevin Laatz, Bruce Richardson
  Cc: dev, jerinj, mb, conor.walsh, vattunuru, g.singh, sachin.saxena,
	hemant.agrawal, cheng1.jiang, ndabilpuram, anoobj,
	Amit Prakash Shukla

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 <amitprakashs@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-26 11:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18 12:32 [PATCH v1 1/2] dmadev: add DMA operation structure Amit Prakash Shukla
2023-09-18 12:32 ` [PATCH v1 2/2] dmadev: get DMA device using device ID Amit Prakash Shukla
2023-09-18 13:42   ` Jerin Jacob
2023-09-18 13:47     ` [EXT] " Amit Prakash Shukla
2023-09-18 12:59 ` [PATCH v1 1/2] dmadev: add DMA operation structure Bruce Richardson
2023-09-18 13:42   ` [EXT] " Amit Prakash Shukla
2023-09-19 11:41 ` [PATCH v2] dmadev: get DMA device using device ID Amit Prakash Shukla
2023-09-21 15:43   ` Jerin Jacob
2023-09-26 11:09     ` [EXT] " Amit Prakash Shukla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).