History

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.

Aharon Landau committed 5 years ago

Commit 33652951 parent 9a1ac955 files · +45 −6Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/rdma/mlx5-abi.h+2−0
@@ -101,6 +101,7 @@ enum mlx5_ib_alloc_ucontext_resp_mask { · 100 unmodified lines
101101 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0,
102102 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_DUMP_FILL_MKEY = 1UL << 1,
103103 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_ECE = 1UL << 2,
104+ MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_REAL_TIME_TS = 1UL << 4,
104105 };
105106
106107 enum mlx5_user_cmds_supp_uhw {
@@ -270,6 +271,7 @@ struct mlx5_ib_query_device_resp { · 163 unmodified lines
270271 enum mlx5_ib_create_cq_flags {
271272 MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0,
272273 MLX5_IB_CREATE_CQ_FLAGS_UAR_PAGE_INDEX = 1 << 1,
274+ MLX5_IB_CREATE_CQ_FLAGS_REAL_TIME_TS = 1 << 2,
273275 };
274276
275277 struct mlx5_ib_create_cq {