Skip to contentSkip to conversation

RX software timestamp for all - round 3

PATCH Applied Gal Pressman 8 participants 26 messages Sep 6, 2024 – Sep 10, 2024

Subsystems (18)
lore
Share & tools
lore
#0 lore raw

cover RX software timestamp for all - round 3

Rounds 1 & 2 of drivers conversion were merged [1][2], this round will complete the work.
I know the series is more than 15 patches, but I didn't want to have a 4th round for a single patch.

[1] https://lore.kernel.org/netdev/[email protected]/
[2] https://lore.kernel.org/netdev/[email protected]/

Thanks,
Gal

Gal Pressman (16):
bnxt_en: Remove setting of RX software timestamp
tg3: Remove setting of RX software timestamp
bonding: Remove setting of RX software timestamp
amd-xgbe: Remove setting of RX software timestamp
net: macb: Remove setting of RX software timestamp
liquidio: Remove setting of RX software timestamp
net: thunderx: Remove setting of RX software timestamp
enic: Remove setting of RX software timestamp net/funeth: Remove setting of RX software timestamp
net: mscc: ocelot: Remove setting of RX software timestamp
qede: Remove setting of RX software timestamp
sfc: Remove setting of RX software timestamp sfc/siena: Remove setting of RX software timestamp
net: stmmac: Remove setting of RX software timestamp
ixp4xx_eth: Remove setting of RX software timestamp
ptp: ptp_ines: Remove setting of RX software timestamp

 drivers/net/bonding/bond_main.c                  |  3 ---
 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c     |  4 ----
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c    |  5 +----
 drivers/net/ethernet/broadcom/tg3.c              |  6 +-----
 drivers/net/ethernet/cadence/macb_main.c         |  5 ++---
 .../net/ethernet/cavium/liquidio/lio_ethtool.c   | 16 +++++++---------
 .../net/ethernet/cavium/thunder/nicvf_ethtool.c  |  2 --
 drivers/net/ethernet/cisco/enic/enic_ethtool.c   |  4 +---
 .../ethernet/fungible/funeth/funeth_ethtool.c    |  5 +----
 drivers/net/ethernet/mscc/ocelot_ptp.c           | 12 ++++--------
 drivers/net/ethernet/qlogic/qede/qede_ptp.c      |  9 +--------
 drivers/net/ethernet/sfc/ethtool.c               |  5 -----
 drivers/net/ethernet/sfc/siena/ethtool.c         |  5 -----
 .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c |  4 ++--
 drivers/net/ethernet/xscale/ixp4xx_eth.c         |  4 +---
 drivers/ptp/ptp_ines.c                           |  4 ----
 16 files changed, 21 insertions(+), 72 deletions(-)
Signature · 1 line
2.40.1
#1 lore raw

