* [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-07 18:08 ` Michael Chan
2024-09-08 7:53 ` Pavan Chebbi
2024-09-06 14:46 ` [PATCH net-next 02/16] tg3: " Gal Pressman
` (15 subsequent siblings)
16 siblings, 2 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/bnxt/bnxt_ethtool.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
index 9dadc89378f0..8fe680e691a3 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
@@ -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;
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp Gal Pressman
@ 2024-09-07 18:08 ` Michael Chan
2024-09-08 7:53 ` Pavan Chebbi
1 sibling, 0 replies; 26+ messages in thread
From: Michael Chan @ 2024-09-07 18:08 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, netdev, Jay Vosburgh,
Andy Gospodarek, Marc Kleine-Budde, Vincent Mailhol,
Shyam Sundar S K, Sudarsana Kalluru, Manish Chopra, 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,
Carolina Jubran, Rahul Rameshbabu
[-- Attachment #1: Type: text/plain, Size: 466 bytes --]
On Fri, Sep 6, 2024 at 7:46 AM Gal Pressman <gal@nvidia.com> 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>
Thanks.
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp Gal Pressman
2024-09-07 18:08 ` Michael Chan
@ 2024-09-08 7:53 ` Pavan Chebbi
1 sibling, 0 replies; 26+ messages in thread
From: Pavan Chebbi @ 2024-09-08 7:53 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, netdev, Jay Vosburgh,
Andy Gospodarek, Marc Kleine-Budde, Vincent Mailhol,
Shyam Sundar S K, Sudarsana Kalluru, Manish Chopra, Michael Chan,
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,
Carolina Jubran, Rahul Rameshbabu
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
On Fri, Sep 6, 2024 at 8:16 PM Gal Pressman <gal@nvidia.com> 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>
> ---
> drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
> index 9dadc89378f0..8fe680e691a3 100644
> --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
> +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
> @@ -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;
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
>
> --
> 2.40.1
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH net-next 02/16] tg3: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-07 18:13 ` Michael Chan
2024-09-08 7:52 ` Pavan Chebbi
2024-09-06 14:46 ` [PATCH net-next 03/16] bonding: " Gal Pressman
` (14 subsequent siblings)
16 siblings, 2 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/tg3.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 0ec5f01551f9..378815917741 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -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);
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 02/16] tg3: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 02/16] tg3: " Gal Pressman
@ 2024-09-07 18:13 ` Michael Chan
2024-09-08 7:52 ` Pavan Chebbi
1 sibling, 0 replies; 26+ messages in thread
From: Michael Chan @ 2024-09-07 18:13 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, netdev, Jay Vosburgh,
Andy Gospodarek, Marc Kleine-Budde, Vincent Mailhol,
Shyam Sundar S K, Sudarsana Kalluru, Manish Chopra, 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,
Carolina Jubran, Rahul Rameshbabu
[-- Attachment #1: Type: text/plain, Size: 466 bytes --]
On Fri, Sep 6, 2024 at 7:47 AM Gal Pressman <gal@nvidia.com> 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>
Thanks.
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH net-next 02/16] tg3: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 02/16] tg3: " Gal Pressman
2024-09-07 18:13 ` Michael Chan
@ 2024-09-08 7:52 ` Pavan Chebbi
1 sibling, 0 replies; 26+ messages in thread
From: Pavan Chebbi @ 2024-09-08 7:52 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, netdev, Jay Vosburgh,
Andy Gospodarek, Marc Kleine-Budde, Vincent Mailhol,
Shyam Sundar S K, Sudarsana Kalluru, Manish Chopra, Michael Chan,
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,
Carolina Jubran, Rahul Rameshbabu
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
On Fri, Sep 6, 2024 at 8:17 PM Gal Pressman <gal@nvidia.com> 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>
> ---
> drivers/net/ethernet/broadcom/tg3.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH net-next 03/16] bonding: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 01/16] bnxt_en: Remove setting of RX software timestamp Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 02/16] tg3: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 04/16] amd-xgbe: " Gal Pressman
` (13 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/bonding/bond_main.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index f9633a6f8571..83c406b8b12c 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -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) {
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 04/16] amd-xgbe: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (2 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 03/16] bonding: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 05/16] net: macb: " Gal Pressman
` (12 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
index 21407a26f806..5fc94c2f638e 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
@@ -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) |
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 05/16] net: macb: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (3 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 04/16] amd-xgbe: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-09 7:00 ` Nicolas Ferre
2024-09-06 14:46 ` [PATCH net-next 06/16] liquidio: " Gal Pressman
` (11 subsequent siblings)
16 siblings, 1 reply; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/cadence/macb_main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 95e8742dce1d..e41929c61a04 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -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
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 05/16] net: macb: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 05/16] net: macb: " Gal Pressman
@ 2024-09-09 7:00 ` Nicolas Ferre
0 siblings, 0 replies; 26+ messages in thread
From: Nicolas Ferre @ 2024-09-09 7:00 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, 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, Carolina Jubran, Rahul Rameshbabu
On 06/09/2024 at 16:46, 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>
Looks good to me:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Thanks, best regards,
Nicolas
> ---
> drivers/net/ethernet/cadence/macb_main.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
> index 95e8742dce1d..e41929c61a04 100644
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -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
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH net-next 06/16] liquidio: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (4 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 05/16] net: macb: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 07/16] net: thunderx: " Gal Pressman
` (10 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/cavium/liquidio/lio_ethtool.c | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c b/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
index 5835965dbc32..c849e2c871a9 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
@@ -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)
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 07/16] net: thunderx: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (5 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 06/16] liquidio: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 08/16] enic: " Gal Pressman
` (9 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/cavium/thunder/nicvf_ethtool.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
index 6a04d2530176..d0ff0c170b1a 100644
--- a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
+++ b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
@@ -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;
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 08/16] enic: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (6 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 07/16] net: thunderx: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 09/16] net/funeth: " Gal Pressman
` (8 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/cisco/enic/enic_ethtool.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/cisco/enic/enic_ethtool.c b/drivers/net/ethernet/cisco/enic/enic_ethtool.c
index f2f1055880b2..31685ee304c6 100644
--- a/drivers/net/ethernet/cisco/enic/enic_ethtool.c
+++ b/drivers/net/ethernet/cisco/enic/enic_ethtool.c
@@ -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;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 09/16] net/funeth: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (7 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 08/16] enic: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 10/16] net: mscc: ocelot: " Gal Pressman
` (7 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/fungible/funeth/funeth_ethtool.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/fungible/funeth/funeth_ethtool.c b/drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
index 7f081e6e8c87..ba83dbf4ed22 100644
--- a/drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
+++ b/drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
@@ -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;
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 10/16] net: mscc: ocelot: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (8 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 09/16] net/funeth: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 11/16] qede: " Gal Pressman
` (6 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/mscc/ocelot_ptp.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/mscc/ocelot_ptp.c b/drivers/net/ethernet/mscc/ocelot_ptp.c
index b3c28260adf8..e172638b0601 100644
--- a/drivers/net/ethernet/mscc/ocelot_ptp.c
+++ b/drivers/net/ethernet/mscc/ocelot_ptp.c
@@ -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;
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 11/16] qede: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (9 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 10/16] net: mscc: ocelot: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 12/16] sfc: " Gal Pressman
` (5 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/qlogic/qede/qede_ptp.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ptp.c b/drivers/net/ethernet/qlogic/qede/qede_ptp.c
index 63e3dac4d5f7..9d6399a5c780 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_ptp.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_ptp.c
@@ -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) |
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 12/16] sfc: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (10 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 11/16] qede: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 13/16] sfc/siena: " Gal Pressman
` (4 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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: Martin Habets <habetsm.xilinx@gmail.com>
---
drivers/net/ethernet/sfc/ethtool.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c
index 7c887160e2ef..314b41d738f2 100644
--- a/drivers/net/ethernet/sfc/ethtool.c
+++ b/drivers/net/ethernet/sfc/ethtool.c
@@ -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;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 13/16] sfc/siena: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (11 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 12/16] sfc: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-06 14:46 ` [PATCH net-next 14/16] net: stmmac: " Gal Pressman
` (3 subsequent siblings)
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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: Martin Habets <habetsm.xilinx@gmail.com>
---
drivers/net/ethernet/sfc/siena/ethtool.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/sfc/siena/ethtool.c b/drivers/net/ethernet/sfc/siena/ethtool.c
index 4c182d4edfc2..f4f4df687708 100644
--- a/drivers/net/ethernet/sfc/siena/ethtool.c
+++ b/drivers/net/ethernet/sfc/siena/ethtool.c
@@ -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;
}
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* [PATCH net-next 14/16] net: stmmac: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (12 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 13/16] sfc/siena: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-10 0:48 ` Jakub Kicinski
2024-09-06 14:46 ` [PATCH net-next 15/16] ixp4xx_eth: " Gal Pressman
` (2 subsequent siblings)
16 siblings, 1 reply; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/stmicro/stmmac/stmmac_ethtool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index 7008219fd88d..a7b8407e898c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -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);
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 14/16] net: stmmac: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 14/16] net: stmmac: " Gal Pressman
@ 2024-09-10 0:48 ` Jakub Kicinski
0 siblings, 0 replies; 26+ messages in thread
From: Jakub Kicinski @ 2024-09-10 0:48 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, 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,
Carolina Jubran, Rahul Rameshbabu
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.
>
> 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/stmicro/stmmac/stmmac_ethtool.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> index 7008219fd88d..a7b8407e898c 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> @@ -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;
Would have been good to explain the unusual change to phc_index
in the commit message.
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH net-next 15/16] ixp4xx_eth: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (13 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 14/16] net: stmmac: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-07 5:48 ` Richard Cochran
2024-09-07 19:10 ` Linus Walleij
2024-09-06 14:46 ` [PATCH net-next 16/16] ptp: ptp_ines: " Gal Pressman
2024-09-10 0:50 ` [PATCH net-next 00/16] RX software timestamp for all - round 3 patchwork-bot+netdevbpf
16 siblings, 2 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/xscale/ixp4xx_eth.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c
index 56df37f8d50a..aef316278eb4 100644
--- a/drivers/net/ethernet/xscale/ixp4xx_eth.c
+++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c
@@ -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 =
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 15/16] ixp4xx_eth: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 15/16] ixp4xx_eth: " Gal Pressman
@ 2024-09-07 5:48 ` Richard Cochran
2024-09-07 19:10 ` Linus Walleij
1 sibling, 0 replies; 26+ messages in thread
From: Richard Cochran @ 2024-09-07 5:48 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, 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, Willem de Bruijn, Carolina Jubran,
Rahul Rameshbabu
On Fri, Sep 06, 2024 at 05:46:31PM +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.
>
> Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
> Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
> Signed-off-by: Gal Pressman <gal@nvidia.com>
> ---
Acked-by: Richard Cochran <richardcochran@gmail.com>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH net-next 15/16] ixp4xx_eth: Remove setting of RX software timestamp
2024-09-06 14:46 ` [PATCH net-next 15/16] ixp4xx_eth: " Gal Pressman
2024-09-07 5:48 ` Richard Cochran
@ 2024-09-07 19:10 ` Linus Walleij
1 sibling, 0 replies; 26+ messages in thread
From: Linus Walleij @ 2024-09-07 19:10 UTC (permalink / raw)
To: Gal Pressman
Cc: David S. Miller, Jakub Kicinski, 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,
Carolina Jubran, Rahul Rameshbabu
On Fri, Sep 6, 2024 at 4:50 PM Gal Pressman <gal@nvidia.com> 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH net-next 16/16] ptp: ptp_ines: Remove setting of RX software timestamp
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (14 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 15/16] ixp4xx_eth: " Gal Pressman
@ 2024-09-06 14:46 ` Gal Pressman
2024-09-10 0:50 ` [PATCH net-next 00/16] RX software timestamp for all - round 3 patchwork-bot+netdevbpf
16 siblings, 0 replies; 26+ messages in thread
From: Gal Pressman @ 2024-09-06 14:46 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/ptp/ptp_ines.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/ptp/ptp_ines.c b/drivers/ptp/ptp_ines.c
index e6f7d2bf8dde..14a23d3a27f2 100644
--- a/drivers/ptp/ptp_ines.c
+++ b/drivers/ptp/ptp_ines.c
@@ -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) |
--
2.40.1
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [PATCH net-next 00/16] RX software timestamp for all - round 3
2024-09-06 14:46 [PATCH net-next 00/16] RX software timestamp for all - round 3 Gal Pressman
` (15 preceding siblings ...)
2024-09-06 14:46 ` [PATCH net-next 16/16] ptp: ptp_ines: " Gal Pressman
@ 2024-09-10 0:50 ` patchwork-bot+netdevbpf
16 siblings, 0 replies; 26+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-10 0:50 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 Jakub Kicinski <kuba@kernel.org>:
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/20240901112803.212753-1-gal@nvidia.com/
> [2] https://lore.kernel.org/netdev/20240904074922.256275-1-gal@nvidia.com/
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 26+ messages in thread