eventdev/eth_rx: use timestamp as dynamic mbuf field
authorGanapati Kundapura <ganapati.kundapura@intel.com>
Tue, 28 Sep 2021 16:38:48 +0000 (11:38 -0500)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:14:50 +0000 (10:14 +0200)
commit83ab470d1259e1d9d6f77d9a4b5063290f21439b
treed4bb4f28a8a95ee30f83d4055cd60625f62e6c57
parent929ebdd543094ab7df018c9c7178b624b5709406
eventdev/eth_rx: use timestamp as dynamic mbuf field

Add support to register timestamp dynamic field in mbuf.

Update the timestamp in mbuf for each packet before enqueuing
to event device if the timestamp is not already set.

Adding the timestamp in Rx adapter avoids additional latency
due to the event device.

Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/eventdev/rte_event_eth_rx_adapter.c