Merge branch 'mlx5_realtime_ts' into rdma.git for-next
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:08:39 +0000 (15:08 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:08:39 +0000 (15:08 -0300)
commit2833c977c3049f521784e8954d4c90e4941187db
tree3525a0d9c208577b852a460052290c3afa3406ef
parentfdcebbc2ac2cfd82a18857b0c85067fa7e8f5233
parent336529518e9724d4cecabc622e57bcdce02e7c61
Merge branch 'mlx5_realtime_ts' into rdma.git for-next

Aharon Landau says:

====================
In case device supports only real-time timestamp, the kernel will fail to
create QP despite rdma-core requested such timestamp type.

It is because device returns free-running timestamp, and the conversion
from free-running to real-time is performed in the user space.

This series fixes it, by returning real-time timestamp.
====================

* mlx5_realtime_ts:
  RDMA/mlx5: Support real-time timestamp directly from the device
  RDMA/mlx5: Refactor get_ts_format functions to simplify code

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
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/uapi/rdma/mlx5-abi.h