* [PATCH net-next] eth: fbnic: Add support to read lane count
@ 2025-09-24 18:44 Mohsin Bashir
2025-09-25 10:16 ` Simon Horman
2025-09-27 1:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Mohsin Bashir @ 2025-09-24 18:44 UTC (permalink / raw)
To: netdev
Cc: alexanderduyck, andrew+netdev, davem, edumazet, horms,
kernel-team, kuba, mohsin.bashr, pabeni, vadim.fedorenko
We are reporting the lane count in the link settings but the flag is not
set to indicate that the driver supports lanes. Set the flag to report
lane count.
~]# ethtool eth0 | grep Lanes
Lanes: 2
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
---
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
index b4ff98ee2051..f60a2338765c 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
@@ -1804,6 +1804,7 @@ fbnic_get_rmon_stats(struct net_device *netdev,
}
static const struct ethtool_ops fbnic_ethtool_ops = {
+ .cap_link_lanes_supported = true,
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
ETHTOOL_COALESCE_RX_MAX_FRAMES,
.supported_ring_params = ETHTOOL_RING_USE_TCP_DATA_SPLIT |
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] eth: fbnic: Add support to read lane count
2025-09-24 18:44 [PATCH net-next] eth: fbnic: Add support to read lane count Mohsin Bashir
@ 2025-09-25 10:16 ` Simon Horman
2025-09-26 21:10 ` Jakub Kicinski
2025-09-27 1:10 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Simon Horman @ 2025-09-25 10:16 UTC (permalink / raw)
To: Mohsin Bashir
Cc: netdev, alexanderduyck, andrew+netdev, davem, edumazet,
kernel-team, kuba, pabeni, vadim.fedorenko
On Wed, Sep 24, 2025 at 11:44:45AM -0700, Mohsin Bashir wrote:
> We are reporting the lane count in the link settings but the flag is not
> set to indicate that the driver supports lanes. Set the flag to report
> lane count.
>
> ~]# ethtool eth0 | grep Lanes
> Lanes: 2
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
It's not not entirely clear to me why Jakub's tag is here.
> Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
I agree this i correct because linkmodes_prepare_data()
will zero the lanes value, after retrieving it from the driver,
unless cap_link_lanes_supported is set.
Reviewed-by: Simon Horman <horms@kernel.org>
...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] eth: fbnic: Add support to read lane count
2025-09-25 10:16 ` Simon Horman
@ 2025-09-26 21:10 ` Jakub Kicinski
0 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2025-09-26 21:10 UTC (permalink / raw)
To: Simon Horman
Cc: Mohsin Bashir, netdev, alexanderduyck, andrew+netdev, davem,
edumazet, kernel-team, pabeni, vadim.fedorenko
On Thu, 25 Sep 2025 11:16:42 +0100 Simon Horman wrote:
> > Signed-off-by: Jakub Kicinski <kuba@kernel.org>
>
> It's not not entirely clear to me why Jakub's tag is here.
Internal review FWIW. Since reviews than internally don't count
for much upstream I opted for using SoB. Probably also wrong but shrug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] eth: fbnic: Add support to read lane count
2025-09-24 18:44 [PATCH net-next] eth: fbnic: Add support to read lane count Mohsin Bashir
2025-09-25 10:16 ` Simon Horman
@ 2025-09-27 1:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-27 1:10 UTC (permalink / raw)
To: Mohsin Bashir
Cc: netdev, alexanderduyck, andrew+netdev, davem, edumazet, horms,
kernel-team, kuba, pabeni, vadim.fedorenko
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 24 Sep 2025 11:44:45 -0700 you wrote:
> We are reporting the lane count in the link settings but the flag is not
> set to indicate that the driver supports lanes. Set the flag to report
> lane count.
>
> ~]# ethtool eth0 | grep Lanes
> Lanes: 2
>
> [...]
Here is the summary with links:
- [net-next] eth: fbnic: Add support to read lane count
https://git.kernel.org/netdev/net-next/c/20a2e46f9e4c
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] 4+ messages in thread
end of thread, other threads:[~2025-09-27 1:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 18:44 [PATCH net-next] eth: fbnic: Add support to read lane count Mohsin Bashir
2025-09-25 10:16 ` Simon Horman
2025-09-26 21:10 ` Jakub Kicinski
2025-09-27 1:10 ` 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).