netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING
@ 2022-03-24 16:12 Vladimir Oltean
  2022-03-24 18:18 ` Claudiu Manoil
  2022-03-25 22:50 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Oltean @ 2022-03-24 16:12 UTC (permalink / raw)
  To: netdev
  Cc: David S . Miller, Jakub Kicinski, Paolo Abeni, Claudiu Manoil,
	Michael Walle, Richard Cochran

Let user space properly determine that the enetc driver provides
software timestamps.

Fixes: 4caefbce06d1 ("enetc: add software timestamping")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/freescale/enetc/enetc_ethtool.c b/drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
index fa5b4f885b17..60ec64bfb3f0 100644
--- a/drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
+++ b/drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
@@ -674,7 +674,10 @@ static int enetc_get_ts_info(struct net_device *ndev,
 #ifdef CONFIG_FSL_ENETC_PTP_CLOCK
 	info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
 				SOF_TIMESTAMPING_RX_HARDWARE |
-				SOF_TIMESTAMPING_RAW_HARDWARE;
+				SOF_TIMESTAMPING_RAW_HARDWARE |
+				SOF_TIMESTAMPING_TX_SOFTWARE |
+				SOF_TIMESTAMPING_RX_SOFTWARE |
+				SOF_TIMESTAMPING_SOFTWARE;
 
 	info->tx_types = (1 << HWTSTAMP_TX_OFF) |
 			 (1 << HWTSTAMP_TX_ON) |
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING
  2022-03-24 16:12 [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING Vladimir Oltean
@ 2022-03-24 18:18 ` Claudiu Manoil
  2022-03-25 22:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Claudiu Manoil @ 2022-03-24 18:18 UTC (permalink / raw)
  To: Vladimir Oltean, netdev
  Cc: David S . Miller, Jakub Kicinski, Paolo Abeni, Michael Walle,
	Richard Cochran

> -----Original Message-----
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
> Sent: Thursday, March 24, 2022 6:12 PM
[...]
> Subject: [PATCH net] net: enetc: report software timestamping via
> SO_TIMESTAMPING
> 
> Let user space properly determine that the enetc driver provides
> software timestamps.
> 
> Fixes: 4caefbce06d1 ("enetc: add software timestamping")
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>

Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING
  2022-03-24 16:12 [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING Vladimir Oltean
  2022-03-24 18:18 ` Claudiu Manoil
@ 2022-03-25 22:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-03-25 22:50 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: netdev, davem, kuba, pabeni, claudiu.manoil, michael, richardcochran

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 24 Mar 2022 18:12:10 +0200 you wrote:
> Let user space properly determine that the enetc driver provides
> software timestamps.
> 
> Fixes: 4caefbce06d1 ("enetc: add software timestamping")
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---
>  drivers/net/ethernet/freescale/enetc/enetc_ethtool.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Here is the summary with links:
  - [net] net: enetc: report software timestamping via SO_TIMESTAMPING
    https://git.kernel.org/netdev/net/c/feb13dcb1818

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] 3+ messages in thread

end of thread, other threads:[~2022-03-25 22:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 16:12 [PATCH net] net: enetc: report software timestamping via SO_TIMESTAMPING Vladimir Oltean
2022-03-24 18:18 ` Claudiu Manoil
2022-03-25 22:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).