net/mlx5: support reading clock
authorTom Barbette <barbette@kth.se>
Thu, 2 May 2019 12:11:34 +0000 (14:11 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jun 2019 11:21:20 +0000 (20:21 +0900)
commite571ad5541457e5741d84babb7d2301f2cd18c2f
tree09bcb93caa0b75283e22048f7395e717fc1b0028
parent5e741377657c8fce28037e025ea2f12371400476
net/mlx5: support reading clock

Implements support for read_clock for the mlx5 driver. mlx5 supports
hardware timestamp offload, setting packets timestamp field to the
device clock. rte_eth_read_clock allows to read the device's current
clock value and therefore compare values on similar time base.

See rxtx_callbacks for an example.

Signed-off-by: Tom Barbette <barbette@kth.se>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_glue.c
drivers/net/mlx5/mlx5_glue.h