]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Mmap the HCA's clock info to user-space
authorFeras Daoud <ferasda@mellanox.com>
Tue, 16 Jan 2018 18:08:41 +0000 (20:08 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:21 +0000 (14:49 -0500)
commita27637c96fabefd8355b07848a8621a566f668ba
tree41b190412ee9831aa582c8f8b19300971b68b50d
parent0fb5a326b20ee56cab2ccd7e564fcd26c301b112
IB/mlx5: Mmap the HCA's clock info to user-space

This patch maps the new page to user space applications to
allow converting a user space completion timestamp to system wall
time at the lowest possible latency cost.
By using a versioning scheme we allow compatibility between current
and future userspace libraries.
The change moves mlx5_ib_mmap_cmd enum from mlx5_ib.h to the
abi header file mlx5-abi.h.

Reviewed-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Eitan Rabin <rabin@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/uapi/rdma/mlx5-abi.h