]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Move some PPS logic into helper functions
authorEran Ben Elisha <eranbe@mellanox.com>
Fri, 12 Feb 2021 22:30:41 +0000 (14:30 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Feb 2021 22:04:54 +0000 (14:04 -0800)
commit809935cea6f52722d8a4435ab95786e40ab87cca
treeea1e6548484a28259a6f28c153a3b33a490fa4ff
parent2ab2ba10ade3c370ccb2f533f6fbd651e81e9a0e
net/mlx5: Move some PPS logic into helper functions

Some of PPS logic (timestamp calculations) fits only internal timer
timestamp mode. Move these logics into helper functions. Later in the
patchset cyc2time HW translation mode will expose its own PPS timestamp
calculations.

With this change, main flow will only hold calling PPS logic based on run
time mode.

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