IB/mlx5: Add support for hca_core_clock and timestamp_mask
authorMatan Barak <matanb@mellanox.com>
Tue, 15 Dec 2015 18:30:11 +0000 (20:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 04:25:59 +0000 (23:25 -0500)
commit7c60bcbb68122b39fe3e92143abce01be75f3fa6
treedc2b61432d3c977071115f5e32ce0084be382b35
parent301a721e1fcb890afc29997f46de9561686ed391
IB/mlx5: Add support for hca_core_clock and timestamp_mask

Reporting the hca_core_clock (in kHZ) and the timestamp_mask in
query_device extended verb. timestamp_mask is used by users in order
to know what is the valid range of the raw timestamps, while
hca_core_clock reports the clock frequency that is used for
timestamps.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
include/linux/mlx5/mlx5_ifc.h