eventdev: use new event enqueue in Rx adapter
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Thu, 12 Oct 2017 18:45:53 +0000 (00:15 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 25 Oct 2017 12:03:43 +0000 (14:03 +0200)
When event Rx adapter uses software based packet transfer, event op is
always RTE_EVENT_OP_NEW.
By using rte_event_enqueue_new_burst API the underlying event devices
driver can use it as a hint to optimize enqueue operation if possible.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
lib/librte_eventdev/rte_event_eth_rx_adapter.c

index 1e42dde..fcba18d 100644 (file)
@@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter)
            &rx_adapter->event_enqueue_buffer;
        struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats;
 
-       uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id,
+       uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id,
                                        rx_adapter->event_port_id,
                                        buf->events,
                                        buf->count);