]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ptp: Rename mlxsw_sp_ptp_get_message_types()
authorAmit Cohen <amcohen@nvidia.com>
Sun, 24 Jul 2022 08:03:28 +0000 (11:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 12:58:55 +0000 (13:58 +0100)
commit982336b2ebf61f387ae50a4e492dbd8bf023081f
tree1e4ca45f2d77ad6fffa552a63159cf9706a052d3
parentdfc3e0cad70e7591721fb64f1bc1fca57039b529
mlxsw: spectrum_ptp: Rename mlxsw_sp_ptp_get_message_types()

Spectrum-1 and Spectrum-2 differ in their time stamping capabilities.
The former can be configured to time stamp only a subset of received PTP
events (e.g., only Sync), whereas the latter will time stamp all PTP
events or none.

In preparation for Spectrum-2 PTP support, rename the function that
parses the hardware time stamping configuration upon %SIOCSHWTSTAMP to
be Spectrum-1 specific.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c