Skip to contentSkip to conversation

gve: Correctly report software timestamping capabilities

PATCH Applied John Fraker 3 participants 4 messages Apr 12, 2024 – Apr 15, 2024

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

PATCH 1/1 gve: Correctly report software timestamping capabilities

gve has supported software timestamp generation since its inception, but has not advertised that support via ethtool. This patch correctly advertises that support.

---
v2: Used ethtool_op_get_ts_info instead of our own implementation, as
suggested by Jakub

 drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/google/gve/gve_ethtool.c +2 -1
index 815dead..299206d 100644
@@ -784,5 +784,6 @@ const struct ethtool_ops gve_ethtool_ops = {
 	.set_tunable = gve_set_tunable,
 	.get_priv_flags = gve_get_priv_flags,
 	.set_priv_flags = gve_set_priv_flags,
-	.get_link_ksettings = gve_get_link_ksettings
+	.get_link_ksettings = gve_get_link_ksettings,
+	.get_ts_info = ethtool_op_get_ts_info,
 };
Signature · 1 line
2.44.0.683.g7961c838ac-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · John Fraker

gve has supported software timestamp generation since its inception, but has not advertised that support via ethtool. This patch correctly advertises that support.

Quoted 3 lines

---
v2: Used ethtool_op_get_ts_info instead of our own implementation, as
suggested by Jakub

FYI: the subject says "net-next 12", not "net-next v2"

#2 lore raw
Quoted 10 lines · Willem de Bruijn
Quoted 6 lines · John Fraker

gve has supported software timestamp generation since its inception, but has not advertised that support via ethtool. This patch correctly advertises that support.

Thank you

Quoted 6 lines
Quoted 3 lines

---
v2: Used ethtool_op_get_ts_info instead of our own implementation, as
suggested by Jakub

FYI: the subject says "net-next 12", not "net-next v2"

Sorry about that!

I made two rookie mistakes haha. Sending the patch late at night, and not re-doing my test email after editing.

#3 lore raw
In reply to John Fraker
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 11 Apr 2024 22:32:29 -0700 you wrote:

gve has supported software timestamp generation since its inception, but has not advertised that support via ethtool. This patch correctly advertises that support.

[...]

Here is the summary with links:
- [net-next,12] gve: Correctly report software timestamping capabilities

    https://git.kernel.org/netdev/net-next/c/4ca78e61ec70

You are awesome, thank you!

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