Commit 0503efea authored by Junfeng Guo's avatar Junfeng Guo Committed by Jakub Kicinski

gve: Set default duplex configuration to full

Current duplex mode was unset in the driver, resulting in the default
parameter being set to 0, which corresponds to half duplex. It might
mislead users to have incorrect expectation about the driver's
transmission capabilities.
Set the default duplex configuration to full, as the driver runs in
full duplex mode at this point.

Fixes: 7e074d5a ("gve: Enable Link Speed Reporting in the driver.")
Signed-off-by: default avatarJunfeng Guo <junfeng.guo@intel.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Message-ID: <20230706044128.2726747-1-junfeng.guo@intel.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 41b9eff0
...@@ -590,6 +590,9 @@ static int gve_get_link_ksettings(struct net_device *netdev, ...@@ -590,6 +590,9 @@ static int gve_get_link_ksettings(struct net_device *netdev,
err = gve_adminq_report_link_speed(priv); err = gve_adminq_report_link_speed(priv);
cmd->base.speed = priv->link_speed; cmd->base.speed = priv->link_speed;
cmd->base.duplex = DUPLEX_FULL;
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment