Provide only burst enqueue and dequeue.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
---
drivers/event/dsw/dsw_evdev.c | 2 --
drivers/event/dsw/dsw_evdev.h | 2 --
drivers/event/dsw/dsw_event.c | 12 ------------
3 files changed, 16 deletions(-)
On Mon, Oct 21, 2024 at 3:04 PM Mattias Rönnblom
<mattias.ronnblom@ericsson.com> wrote:
>
> Provide only burst enqueue and dequeue.
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
Series applied to dpdk-next-eventdev/for-main. Thanks.
Also, Squashed https://patches.dpdk.org/project/dpdk/patch/20241022045950.9975-1-pbhagavatula@marvell.com/
to relevant patch.
@@ -453,11 +453,9 @@ dsw_probe(struct rte_vdev_device *vdev)
return -EFAULT;
dev->dev_ops = &dsw_evdev_ops;
- dev->enqueue = dsw_event_enqueue;
dev->enqueue_burst = dsw_event_enqueue_burst;
dev->enqueue_new_burst = dsw_event_enqueue_new_burst;
dev->enqueue_forward_burst = dsw_event_enqueue_forward_burst;
- dev->dequeue = dsw_event_dequeue;
dev->dequeue_burst = dsw_event_dequeue_burst;
dev->maintain = dsw_event_maintain;
@@ -270,7 +270,6 @@ struct __rte_aligned(4) dsw_ctl_msg {
struct dsw_queue_flow qfs[DSW_MAX_FLOWS_PER_MIGRATION];
};
-uint16_t dsw_event_enqueue(void *port, const struct rte_event *event);
uint16_t dsw_event_enqueue_burst(void *port,
const struct rte_event events[],
uint16_t events_len);
@@ -281,7 +280,6 @@ uint16_t dsw_event_enqueue_forward_burst(void *port,
const struct rte_event events[],
uint16_t events_len);
-uint16_t dsw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait);
uint16_t dsw_event_dequeue_burst(void *port, struct rte_event *events,
uint16_t num, uint64_t wait);
void dsw_event_maintain(void *port, int op);
@@ -1323,12 +1323,6 @@ dsw_port_flush_out_buffers(struct dsw_evdev *dsw, struct dsw_port *source_port)
dsw_port_transmit_buffered(dsw, source_port, dest_port_id);
}
-uint16_t
-dsw_event_enqueue(void *port, const struct rte_event *ev)
-{
- return dsw_event_enqueue_burst(port, ev, unlikely(ev == NULL) ? 0 : 1);
-}
-
static __rte_always_inline uint16_t
dsw_event_enqueue_burst_generic(struct dsw_port *source_port,
const struct rte_event events[],
@@ -1462,12 +1456,6 @@ dsw_event_enqueue_forward_burst(void *port, const struct rte_event events[],
events_len, 0);
}
-uint16_t
-dsw_event_dequeue(void *port, struct rte_event *events, uint64_t wait)
-{
- return dsw_event_dequeue_burst(port, events, 1, wait);
-}
-
static void
dsw_port_record_seen_events(struct dsw_port *port, struct rte_event *events,
uint16_t num)