diff options
author | Aya Levin <ayal@nvidia.com> | 2022-09-08 02:36:24 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-09-27 22:50:26 +0300 |
commit | f0462bc3e9024e9738fcd1a026456238317d84c7 (patch) | |
tree | 2c2c02c849e608b411bb07ad392fe9326d817d46 /include/linux/mlx5/driver.h | |
parent | 976a859c9c68fdf160379bfc154431489f318292 (diff) | |
download | linux-f0462bc3e9024e9738fcd1a026456238317d84c7.tar.xz |
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/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
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 { |