]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Change parameters for PTP internal functions
authorJianbo Liu <jianbol@nvidia.com>
Mon, 3 Feb 2025 21:35:03 +0000 (23:35 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Feb 2025 09:14:00 +0000 (10:14 +0100)
commit9f722fb105216771f3a494a83dfad445de8a7f2b
treeced63ff62b36d82f3888fa0fa486b6b64bf84069
parente3ad54f5bdb9432bf34673f1050e8c28eee7908a
net/mlx5: Change parameters for PTP internal functions

In later patch, the mlx5_clock will be allocated dynamically, its
address can be obtained from mlx5_core_dev struct, but mdev can't be
obtained from mlx5_clock because it can be shared by multiple
interfaces. So change the parameter for such internal functions, only
mdev is passed down from the callers.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c