* [PATCH net] gve: Set default duplex configuration to full
@ 2023-07-06 4:41 Junfeng Guo
2023-07-06 8:03 ` Leon Romanovsky
2023-07-07 2:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Junfeng Guo @ 2023-07-06 4:41 UTC (permalink / raw)
To: netdev; +Cc: jeroendb, pkaligineedi, shailend, haiyue.wang, Junfeng Guo
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: 7e074d5a76ca ("gve: Enable Link Speed Reporting in the driver.")
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
---
drivers/net/ethernet/google/gve/gve_ethtool.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c
index cfd4b8d284d1..50162ec9424d 100644
--- a/drivers/net/ethernet/google/gve/gve_ethtool.c
+++ b/drivers/net/ethernet/google/gve/gve_ethtool.c
@@ -590,6 +590,9 @@ static int gve_get_link_ksettings(struct net_device *netdev,
err = gve_adminq_report_link_speed(priv);
cmd->base.speed = priv->link_speed;
+
+ cmd->base.duplex = DUPLEX_FULL;
+
return err;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net] gve: Set default duplex configuration to full
2023-07-06 4:41 [PATCH net] gve: Set default duplex configuration to full Junfeng Guo
@ 2023-07-06 8:03 ` Leon Romanovsky
2023-07-07 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2023-07-06 8:03 UTC (permalink / raw)
To: Junfeng Guo; +Cc: netdev, jeroendb, pkaligineedi, shailend, haiyue.wang
On Thu, Jul 06, 2023 at 12:41:28PM +0800, Junfeng Guo wrote:
> 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: 7e074d5a76ca ("gve: Enable Link Speed Reporting in the driver.")
> Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
> ---
> drivers/net/ethernet/google/gve/gve_ethtool.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net] gve: Set default duplex configuration to full
2023-07-06 4:41 [PATCH net] gve: Set default duplex configuration to full Junfeng Guo
2023-07-06 8:03 ` Leon Romanovsky
@ 2023-07-07 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-07 2:20 UTC (permalink / raw)
To: Junfeng Guo; +Cc: netdev, jeroendb, pkaligineedi, shailend, haiyue.wang
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 6 Jul 2023 12:41:28 +0800 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net] gve: Set default duplex configuration to full
https://git.kernel.org/netdev/net/c/0503efeadbf6
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:[~2023-07-07 2:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-06 4:41 [PATCH net] gve: Set default duplex configuration to full Junfeng Guo
2023-07-06 8:03 ` Leon Romanovsky
2023-07-07 2:20 ` 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).