net/mlx5e: Cleanup PTP
authorAya Levin <ayal@nvidia.com>
Sun, 17 Jan 2021 13:25:27 +0000 (15:25 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 26 Mar 2021 02:50:14 +0000 (19:50 -0700)
commite569cbd729245972cf9ef8469c3cb502892e5724
treea9f19901751319181c0a62b1f63d88bc9bdaa73b
parentb0d35de441ab8cdb9f2f38976144e652cf0ee837
net/mlx5e: Cleanup PTP

Reduce scope of mlx5e_ptp_params, move to its c file. Remove unneeded
variables from mlx5e_ptp_open and state bitmap from PTP channel. In
addition, remove channel index from PTP channel since it is set to a
hard coded value, use define instead.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h