examples/rxtx_callbacks: support HW timestamp
authorTom Barbette <barbette@kth.se>
Thu, 2 May 2019 12:11:35 +0000 (14:11 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jun 2019 11:21:20 +0000 (20:21 +0900)
commitcd1dadeb9b2a85c1459a7b05adfed6f9cc7cfdff
tree3dcdf6ade864e7d4b9d5dfbad9899c0c1159a117
parente571ad5541457e5741d84babb7d2301f2cd18c2f
examples/rxtx_callbacks: support HW timestamp

Use rxtx callback to demonstrate a way to use rte_eth_read_clock to
convert the hardware timestamps to an amount of cycles.

This allows to get the amount of time the packet spent since its entry
in the device. While the regular latency only shows the latency from
when it entered the software stack.

Signed-off-by: Tom Barbette <barbette@kth.se>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/sample_app_ug/rxtx_callbacks.rst
examples/rxtx_callbacks/Makefile
examples/rxtx_callbacks/main.c
examples/rxtx_callbacks/meson.build