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>
This commit is contained in:
parent
976a859c9c
commit
f0462bc3e9
2 changed files with 121 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue