]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Refactor init clock function
authorEran Ben Elisha <eranbe@mellanox.com>
Fri, 12 Feb 2021 22:30:39 +0000 (14:30 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Feb 2021 22:04:54 +0000 (14:04 -0800)
commit1436de0b991548fd859a00c889b8c4dcbbb5f463
tree5dbb4b7118f33143270d9a538021c3c6425b9a35
parentae02d41551d6f2a035d3e63ce4415e1b2ba3a7e6
net/mlx5: Refactor init clock function

Function mlx5_init_clock() is responsible for internal PTP related metadata
initializations. Break mlx5_init_clock() to sub functions, each takes care
of its own logic.

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