From: Mohsin Bashir Date: Wed, 24 Sep 2025 18:44:45 +0000 (-0700) Subject: eth: fbnic: Add support to read lane count X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=20a2e46f9e4c3c9a8a17708f81db672a26738adc;p=users%2Fhch%2Fmisc.git 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 Signed-off-by: Mohsin Bashir Reviewed-by: Simon Horman Link: https://patch.msgid.link/20250924184445.2293325-1-mohsin.bashr@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c index d55d2ac1c3b9..a1c2db69b198 100644 --- a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c +++ b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c @@ -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 |