eventdev: add event type for eth Rx adapter
authorNikhil Rao <nikhil.rao@intel.com>
Tue, 10 Oct 2017 22:21:35 +0000 (03:51 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 10 Oct 2017 16:33:51 +0000 (18:33 +0200)
commit06ac00686e29d0ceda338645e04d75f8c443f9bb
treeb8fcab5ad2f0a88f5cde7f516a8e5d2adae76af4
parentdcc806c2638fa6d92630a2ba3d896cd3d52de565
eventdev: add event type for eth Rx adapter

Add RTE_EVENT_TYPE_ETH_RX_ADAPTER event type. Certain platforms (e.g.,
octeontx), in the event dequeue function, need to identify events
injected from ethernet hardware into eventdev so that DPDK mbuf can be
populated from the HW descriptor.

Events injected from ethernet hardware would use an event type of
RTE_EVENT_TYPE_ETHDEV and events injected from the rx adapter service
function would use an event type of RTE_EVENT_TYPE_ETH_RX_ADAPTER to
help the event dequeue function differentiate between these two event
sources.

Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eventdev/rte_eventdev.h