eth: fbnic: Add support to read lane count
Subsystems (3)
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
@@ -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
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: 2Signed-off-by Jakub Kicinski <[email protected]>
It's not not entirely clear to me why Jakub's tag is here.
Quoted 1 line
Signed-off-by Mohsin Bashir <[email protected]>
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.
...
Jakub Kicinski
maintainerQuoted 3 lines · On Thu, 25 Sep 2025 11:16:42 +0100 Simon Horman wrote:
Quoted 1 line
Signed-off-by Jakub Kicinski <[email protected]>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.
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