1. 08 Apr, 2024 38 commits
  2. 06 Apr, 2024 2 commits
    • David S. Miller's avatar
      Merge branch 'phy-listing-link_topology-tracking' · 267e3175
      David S. Miller authored
      Maxime Chevallier says:
      
      ====================
      Introduce PHY listing and link_topology tracking
      
      This is V11 for the link topology addition, allowing to track all PHYs
      that are linked to netdevices.
      
      This V11 addresses the various netlink-related issues that were raised
      by Jakub, and fixes some typos in the documentation.
      
      As a remainder, here's what the PHY listings would look like :
       - eth0 has a 88x3310 acting as media converter, and an SFP module with
         an embedded 88e1111 PHY
       - eth2 has a 88e1510 PHY
      
      PHY for eth0:
      PHY index: 1
      Driver name: mv88x3310
      PHY device name: f212a600.mdio-mii:00
      Downstream SFP bus name: sfp-eth0
      PHY id: 0
      Upstream type: MAC
      
      PHY for eth0:
      PHY index: 2
      Driver name: Marvell 88E1111
      PHY device name: i2c:sfp-eth0:16
      PHY id: 21040322
      Upstream type: PHY
      Upstream PHY index: 1
      Upstream SFP name: sfp-eth0
      
      PHY for eth2:
      PHY index: 1
      Driver name: Marvell 88E1510
      PHY device name: f212a200.mdio-mii:00
      PHY id: 21040593
      Upstream type: MAC
      
      Ethtool patches : https://github.com/minimaxwell/ethtool/tree/link-topo-v6
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      267e3175
    • Maxime Chevallier's avatar
      net: ethtool: Allow passing a phy index for some commands · 841942bc
      Maxime Chevallier authored
      Some netlink commands are target towards ethernet PHYs, to control some
      of their features. As there's several such commands, add the ability to
      pass a PHY index in the ethnl request, which will populate the generic
      ethnl_req_info with the relevant phydev when the command targets a PHY.
      Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      841942bc