Skip to contentSkip to conversation

eth: fbnic: Add support to read lane count

PATCH Applied Mohsin Bashir 4 participants 4 messages Sep 24, 2025 – Sep 27, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eth: fbnic: Add support to read lane count

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

---
 drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c +1 -0
index b4ff98ee2051..f60a2338765c 100644
@@ -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 |
Signature · 1 line
2.47.3
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Mohsin Bashir

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

It's not not entirely clear to me why Jakub's tag is here.

Quoted 1 line

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.

...

maintainer
#2 lore raw
Quoted 3 lines · On Thu, 25 Sep 2025 11:16:42 +0100 Simon Horman wrote:
Quoted 1 line

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.

#3 lore raw
In reply to Mohsin Bashir
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html