From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/net/ethernet/google/gve/gve_ethtool.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/net/ethernet/google/gve/gve_ethtool.c b/kernel/drivers/net/ethernet/google/gve/gve_ethtool.c
index c53a043..cbfd007 100644
--- a/kernel/drivers/net/ethernet/google/gve/gve_ethtool.c
+++ b/kernel/drivers/net/ethernet/google/gve/gve_ethtool.c
@@ -510,9 +510,15 @@
struct ethtool_link_ksettings *cmd)
{
struct gve_priv *priv = netdev_priv(netdev);
- int err = gve_adminq_report_link_speed(priv);
+ int err = 0;
+
+ if (priv->link_speed == 0)
+ err = gve_adminq_report_link_speed(priv);
cmd->base.speed = priv->link_speed;
+
+ cmd->base.duplex = DUPLEX_FULL;
+
return err;
}
--
Gitblit v1.6.2