gve: Correctly report software timestamping capabilities
authorJohn Fraker <jfraker@google.com>
Fri, 12 Apr 2024 05:32:29 +0000 (22:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2024 09:36:15 +0000 (10:36 +0100)
gve has supported software timestamp generation since its inception,
but has not advertised that support via ethtool. This patch correctly
advertises that support.

Signed-off-by: John Fraker <jfraker@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_ethtool.c

index 815dead31673f8cbfe8541f8183ad18304bb4a3c..299206d15c738e4d27019d1dfa4645d24fc7d3d9 100644 (file)
@@ -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,
 };