]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
eth: fbnic: Add support to read lane count
authorMohsin Bashir <mohsin.bashr@gmail.com>
Wed, 24 Sep 2025 18:44:45 +0000 (11:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 27 Sep 2025 00:27:35 +0000 (17:27 -0700)
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: Mohsin Bashir <mohsin.bashr@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250924184445.2293325-1-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c

index d55d2ac1c3b9cce330af24f7d8ccf8fc4c3d16e3..a1c2db69b198a0a8ecb0d5429e0f3620e3fcc375 100644 (file)
@@ -1864,6 +1864,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 |