PATCH 1/16 bnxt_en: Remove setting of RX software timestamp

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +1 -4
index 9dadc89378f0..8fe680e691a3 100644
@@ -5040,11 +5040,8 @@ static int bnxt_get_ts_info(struct net_device *dev,
 	struct bnxt_ptp_cfg *ptp;
 
 	ptp = bp->ptp_cfg;
-	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE;
+	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
-	info->phc_index = -1;
 	if (!ptp)
 		return 0;
 
Signature · 1 line
2.40.1
#4 lore raw

PATCH 2/16 tg3: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/broadcom/tg3.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/ethernet/broadcom/tg3.c +1 -5
index 0ec5f01551f9..378815917741 100644
@@ -6145,9 +6145,7 @@ static int tg3_get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info
 {
 	struct tg3 *tp = netdev_priv(dev);
 
-	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE;
+	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
 	if (tg3_flag(tp, PTP_CAPABLE)) {
 		info->so_timestamping |= SOF_TIMESTAMPING_TX_HARDWARE |
@@ -6157,8 +6155,6 @@ static int tg3_get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info
 
 	if (tp->ptp_clock)
 		info->phc_index = ptp_clock_index(tp->ptp_clock);
-	else
-		info->phc_index = -1;
 
 	info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
 
Signature · 1 line
2.40.1
#7 lore raw

PATCH 3/16 bonding: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/bonding/bond_main.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/bonding/bond_main.c +0 -3
index f9633a6f8571..83c406b8b12c 100644
@@ -5770,9 +5770,6 @@ static int bond_ethtool_get_ts_info(struct net_device *bond_dev,
 	if (real_dev) {
 		ret = ethtool_get_ts_info_by_layer(real_dev, info);
 	} else {
-		info->phc_index = -1;
-		info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE |
-					SOF_TIMESTAMPING_SOFTWARE;
 		/* Check if all slaves support software tx timestamping */
 		rcu_read_lock();
 		bond_for_each_slave_rcu(bond, slave, iter) {
Signature · 1 line
2.40.1
#8 lore raw

PATCH 4/16 amd-xgbe: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c +0 -4
index 21407a26f806..5fc94c2f638e 100644
@@ -582,16 +582,12 @@ static int xgbe_get_ts_info(struct net_device *netdev,
 	struct xgbe_prv_data *pdata = netdev_priv(netdev);
 
 	ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				   SOF_TIMESTAMPING_RX_SOFTWARE |
-				   SOF_TIMESTAMPING_SOFTWARE |
 				   SOF_TIMESTAMPING_TX_HARDWARE |
 				   SOF_TIMESTAMPING_RX_HARDWARE |
 				   SOF_TIMESTAMPING_RAW_HARDWARE;
 
 	if (pdata->ptp_clock)
 		ts_info->phc_index = ptp_clock_index(pdata->ptp_clock);
-	else
-		ts_info->phc_index = -1;
 
 	ts_info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
 	ts_info->rx_filters = (1 << HWTSTAMP_FILTER_NONE) |
Signature · 1 line
2.40.1
#9 lore raw

PATCH 5/16 net: macb: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/cadence/macb_main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +2 -3
index 95e8742dce1d..e41929c61a04 100644
@@ -3410,8 +3410,6 @@ static int gem_get_ts_info(struct net_device *dev,
 
 	info->so_timestamping =
 		SOF_TIMESTAMPING_TX_SOFTWARE |
-		SOF_TIMESTAMPING_RX_SOFTWARE |
-		SOF_TIMESTAMPING_SOFTWARE |
 		SOF_TIMESTAMPING_TX_HARDWARE |
 		SOF_TIMESTAMPING_RX_HARDWARE |
 		SOF_TIMESTAMPING_RAW_HARDWARE;
@@ -3423,7 +3421,8 @@ static int gem_get_ts_info(struct net_device *dev,
 		(1 << HWTSTAMP_FILTER_NONE) |
 		(1 << HWTSTAMP_FILTER_ALL);
 
-	info->phc_index = bp->ptp_clock ? ptp_clock_index(bp->ptp_clock) : -1;
+	if (bp->ptp_clock)
+		info->phc_index = ptp_clock_index(bp->ptp_clock);
 
 	return 0;
 }
Signature · 1 line
2.40.1
#11 lore raw

PATCH 6/16 liquidio: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 .../net/ethernet/cavium/liquidio/lio_ethtool.c   | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c +7 -9
index 5835965dbc32..c849e2c871a9 100644
@@ -2496,37 +2496,31 @@ static int lio_set_intr_coalesce(struct net_device *netdev,
 	return ret;
 }
 
+#ifdef PTP_HARDWARE_TIMESTAMPING
 static int lio_get_ts_info(struct net_device *netdev,
 			   struct kernel_ethtool_ts_info *info)
 {
 	struct lio *lio = GET_LIO(netdev);
 
 	info->so_timestamping =
-#ifdef PTP_HARDWARE_TIMESTAMPING
 		SOF_TIMESTAMPING_TX_HARDWARE |
 		SOF_TIMESTAMPING_RX_HARDWARE |
 		SOF_TIMESTAMPING_RAW_HARDWARE |
-		SOF_TIMESTAMPING_TX_SOFTWARE |
-#endif
-		SOF_TIMESTAMPING_RX_SOFTWARE |
-		SOF_TIMESTAMPING_SOFTWARE;
+		SOF_TIMESTAMPING_TX_SOFTWARE;
 
 	if (lio->ptp_clock)
 		info->phc_index = ptp_clock_index(lio->ptp_clock);
-	else
-		info->phc_index = -1;
 
-#ifdef PTP_HARDWARE_TIMESTAMPING
 	info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
 
 	info->rx_filters = (1 << HWTSTAMP_FILTER_NONE) |
 			   (1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
 			   (1 << HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
 			   (1 << HWTSTAMP_FILTER_PTP_V2_L4_EVENT);
-#endif
 
 	return 0;
 }
+#endif
 
 /* Return register dump len. */
 static int lio_get_regs_len(struct net_device *dev)
@@ -3146,7 +3140,9 @@ static const struct ethtool_ops lio_ethtool_ops = {
 	.set_coalesce		= lio_set_intr_coalesce,
 	.get_priv_flags		= lio_get_priv_flags,
 	.set_priv_flags		= lio_set_priv_flags,
+#ifdef PTP_HARDWARE_TIMESTAMPING
 	.get_ts_info		= lio_get_ts_info,
+#endif
 };
 
 static const struct ethtool_ops lio_vf_ethtool_ops = {
@@ -3169,7 +3165,9 @@ static const struct ethtool_ops lio_vf_ethtool_ops = {
 	.set_coalesce		= lio_set_intr_coalesce,
 	.get_priv_flags		= lio_get_priv_flags,
 	.set_priv_flags		= lio_set_priv_flags,
+#ifdef PTP_HARDWARE_TIMESTAMPING
 	.get_ts_info		= lio_get_ts_info,
+#endif
 };
 
 void liquidio_set_ethtool_ops(struct net_device *netdev)
Signature · 1 line
2.40.1
#12 lore raw

PATCH 7/16 net: thunderx: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c +0 -2
index 6a04d2530176..d0ff0c170b1a 100644
@@ -844,8 +844,6 @@ static int nicvf_get_ts_info(struct net_device *netdev,
 		return ethtool_op_get_ts_info(netdev, info);
 
 	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE |
 				SOF_TIMESTAMPING_TX_HARDWARE |
 				SOF_TIMESTAMPING_RX_HARDWARE |
 				SOF_TIMESTAMPING_RAW_HARDWARE;
Signature · 1 line
2.40.1
#13 lore raw

PATCH 8/16 enic: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/cisco/enic/enic_ethtool.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/cisco/enic/enic_ethtool.c +1 -3
index f2f1055880b2..31685ee304c6 100644
@@ -601,9 +601,7 @@ static int enic_set_rxfh(struct net_device *netdev,
 static int enic_get_ts_info(struct net_device *netdev,
 			    struct kernel_ethtool_ts_info *info)
 {
-	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE;
+	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
 	return 0;
 }
Signature · 1 line
2.40.1
#14 lore raw

PATCH 9/16 net/funeth: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/fungible/funeth/funeth_ethtool.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c +1 -4
index 7f081e6e8c87..ba83dbf4ed22 100644
@@ -1042,12 +1042,9 @@ static int fun_set_rxfh(struct net_device *netdev,
 static int fun_get_ts_info(struct net_device *netdev,
 			   struct kernel_ethtool_ts_info *info)
 {
-	info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_HARDWARE |
+	info->so_timestamping = SOF_TIMESTAMPING_RX_HARDWARE |
 				SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE |
 				SOF_TIMESTAMPING_RAW_HARDWARE;
-	info->phc_index = -1;
 	info->tx_types = BIT(HWTSTAMP_TX_OFF);
 	info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) | BIT(HWTSTAMP_FILTER_ALL);
 	return 0;
Signature · 1 line
2.40.1
#15 lore raw

PATCH 10/16 net: mscc: ocelot: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/mscc/ocelot_ptp.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/net/ethernet/mscc/ocelot_ptp.c +4 -8
index b3c28260adf8..e172638b0601 100644
@@ -582,17 +582,13 @@ EXPORT_SYMBOL(ocelot_hwstamp_set);
 int ocelot_get_ts_info(struct ocelot *ocelot, int port,
 		       struct kernel_ethtool_ts_info *info)
 {
-	info->phc_index = ocelot->ptp_clock ?
-			  ptp_clock_index(ocelot->ptp_clock) : -1;
-	if (info->phc_index == -1) {
-		info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE |
-					 SOF_TIMESTAMPING_RX_SOFTWARE |
-					 SOF_TIMESTAMPING_SOFTWARE;
+	if (ocelot->ptp_clock) {
+		info->phc_index = ptp_clock_index(ocelot->ptp_clock);
+	} else {
+		info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE;
 		return 0;
 	}
 	info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE |
-				 SOF_TIMESTAMPING_RX_SOFTWARE |
-				 SOF_TIMESTAMPING_SOFTWARE |
 				 SOF_TIMESTAMPING_TX_HARDWARE |
 				 SOF_TIMESTAMPING_RX_HARDWARE |
 				 SOF_TIMESTAMPING_RAW_HARDWARE;
Signature · 1 line
2.40.1
#16 lore raw

PATCH 11/16 qede: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/qlogic/qede/qede_ptp.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/net/ethernet/qlogic/qede/qede_ptp.c +1 -8
index 63e3dac4d5f7..9d6399a5c780 100644
@@ -326,25 +326,18 @@ int qede_ptp_get_ts_info(struct qede_dev *edev, struct kernel_ethtool_ts_info *i
 	struct qede_ptp *ptp = edev->ptp;
 
 	if (!ptp) {
-		info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-					SOF_TIMESTAMPING_RX_SOFTWARE |
-					SOF_TIMESTAMPING_SOFTWARE;
-		info->phc_index = -1;
+		info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
 		return 0;
 	}
 
 	info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-				SOF_TIMESTAMPING_RX_SOFTWARE |
-				SOF_TIMESTAMPING_SOFTWARE |
 				SOF_TIMESTAMPING_TX_HARDWARE |
 				SOF_TIMESTAMPING_RX_HARDWARE |
 				SOF_TIMESTAMPING_RAW_HARDWARE;
 
 	if (ptp->clock)
 		info->phc_index = ptp_clock_index(ptp->clock);
-	else
-		info->phc_index = -1;
 
 	info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) |
 			   BIT(HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
Signature · 1 line
2.40.1
#17 lore raw

PATCH 12/16 sfc: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/sfc/ethtool.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/sfc/ethtool.c +0 -5
index 7c887160e2ef..314b41d738f2 100644
@@ -230,11 +230,6 @@ static int efx_ethtool_get_ts_info(struct net_device *net_dev,
 {
 	struct efx_nic *efx = efx_netdev_priv(net_dev);
 
-	/* Software capabilities */
-	ts_info->so_timestamping = (SOF_TIMESTAMPING_RX_SOFTWARE |
-				    SOF_TIMESTAMPING_SOFTWARE);
-	ts_info->phc_index = -1;
-
 	efx_ptp_get_ts_info(efx, ts_info);
 	return 0;
 }
Signature · 1 line
2.40.1
#18 lore raw

PATCH 13/16 sfc/siena: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/sfc/siena/ethtool.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/sfc/siena/ethtool.c +0 -5
index 4c182d4edfc2..f4f4df687708 100644
@@ -230,11 +230,6 @@ static int efx_ethtool_get_ts_info(struct net_device *net_dev,
 {
 	struct efx_nic *efx = netdev_priv(net_dev);
 
-	/* Software capabilities */
-	ts_info->so_timestamping = (SOF_TIMESTAMPING_RX_SOFTWARE |
-				    SOF_TIMESTAMPING_SOFTWARE);
-	ts_info->phc_index = -1;
-
 	efx_siena_ptp_get_ts_info(efx, ts_info);
 	return 0;
 }
Signature · 1 line
2.40.1
#19 lore raw

PATCH 14/16 net: stmmac: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +2 -2
index 7008219fd88d..a7b8407e898c 100644
@@ -1207,13 +1207,13 @@ static int stmmac_get_ts_info(struct net_device *dev,
 
 		info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
 					SOF_TIMESTAMPING_TX_HARDWARE |
-					SOF_TIMESTAMPING_RX_SOFTWARE |
 					SOF_TIMESTAMPING_RX_HARDWARE |
-					SOF_TIMESTAMPING_SOFTWARE |
 					SOF_TIMESTAMPING_RAW_HARDWARE;
 
 		if (priv->ptp_clock)
 			info->phc_index = ptp_clock_index(priv->ptp_clock);
+		else
+			info->phc_index = 0;
 
 		info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
 
Signature · 1 line
2.40.1
#21 lore raw

PATCH 15/16 ixp4xx_eth: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/xscale/ixp4xx_eth.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/xscale/ixp4xx_eth.c +1 -3
index 56df37f8d50a..aef316278eb4 100644
@@ -1026,9 +1026,7 @@ static int ixp4xx_get_ts_info(struct net_device *dev,
 
 	if (info->phc_index < 0) {
 		info->so_timestamping =
-			SOF_TIMESTAMPING_TX_SOFTWARE |
-			SOF_TIMESTAMPING_RX_SOFTWARE |
-			SOF_TIMESTAMPING_SOFTWARE;
+			SOF_TIMESTAMPING_TX_SOFTWARE;
 		return 0;
 	}
 	info->so_timestamping =
Signature · 1 line
2.40.1
#24 lore raw

PATCH 16/16 ptp: ptp_ines: Remove setting of RX software timestamp

In reply to Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/ptp/ptp_ines.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/ptp/ptp_ines.c +0 -4
index e6f7d2bf8dde..14a23d3a27f2 100644
@@ -562,12 +562,8 @@ static int ines_ts_info(struct mii_timestamper *mii_ts,
 		SOF_TIMESTAMPING_TX_HARDWARE |
 		SOF_TIMESTAMPING_TX_SOFTWARE |
 		SOF_TIMESTAMPING_RX_HARDWARE |
-		SOF_TIMESTAMPING_RX_SOFTWARE |
-		SOF_TIMESTAMPING_SOFTWARE |
 		SOF_TIMESTAMPING_RAW_HARDWARE;
 
-	info->phc_index = -1;
-
 	info->tx_types =
 		(1 << HWTSTAMP_TX_OFF) |
 		(1 << HWTSTAMP_TX_ON) |
Signature · 1 line
2.40.1
maintainer Acked-by on v1 15/16
#22 lore raw

Re: [PATCH net-next 15/16] ixp4xx_eth: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 8 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---

maintainer Reviewed-by on v1 1/16
#2 lore raw

Re: [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 8 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

Thanks.

maintainer Reviewed-by on v1 2/16
#5 lore raw

Re: [PATCH net-next 02/16] tg3: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 8 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

Thanks.

Acked-by on v1 15/16
#23 lore raw

Re: [PATCH net-next 15/16] ixp4xx_eth: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 7 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

Yours,
Linus Walleij

maintainer Reviewed-by on v1 2/16
#6 lore raw

Re: [PATCH net-next 02/16] tg3: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 5 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

Quoted 7 lines
---
 drivers/net/ethernet/broadcom/tg3.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
maintainer Reviewed-by on v1 1/16
#3 lore raw

Re: [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 18 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +0 -0
index 9dadc89378f0..8fe680e691a3 100644
@@ -5040,11 +5040,8 @@ static int bnxt_get_ts_info(struct net_device *dev,
        struct bnxt_ptp_cfg *ptp;

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_get_ts_info(struct net_device *dev, · line 5046

Quoted 10 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +1 -4
 
        ptp = bp->ptp_cfg;
-       info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-                               SOF_TIMESTAMPING_RX_SOFTWARE |
-                               SOF_TIMESTAMPING_SOFTWARE;
+       info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
-       info->phc_index = -1;
        if (!ptp)
                return 0;
Quoted 4 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +0 -1
--

2.40.1

Acked-by on v1 5/16
#10 lore raw

Re: [PATCH net-next 05/16] net: macb: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 7 lines · Gal Pressman

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

Looks good to me:

Thanks, best regards,
Nicolas

Quoted 30 lines
---
  drivers/net/ethernet/cadence/macb_main.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +2 -4
index 95e8742dce1d..e41929c61a04 100644
@@ -3410,8 +3410,6 @@ static int gem_get_ts_info(struct net_device *dev,
 
         info->so_timestamping =
                 SOF_TIMESTAMPING_TX_SOFTWARE |
-               SOF_TIMESTAMPING_RX_SOFTWARE |
-               SOF_TIMESTAMPING_SOFTWARE |
                 SOF_TIMESTAMPING_TX_HARDWARE |
                 SOF_TIMESTAMPING_RX_HARDWARE |
                 SOF_TIMESTAMPING_RAW_HARDWARE;
@@ -3423,7 +3421,8 @@ static int gem_get_ts_info(struct net_device *dev,
                 (1 << HWTSTAMP_FILTER_NONE) |
                 (1 << HWTSTAMP_FILTER_ALL);
 
-       info->phc_index = bp->ptp_clock ? ptp_clock_index(bp->ptp_clock) : -1;
+       if (bp->ptp_clock)
+               info->phc_index = ptp_clock_index(bp->ptp_clock);
 
         return 0;
  }
--

2.40.1

maintainer
#20 lore raw

Re: [PATCH net-next 14/16] net: stmmac: Remove setting of RX software timestamp

In reply to Gal Pressman
Quoted 18 lines · On Fri, 6 Sep 2024 17:46:30 +0300 Gal Pressman wrote:

The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +0 -0
index 7008219fd88d..a7b8407e898c 100644
@@ -1207,13 +1207,13 @@ static int stmmac_get_ts_info(struct net_device *dev,
 
 		info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c static int stmmac_get_ts_info(struct net_device *dev, · line 1216

Quoted 10 lines
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +2 -2
 					SOF_TIMESTAMPING_TX_HARDWARE |
-					SOF_TIMESTAMPING_RX_SOFTWARE |
 					SOF_TIMESTAMPING_RX_HARDWARE |
-					SOF_TIMESTAMPING_SOFTWARE |
 					SOF_TIMESTAMPING_RAW_HARDWARE;
 
 		if (priv->ptp_clock)
 			info->phc_index = ptp_clock_index(priv->ptp_clock);
+		else
+			info->phc_index = 0;

Would have been good to explain the unusual change to phc_index in the commit message.

#25 lore raw
In reply to Gal Pressman
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Fri, 6 Sep 2024 17:46:16 +0300 you wrote:

Rounds 1 & 2 of drivers conversion were merged [1][2], this round will complete the work.
I know the series is more than 15 patches, but I didn't want to have a 4th round for a single patch.

[1] https://lore.kernel.org/netdev/[email protected]/
[2] https://lore.kernel.org/netdev/[email protected]/

[...]

Here is the summary with links:
- [net-next,01/16] bnxt_en: Remove setting of RX software timestamp

    https://git.kernel.org/netdev/net-next/c/3fc85527b08c
  - [net-next,02/16] tg3: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/0644646d91b2
  - [net-next,03/16] bonding: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/1db368a04066
  - [net-next,04/16] amd-xgbe: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/18eb4d0440d8
  - [net-next,05/16] net: macb: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/a8fe0c07f56c
  - [net-next,06/16] liquidio: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/441d0a79c950
  - [net-next,07/16] net: thunderx: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/fedc2e795fd5
  - [net-next,08/16] enic: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/e4e0145ac5ac
  - [net-next,09/16] net/funeth: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/6cba6812a335
  - [net-next,10/16] net: mscc: ocelot: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/0de3c713e9b8
  - [net-next,11/16] qede: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/36d84998da9f
  - [net-next,12/16] sfc: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/9d02e6c95139
  - [net-next,13/16] sfc/siena: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/4c00bb4c519b
  - [net-next,14/16] net: stmmac: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/9364fa7fcf12
  - [net-next,15/16] ixp4xx_eth: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/d25e9e178c2a
  - [net-next,16/16] ptp: ptp_ines: Remove setting of RX software timestamp
    https://git.kernel.org/netdev/net-next/c/f8e82440d959

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html