From: Pavan Nikhilesh Date: Thu, 12 Oct 2017 18:45:53 +0000 (+0530) Subject: eventdev: use new event enqueue in Rx adapter X-Git-Tag: spdx-start~1227 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=824e81f433fd10cbc05d93efb0aa5b711a76741b;p=dpdk.git eventdev: use new event enqueue in Rx adapter 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 Reviewed-by: Nikhil Rao --- diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 1e42dde739..fcba18d2f6 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -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);