net/mlx5: Add support for NPPS with real time mode
authorAya Levin <ayal@nvidia.com>
Wed, 7 Sep 2022 23:36:24 +0000 (16:36 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Sep 2022 19:50:26 +0000 (12:50 -0700)
commitf0462bc3e9024e9738fcd1a026456238317d84c7
tree2c2c02c849e608b411bb07ad392fe9326d817d46
parent976a859c9c68fdf160379bfc154431489f318292
net/mlx5: Add support for NPPS with real time mode

Add support for setting NPPS. NPPS is currently available in
REAL_TIME_CLOCK mode only. In addition allow the user to set the pulse
duration.

When NPPS pulse duration is not set explicitly by the user, driver set
it to 50% of the NPPS period.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
include/linux/mlx5/driver.h