* [PATCH net-next 01/15] lan743x: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 02/15] net: lan966x: " Gal Pressman
` (14 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu, Raju Lakkaraju
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
---
drivers/net/ethernet/microchip/lan743x_ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.c b/drivers/net/ethernet/microchip/lan743x_ethtool.c
index 3a63ec091413..0f1c0edec460 100644
--- a/drivers/net/ethernet/microchip/lan743x_ethtool.c
+++ b/drivers/net/ethernet/microchip/lan743x_ethtool.c
@@ -1034,16 +1034,12 @@ static int lan743x_ethtool_get_ts_info(struct net_device *netdev,
struct lan743x_adapter *adapter = 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 (adapter->ptp.ptp_clock)
ts_info->phc_index = ptp_clock_index(adapter->ptp.ptp_clock);
- else
- ts_info->phc_index = -1;
ts_info->tx_types = BIT(HWTSTAMP_TX_OFF) |
BIT(HWTSTAMP_TX_ON) |
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 02/15] net: lan966x: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 01/15] lan743x: Remove setting of RX software timestamp Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 03/15] net: sparx5: " Gal Pressman
` (13 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
---
.../net/ethernet/microchip/lan966x/lan966x_ethtool.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c b/drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c
index aec7066d83b3..2474dfd330f4 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c
@@ -549,16 +549,13 @@ static int lan966x_get_ts_info(struct net_device *dev,
phc = &lan966x->phc[LAN966X_PHC_PORT];
- info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1;
- if (info->phc_index == -1) {
- info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
+ if (phc->clock) {
+ info->phc_index = ptp_clock_index(phc->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;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 03/15] net: sparx5: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 01/15] lan743x: Remove setting of RX software timestamp Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 02/15] net: lan966x: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 04/15] mlxsw: spectrum: " Gal Pressman
` (12 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
---
.../net/ethernet/microchip/sparx5/sparx5_ethtool.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c b/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c
index 4f800c1a435d..d898a7238b48 100644
--- a/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c
+++ b/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c
@@ -1194,16 +1194,13 @@ static int sparx5_get_ts_info(struct net_device *dev,
phc = &sparx5->phc[SPARX5_PHC_PORT];
- info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1;
- if (info->phc_index == -1) {
- info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
+ if (phc->clock) {
+ info->phc_index = ptp_clock_index(phc->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;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 04/15] mlxsw: spectrum: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (2 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 03/15] net: sparx5: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 05/15] net: ethernet: ti: am65-cpsw-ethtool: " Gal Pressman
` (11 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
---
.../net/ethernet/mellanox/mlxsw/spectrum.c | 6 ++++++
.../ethernet/mellanox/mlxsw/spectrum_ptp.h | 20 -------------------
2 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index f064789f3240..b749879b3daa 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
@@ -2784,7 +2784,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp1_ptp_ops = {
.hwtstamp_get = mlxsw_sp1_ptp_hwtstamp_get,
.hwtstamp_set = mlxsw_sp1_ptp_hwtstamp_set,
.shaper_work = mlxsw_sp1_ptp_shaper_work,
+#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK)
.get_ts_info = mlxsw_sp1_ptp_get_ts_info,
+#endif
.get_stats_count = mlxsw_sp1_get_stats_count,
.get_stats_strings = mlxsw_sp1_get_stats_strings,
.get_stats = mlxsw_sp1_get_stats,
@@ -2801,7 +2803,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp2_ptp_ops = {
.hwtstamp_get = mlxsw_sp2_ptp_hwtstamp_get,
.hwtstamp_set = mlxsw_sp2_ptp_hwtstamp_set,
.shaper_work = mlxsw_sp2_ptp_shaper_work,
+#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK)
.get_ts_info = mlxsw_sp2_ptp_get_ts_info,
+#endif
.get_stats_count = mlxsw_sp2_get_stats_count,
.get_stats_strings = mlxsw_sp2_get_stats_strings,
.get_stats = mlxsw_sp2_get_stats,
@@ -2818,7 +2822,9 @@ static const struct mlxsw_sp_ptp_ops mlxsw_sp4_ptp_ops = {
.hwtstamp_get = mlxsw_sp2_ptp_hwtstamp_get,
.hwtstamp_set = mlxsw_sp2_ptp_hwtstamp_set,
.shaper_work = mlxsw_sp2_ptp_shaper_work,
+#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK)
.get_ts_info = mlxsw_sp2_ptp_get_ts_info,
+#endif
.get_stats_count = mlxsw_sp2_get_stats_count,
.get_stats_strings = mlxsw_sp2_get_stats_strings,
.get_stats = mlxsw_sp2_get_stats,
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h
index 769095d4932d..c8aa1452fbb9 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h
@@ -11,14 +11,6 @@ struct mlxsw_sp;
struct mlxsw_sp_port;
struct mlxsw_sp_ptp_clock;
-static inline int mlxsw_sp_ptp_get_ts_info_noptp(struct kernel_ethtool_ts_info *info)
-{
- info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
- info->phc_index = -1;
- return 0;
-}
-
#if IS_REACHABLE(CONFIG_PTP_1588_CLOCK)
struct mlxsw_sp_ptp_clock *
@@ -151,12 +143,6 @@ static inline void mlxsw_sp1_ptp_shaper_work(struct work_struct *work)
{
}
-static inline int mlxsw_sp1_ptp_get_ts_info(struct mlxsw_sp *mlxsw_sp,
- struct kernel_ethtool_ts_info *info)
-{
- return mlxsw_sp_ptp_get_ts_info_noptp(info);
-}
-
static inline int mlxsw_sp1_get_stats_count(void)
{
return 0;
@@ -226,12 +212,6 @@ mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port,
return -EOPNOTSUPP;
}
-static inline int mlxsw_sp2_ptp_get_ts_info(struct mlxsw_sp *mlxsw_sp,
- struct kernel_ethtool_ts_info *info)
-{
- return mlxsw_sp_ptp_get_ts_info_noptp(info);
-}
-
static inline int
mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core,
struct mlxsw_sp_port *mlxsw_sp_port,
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 05/15] net: ethernet: ti: am65-cpsw-ethtool: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (3 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 04/15] mlxsw: spectrum: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 06/15] net: ethernet: ti: cpsw_ethtool: " Gal Pressman
` (10 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
---
drivers/net/ethernet/ti/am65-cpsw-ethtool.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/ti/am65-cpsw-ethtool.c b/drivers/net/ethernet/ti/am65-cpsw-ethtool.c
index b60976947da5..539d5ca82f52 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-ethtool.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-ethtool.c
@@ -714,8 +714,6 @@ static int am65_cpsw_get_ethtool_ts_info(struct net_device *ndev,
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 = am65_cpts_phc_index(common->cpts);
info->tx_types = BIT(HWTSTAMP_TX_OFF) | BIT(HWTSTAMP_TX_ON);
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 06/15] net: ethernet: ti: cpsw_ethtool: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (4 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 05/15] net: ethernet: ti: am65-cpsw-ethtool: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 07/15] net: ti: icssg-prueth: " Gal Pressman
` (9 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
---
drivers/net/ethernet/ti/cpsw_ethtool.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/ti/cpsw_ethtool.c b/drivers/net/ethernet/ti/cpsw_ethtool.c
index 53ed23d68722..21d55a180ef6 100644
--- a/drivers/net/ethernet/ti/cpsw_ethtool.c
+++ b/drivers/net/ethernet/ti/cpsw_ethtool.c
@@ -725,8 +725,6 @@ int cpsw_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *inf
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 = cpsw->cpts->phc_index;
info->tx_types =
@@ -741,10 +739,7 @@ int cpsw_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *inf
int cpsw_get_ts_info(struct net_device *ndev, struct kernel_ethtool_ts_info *info)
{
info->so_timestamping =
- SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
- info->phc_index = -1;
+ SOF_TIMESTAMPING_TX_SOFTWARE;
info->tx_types = 0;
info->rx_filters = 0;
return 0;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 07/15] net: ti: icssg-prueth: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (5 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 06/15] net: ethernet: ti: cpsw_ethtool: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 8:29 ` MD Danish Anwar
2024-09-04 7:49 ` [PATCH net-next 08/15] net: netcp: " Gal Pressman
` (8 subsequent siblings)
15 siblings, 1 reply; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
---
drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/ti/icssg/icssg_ethtool.c b/drivers/net/ethernet/ti/icssg/icssg_ethtool.c
index 5688f054cec5..a2df9e527928 100644
--- a/drivers/net/ethernet/ti/icssg/icssg_ethtool.c
+++ b/drivers/net/ethernet/ti/icssg/icssg_ethtool.c
@@ -118,8 +118,6 @@ static int emac_get_ts_info(struct net_device *ndev,
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 = icss_iep_get_ptp_clock_idx(emac->iep);
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH net-next 07/15] net: ti: icssg-prueth: Remove setting of RX software timestamp
2024-09-04 7:49 ` [PATCH net-next 07/15] net: ti: icssg-prueth: " Gal Pressman
@ 2024-09-04 8:29 ` MD Danish Anwar
0 siblings, 0 replies; 18+ messages in thread
From: MD Danish Anwar @ 2024-09-04 8:29 UTC (permalink / raw)
To: Gal Pressman, David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, Linus Walleij, Imre Kaloz,
Richard Cochran, Willem de Bruijn, Carolina Jubran,
Rahul Rameshbabu
On 04/09/24 1:19 pm, 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.
>
> Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
> Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
> Signed-off-by: Gal Pressman <gal@nvidia.com>
> Reviewed-by: Roger Quadros <rogerq@kernel.org>
For TI ICSSG driver
Reviewed-by: MD Danish Anwar <danishanwar@ti.com>
--
Thanks and Regards,
Danish
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH net-next 08/15] net: netcp: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (6 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 07/15] net: ti: icssg-prueth: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 09/15] i40e: " Gal Pressman
` (7 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
---
drivers/net/ethernet/ti/netcp_ethss.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethernet/ti/netcp_ethss.c
index d286709ca3b9..63e686f0b119 100644
--- a/drivers/net/ethernet/ti/netcp_ethss.c
+++ b/drivers/net/ethernet/ti/netcp_ethss.c
@@ -2012,8 +2012,6 @@ static int keystone_get_ts_info(struct net_device *ndev,
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 = gbe_intf->gbe_dev->cpts->phc_index;
info->tx_types =
@@ -2030,10 +2028,7 @@ static int keystone_get_ts_info(struct net_device *ndev,
struct kernel_ethtool_ts_info *info)
{
info->so_timestamping =
- SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
- info->phc_index = -1;
+ SOF_TIMESTAMPING_TX_SOFTWARE;
info->tx_types = 0;
info->rx_filters = 0;
return 0;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 09/15] i40e: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (7 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 08/15] net: netcp: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 10/15] ice: " Gal Pressman
` (6 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 1d0d2e526adb..2e57de16368b 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -2555,16 +2555,12 @@ static int i40e_get_ts_info(struct net_device *dev,
return ethtool_op_get_ts_info(dev, 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;
if (pf->ptp_clock)
info->phc_index = ptp_clock_index(pf->ptp_clock);
- else
- info->phc_index = -1;
info->tx_types = BIT(HWTSTAMP_TX_OFF) | BIT(HWTSTAMP_TX_ON);
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 10/15] ice: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (8 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 09/15] i40e: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 11/15] igb: " Gal Pressman
` (5 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
index bc79ba974e49..8a32c225e22c 100644
--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
@@ -3792,8 +3792,6 @@ ice_get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *info)
return ethtool_op_get_ts_info(dev, 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;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 11/15] igb: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (9 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 10/15] ice: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 12/15] igc: " Gal Pressman
` (4 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index 06b9970dffad..ca6ccbc13954 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -2387,15 +2387,11 @@ static int igb_get_ts_info(struct net_device *dev,
if (adapter->ptp_clock)
info->phc_index = ptp_clock_index(adapter->ptp_clock);
- else
- info->phc_index = -1;
switch (adapter->hw.mac.type) {
case e1000_82575:
info->so_timestamping =
- SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
+ SOF_TIMESTAMPING_TX_SOFTWARE;
return 0;
case e1000_82576:
case e1000_82580:
@@ -2405,8 +2401,6 @@ static int igb_get_ts_info(struct net_device *dev,
case e1000_i211:
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;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 12/15] igc: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (10 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 11/15] igb: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 13/15] ixgbe: " Gal Pressman
` (3 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c b/drivers/net/ethernet/intel/igc/igc_ethtool.c
index 3d3ef4e1547c..fde6f2b3466d 100644
--- a/drivers/net/ethernet/intel/igc/igc_ethtool.c
+++ b/drivers/net/ethernet/intel/igc/igc_ethtool.c
@@ -1565,15 +1565,11 @@ static int igc_ethtool_get_ts_info(struct net_device *dev,
if (adapter->ptp_clock)
info->phc_index = ptp_clock_index(adapter->ptp_clock);
- else
- info->phc_index = -1;
switch (adapter->hw.mac.type) {
case igc_i225:
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;
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 13/15] ixgbe: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (11 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 12/15] igc: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 14/15] cxgb4: " Gal Pressman
` (2 subsequent siblings)
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index 4cac76254966..9482e0cca8b7 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
@@ -3196,16 +3196,12 @@ static int ixgbe_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;
if (adapter->ptp_clock)
info->phc_index = ptp_clock_index(adapter->ptp_clock);
- else
- info->phc_index = -1;
info->tx_types =
BIT(HWTSTAMP_TX_OFF) |
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 14/15] cxgb4: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (12 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 13/15] ixgbe: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-04 7:49 ` [PATCH net-next 15/15] bnx2x: " Gal Pressman
2024-09-06 8:40 ` [PATCH net-next 00/15] RX software timestamp for all - round 2 patchwork-bot+netdevbpf
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Potnuri Bharat Teja <bharat@chelsio.com>
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
index 3d091947ae00..7f3f5afa864f 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
@@ -1556,12 +1556,9 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts
struct adapter *adapter = pi->adapter;
ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
- SOF_TIMESTAMPING_RX_SOFTWARE |
- SOF_TIMESTAMPING_SOFTWARE;
-
- ts_info->so_timestamping |= SOF_TIMESTAMPING_RX_HARDWARE |
- SOF_TIMESTAMPING_TX_HARDWARE |
- SOF_TIMESTAMPING_RAW_HARDWARE;
+ SOF_TIMESTAMPING_RX_HARDWARE |
+ SOF_TIMESTAMPING_TX_HARDWARE |
+ SOF_TIMESTAMPING_RAW_HARDWARE;
ts_info->tx_types = (1 << HWTSTAMP_TX_OFF) |
(1 << HWTSTAMP_TX_ON);
@@ -1575,8 +1572,6 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts
if (adapter->ptp_clock)
ts_info->phc_index = ptp_clock_index(adapter->ptp_clock);
- else
- ts_info->phc_index = -1;
return 0;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH net-next 15/15] bnx2x: Remove setting of RX software timestamp
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (13 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 14/15] cxgb4: " Gal Pressman
@ 2024-09-04 7:49 ` Gal Pressman
2024-09-06 8:40 ` [PATCH net-next 00/15] RX software timestamp for all - round 2 patchwork-bot+netdevbpf
15 siblings, 0 replies; 18+ messages in thread
From: Gal Pressman @ 2024-09-04 7:49 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Jay Vosburgh, Andy Gospodarek, Marc Kleine-Budde,
Vincent Mailhol, Shyam Sundar S K, Sudarsana Kalluru,
Manish Chopra, Michael Chan, Pavan Chebbi, Nicolas Ferre,
Claudiu Beznea, Sunil Goutham, Potnuri Bharat Teja,
Christian Benvenuti, Satish Kharat, Claudiu Manoil,
Vladimir Oltean, Wei Fang, Shenwei Wang, Clark Wang,
Dimitris Michailidis, Yisen Zhuang, Salil Mehta, Jijie Shao,
Tony Nguyen, Przemek Kitszel, Marcin Wojtas, Russell King,
Geetha sowjanya, Subbaraya Sundeep, hariprasad, Ido Schimmel,
Petr Machata, Bryan Whitehead, UNGLinuxDriver, Horatiu Vultur,
Lars Povlsen, Steen Hegelund, Daniel Machon, Alexandre Belloni,
Shannon Nelson, Brett Creeley, Sergey Shtylyov, Yoshihiro Shimoda,
Niklas Söderlund, Edward Cree, Martin Habets,
Alexandre Torgue, Jose Abreu, Maxime Coquelin,
Siddharth Vadapalli, Roger Quadros, MD Danish Anwar,
Linus Walleij, Imre Kaloz, Richard Cochran, Willem de Bruijn,
Gal Pressman, Carolina Jubran, Rahul Rameshbabu
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.
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
index c7b56a5e5425..adf7b6b94941 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
@@ -3640,16 +3640,12 @@ static int bnx2x_get_ts_info(struct net_device *dev,
if (bp->flags & PTP_SUPPORTED) {
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 (bp->ptp_clock)
info->phc_index = ptp_clock_index(bp->ptp_clock);
- else
- info->phc_index = -1;
info->rx_filters = (1 << HWTSTAMP_FILTER_NONE) |
(1 << HWTSTAMP_FILTER_PTP_V1_L4_EVENT) |
--
2.40.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH net-next 00/15] RX software timestamp for all - round 2
2024-09-04 7:49 [PATCH net-next 00/15] RX software timestamp for all - round 2 Gal Pressman
` (14 preceding siblings ...)
2024-09-04 7:49 ` [PATCH net-next 15/15] bnx2x: " Gal Pressman
@ 2024-09-06 8:40 ` patchwork-bot+netdevbpf
15 siblings, 0 replies; 18+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-06 8:40 UTC (permalink / raw)
To: Gal Pressman
Cc: davem, kuba, netdev, jv, andy, mkl, mailhol.vincent,
Shyam-sundar.S-k, skalluru, manishc, michael.chan, pavan.chebbi,
nicolas.ferre, claudiu.beznea, sgoutham, bharat, benve, satishkh,
claudiu.manoil, vladimir.oltean, wei.fang, shenwei.wang,
xiaoning.wang, dmichail, yisen.zhuang, salil.mehta, shaojijie,
anthony.l.nguyen, przemyslaw.kitszel, marcin.s.wojtas, linux,
gakula, sbhatta, hkelam, idosch, petrm, bryan.whitehead,
UNGLinuxDriver, horatiu.vultur, lars.povlsen, Steen.Hegelund,
daniel.machon, alexandre.belloni, shannon.nelson, brett.creeley,
s.shtylyov, yoshihiro.shimoda.uh, niklas.soderlund, ecree.xilinx,
habetsm.xilinx, alexandre.torgue, joabreu, mcoquelin.stm32,
s-vadapalli, rogerq, danishanwar, linusw, kaloz, richardcochran,
willemdebruijn.kernel
Hello:
This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:
On Wed, 4 Sep 2024 10:49:07 +0300 you wrote:
> Round 1 of drivers conversion was merged [1], this is round 2, more
> drivers to follow.
>
> [1] https://lore.kernel.org/netdev/20240901112803.212753-1-gal@nvidia.com/
>
> Thanks,
> Gal
>
> [...]
Here is the summary with links:
- [net-next,01/15] lan743x: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/b9c4d16e2a47
- [net-next,02/15] net: lan966x: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/f592435d132c
- [net-next,03/15] net: sparx5: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/35461b6d5802
- [net-next,04/15] mlxsw: spectrum: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/8a26d9471766
- [net-next,05/15] net: ethernet: ti: am65-cpsw-ethtool: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/f40a3712ef1b
- [net-next,06/15] net: ethernet: ti: cpsw_ethtool: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/c76e2f40b7d9
- [net-next,07/15] net: ti: icssg-prueth: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/c5dbb6aeefbd
- [net-next,08/15] net: netcp: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/f9b74d602ee3
- [net-next,09/15] i40e: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/5df20ce03ef4
- [net-next,10/15] ice: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/6aebd824f45a
- [net-next,11/15] igb: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/638effa35d68
- [net-next,12/15] igc: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/29d2e49a62c1
- [net-next,13/15] ixgbe: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/12283fad6d2e
- [net-next,14/15] cxgb4: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/4c6d910e0254
- [net-next,15/15] bnx2x: Remove setting of RX software timestamp
https://git.kernel.org/netdev/net-next/c/26f74155df44
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 18+ messages in thread