Hi, All<br><br>I've been reading MDIO code, tiny though but it still puzzled me for its usage.<br>MDIO is an hardware interface for the MAC to set/get PHY configuration/status.<br><br>Linux manipulates MDIO through:<br>struct net_device -&gt;do_ioctl -&gt; mdio_mii_ioctl -&gt; mdio_read/mdio_write<br><br>Question:<br>A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY?<br>&nbsp;&nbsp;&nbsp;&nbsp; If so , how?<br><br>B: what's the usage of this net device ioctl?<br>&nbsp;&nbsp;&nbsp; I found an user-space package&nbsp; mii-tool create a socket first and then use the socket handle for ioctl<br>&nbsp;&nbsp;&nbsp; to query lots of PHY information.<br>&nbsp;&nbsp;&nbsp; Is there any other typical usage of&nbsp; it?<br><br><br>thanks<br>bill<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>        
<br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>