[02/10] event/dlb2: remove single event enqueue and dequeue

Message ID 20241021090653.864237-3-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>

--

RFCv2:
 * Remove unused function. (Stephen Hemminger)
---
 drivers/event/dlb2/dlb2.c | 40 ++-------------------------------------
 1 file changed, 2 insertions(+), 38 deletions(-)
  

Patch

diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c
index 09e4107824..934fcafcfe 100644
--- a/drivers/event/dlb2/dlb2.c
+++ b/drivers/event/dlb2/dlb2.c
@@ -1483,10 +1483,6 @@  dlb2_init_qe_mem(struct dlb2_port *qm_port, char *mz_name)
 	return ret;
 }
 
-static inline uint16_t
-dlb2_event_enqueue_delayed(void *event_port,
-			   const struct rte_event events[]);
-
 static inline uint16_t
 dlb2_event_enqueue_burst_delayed(void *event_port,
 				 const struct rte_event events[],
@@ -1662,7 +1658,6 @@  dlb2_hw_create_ldb_port(struct dlb2_eventdev *dlb2,
 	 * performance reasons.
 	 */
 	if (qm_port->token_pop_mode == DELAYED_POP) {
-		dlb2->event_dev->enqueue = dlb2_event_enqueue_delayed;
 		dlb2->event_dev->enqueue_burst =
 			dlb2_event_enqueue_burst_delayed;
 		dlb2->event_dev->enqueue_new_burst =
@@ -3304,20 +3299,6 @@  dlb2_event_enqueue_burst_delayed(void *event_port,
 	return __dlb2_event_enqueue_burst(event_port, events, num, true);
 }
 
-static inline uint16_t
-dlb2_event_enqueue(void *event_port,
-		   const struct rte_event events[])
-{
-	return __dlb2_event_enqueue_burst(event_port, events, 1, false);
-}
-
-static inline uint16_t
-dlb2_event_enqueue_delayed(void *event_port,
-			   const struct rte_event events[])
-{
-	return __dlb2_event_enqueue_burst(event_port, events, 1, true);
-}
-
 static uint16_t
 dlb2_event_enqueue_new_burst(void *event_port,
 			     const struct rte_event events[],
@@ -4312,12 +4293,6 @@  dlb2_event_dequeue_burst(void *event_port, struct rte_event *ev, uint16_t num,
 	return cnt;
 }
 
-static uint16_t
-dlb2_event_dequeue(void *event_port, struct rte_event *ev, uint64_t wait)
-{
-	return dlb2_event_dequeue_burst(event_port, ev, 1, wait);
-}
-
 static uint16_t
 dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev,
 				uint16_t num, uint64_t wait)
@@ -4375,13 +4350,6 @@  dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev,
 	return cnt;
 }
 
-static uint16_t
-dlb2_event_dequeue_sparse(void *event_port, struct rte_event *ev,
-			  uint64_t wait)
-{
-	return dlb2_event_dequeue_burst_sparse(event_port, ev, 1, wait);
-}
-
 static void
 dlb2_flush_port(struct rte_eventdev *dev, int port_id)
 {
@@ -4693,19 +4661,15 @@  dlb2_entry_points_init(struct rte_eventdev *dev)
 	/* Expose PMD's eventdev interface */
 
 	dev->dev_ops = &dlb2_eventdev_entry_ops;
-	dev->enqueue = dlb2_event_enqueue;
 	dev->enqueue_burst = dlb2_event_enqueue_burst;
 	dev->enqueue_new_burst = dlb2_event_enqueue_new_burst;
 	dev->enqueue_forward_burst = dlb2_event_enqueue_forward_burst;
 
 	dlb2 = dev->data->dev_private;
-	if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE) {
-		dev->dequeue = dlb2_event_dequeue_sparse;
+	if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE)
 		dev->dequeue_burst = dlb2_event_dequeue_burst_sparse;
-	} else {
-		dev->dequeue = dlb2_event_dequeue;
+	else
 		dev->dequeue_burst = dlb2_event_dequeue_burst;
-	}
 }
 
 int