569ffbc981
This patch handles the NIC-supported timestamp formats via DevX. Two different timestamp formats can be provided potentially. The free-running format provides opaque values captured from the internal clock counter fed by some independent oscillator. The free-running frequency is not pre-defined and should be queried from the NIC. The real-time timestamps are expressed in nanoseconds, captured from the dedicated UTC counter, that can be adjusted on the fly and synchronized with some external reference clock. Depending on the version and configuration the hardware might support either FR (free-running) or RT (real-time) timestamps, per queue basis. The commit provides the querying information about the supported timestamp formats and provides the means to configure ones at queue creation time. Fixes: e2b4925ef7c1 ("net/mlx5: support Direct Rules E-Switch") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>