aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
diff options
context:
space:
mode:
authorGravatar Richard Cochran <richardcochran@gmail.com> 2019-12-25 18:16:19 -0800
committerGravatar David S. Miller <davem@davemloft.net> 2019-12-25 19:51:34 -0800
commitb6fd7b96366769651ab23988607ce9c5c9042cdb (patch)
tree7af5ff4f17fbc32e9549d5df39e1d0d380597053 /drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
parentnet: mdio: of: Register discovered MII time stampers. (diff)
downloadlinux-b6fd7b96366769651ab23988607ce9c5c9042cdb.tar.gz
linux-b6fd7b96366769651ab23988607ce9c5c9042cdb.tar.bz2
linux-b6fd7b96366769651ab23988607ce9c5c9042cdb.zip
net: Introduce peer to peer one step PTP time stamping.
The 1588 standard defines one step operation for both Sync and PDelay_Resp messages. Up until now, hardware with P2P one step has been rare, and kernel support was lacking. This patch adds support of the mode in anticipation of new hardware developments. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
index ec2ff3d7f41c..4aaaa4937b1a 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
@@ -920,6 +920,7 @@ static int mlxsw_sp_ptp_get_message_types(const struct hwtstamp_config *config,
egr_types = 0xff;
break;
case HWTSTAMP_TX_ONESTEP_SYNC:
+ case HWTSTAMP_TX_ONESTEP_P2P:
return -ERANGE;
}