[dpdk-dev] [RFC] eventdev: replace mbufs with events in Rx callback
Jerin Jacob Kollanukkaran
jerinj at marvell.com
Thu May 9 09:53:43 CEST 2019
> -----Original Message-----
> From: Nikhil Rao <nikhil.rao at intel.com>
> Sent: Thursday, May 9, 2019 5:27 AM
> To: Jerin Jacob Kollanukkaran <jerinj at marvell.com>
> Cc: dev at dpdk.org; Nikhil Rao <nikhil.rao at intel.com>
> Subject: [EXT] [RFC] eventdev: replace mbufs with events in Rx callback
> Replace the mbuf pointer array in the event eth Rx adapter callback with an
> event array instead of an mbuf array. Using an event array allows the
> application to change attributes of the events enqueued by the SW adapter.
Looks good to me. If I understand it correctly, It is applicable only to SW adapter.
If not, let us know.
Please remove the EXPERIMENTAL tag after the change.
> Signed-off-by: Nikhil Rao <nikhil.rao at intel.com>
> Hi All,
> Please review the new interface proposed below.
> lib/librte_eventdev/rte_event_eth_rx_adapter.h | 57 +++++++++++++++--
> 1 file changed, 34 insertions(+), 23 deletions(-)
> + * Packets dropped by callback.
> * @return
> - * Returns the number of mbufs should be enqueued to eventdev
> + * - The number of events to be enqueued by the SW adapter.
> typedef uint16_t (*rte_event_eth_rx_adapter_cb_fn)(uint16_t
> uint16_t queue_id,
> uint32_t enqueue_buf_size,
> - struct rte_mbuf **mbuf,
> - uint16_t nb_mbuf,
> + struct rte_event *ev,
> + uint16_t nb_event,
> void *cb_arg,
> - struct rte_mbuf **enq_buf);
> + uint16_t *nb_dropped);
> * @warning
More information about the dev