RDMA/mlx5: Support real-time timestamp directly from the device
authorAharon Landau <aharonl@nvidia.com>
Wed, 16 Jun 2021 07:57:39 +0000 (10:57 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 17:23:50 +0000 (14:23 -0300)
commit336529518e9724d4cecabc622e57bcdce02e7c61
tree7c0062eadca1f760e9798b84c33708900cc77cc2
parent9a1ac95a59d0724ffac2181a98b232c3f94f49f5
RDMA/mlx5: Support real-time timestamp directly from the device

Currently, if the user asks for a real-time timestamp, the device will
return a free-running one, and the timestamp will be translated to
real-time in the user-space.

When the device supports only real-time timestamp and not free-running,
the creation of the QP will fail even though the user needs supported the
real-time one. To prevent this, we will return the real-time timestamp
directly from the device.

Link: https://lore.kernel.org/r/c6cfc8e6f038575c5c2de6505830f7e74e4de80d.1623829775.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h