RDMA/mlx5: Refactor get_ts_format functions to simplify code
authorAharon Landau <aharonl@nvidia.com>
Wed, 16 Jun 2021 07:57:38 +0000 (10:57 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 22 Jun 2021 06:35:16 +0000 (09:35 +0300)
commit9a1ac95a59d0724ffac2181a98b232c3f94f49f5
tree58b30e71cd768e5d856a0948df210c085e613eb1
parent009c9aa5be652675a06d5211e1640e02bbb1c33d
RDMA/mlx5: Refactor get_ts_format functions to simplify code

QPC, SQC and RQC timestamp formats and capabilities are always equal
because they represent general hardware support. So instead of code
duplication, let's merge them into general enum and logic.

Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/qp.h