[05/10] event/dpaa: remove single event enqueue and dequeue

Message ID 20241021090653.864237-6-mattias.ronnblom@ericsson.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series [01/10] event/dsw: remove single event enqueue and dequeue |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Mattias Rönnblom Oct. 21, 2024, 9:06 a.m. UTC
Provide only burst enqueue and dequeue.

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
---
 drivers/event/dpaa/dpaa_eventdev.c | 27 ++-------------------------
 1 file changed, 2 insertions(+), 25 deletions(-)
  

Patch

diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c
index 85ccb586ef..853cc1ecf9 100644
--- a/drivers/event/dpaa/dpaa_eventdev.c
+++ b/drivers/event/dpaa/dpaa_eventdev.c
@@ -113,12 +113,6 @@  dpaa_event_enqueue_burst(void *port, const struct rte_event ev[],
 	return nb_events;
 }
 
-static uint16_t
-dpaa_event_enqueue(void *port, const struct rte_event *ev)
-{
-	return dpaa_event_enqueue_burst(port, ev, 1);
-}
-
 static void drain_4_bytes(int fd, fd_set *fdset)
 {
 	if (FD_ISSET(fd, fdset)) {
@@ -233,12 +227,6 @@  dpaa_event_dequeue_burst(void *port, struct rte_event ev[],
 	return num_frames;
 }
 
-static uint16_t
-dpaa_event_dequeue(void *port, struct rte_event *ev, uint64_t timeout_ticks)
-{
-	return dpaa_event_dequeue_burst(port, ev, 1, timeout_ticks);
-}
-
 static uint16_t
 dpaa_event_dequeue_burst_intr(void *port, struct rte_event ev[],
 			      uint16_t nb_events, uint64_t timeout_ticks)
@@ -311,14 +299,6 @@  dpaa_event_dequeue_burst_intr(void *port, struct rte_event ev[],
 	return num_frames;
 }
 
-static uint16_t
-dpaa_event_dequeue_intr(void *port,
-			struct rte_event *ev,
-			uint64_t timeout_ticks)
-{
-	return dpaa_event_dequeue_burst_intr(port, ev, 1, timeout_ticks);
-}
-
 static void
 dpaa_event_dev_info_get(struct rte_eventdev *dev,
 			struct rte_event_dev_info *dev_info)
@@ -1012,17 +992,14 @@  dpaa_event_dev_create(const char *name, const char *params, struct rte_vdev_devi
 	priv = eventdev->data->dev_private;
 
 	eventdev->dev_ops       = &dpaa_eventdev_ops;
-	eventdev->enqueue       = dpaa_event_enqueue;
 	eventdev->enqueue_burst = dpaa_event_enqueue_burst;
 
-	if (dpaa_event_check_flags(params)) {
-		eventdev->dequeue	= dpaa_event_dequeue;
+	if (dpaa_event_check_flags(params))
 		eventdev->dequeue_burst = dpaa_event_dequeue_burst;
-	} else {
+	else {
 		priv->intr_mode = 1;
 		eventdev->dev_ops->timeout_ticks =
 				dpaa_event_dequeue_timeout_ticks_intr;
-		eventdev->dequeue	= dpaa_event_dequeue_intr;
 		eventdev->dequeue_burst = dpaa_event_dequeue_burst_intr;
 	}
 	eventdev->txa_enqueue = dpaa_eventdev_txa_enqueue;