summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorAya Levin <ayal@nvidia.com>2022-09-07 16:36:24 -0700
committerSaeed Mahameed <saeedm@nvidia.com>2022-09-27 12:50:26 -0700
commitf0462bc3e9024e9738fcd1a026456238317d84c7 (patch)
tree2c2c02c849e608b411bb07ad392fe9326d817d46 /include/linux/mlx5
parent976a859c9c68fdf160379bfc154431489f318292 (diff)
downloadlinux-f0462bc3e9024e9738fcd1a026456238317d84c7.tar.bz2
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>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 954af9cafb1d..481506376344 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -698,6 +698,8 @@ struct mlx5_pps {
struct work_struct out_work;
u64 start[MAX_PIN_NUM];
u8 enabled;
+ u64 min_npps_period;
+ u64 min_out_pulse_duration_ns;
};
struct mlx5_timer {