net/mlx5: Add helper to set time-stamp translator on a queue
Translation method on the time-stamp is set by the capabilities. Avoid code duplication by using a helper to set ptp_cyc2time callback on a queue. Signed-off-by:Aya Levin <ayal@nvidia.com> Reviewed-by:
Tariq Toukan <tariqt@nvidia.com> Signed-off-by:
Saeed Mahameed <saeedm@nvidia.com>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c 1 addition, 3 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c 2 additions, 6 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_main.c
- drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h 11 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
Loading
Please register or sign in to comment