From: Shiro Y. <sh...@mi...> - 2005-03-18 08:59:50
|
Hi Jesse, With reference to your information, I understand that whenever a fibre gigabit Ethernet adapter is active, we always get a value of 1000Mbps. I guess I can use it for the nominal value of ifSpeed defined in RFC1213. Regarding the net-snmp capability of detecting 1000Mbps, the original net-snmp doesn't come with this feature. However, I wrote a simple patch which implements it. I have tested it with a couple of gigabit Ether cards (1000BASSE-T) so at least it works for some. Anyway, thank you for your information, I find it very useful. Shiro Brandeburg, Jesse wrote: >>I am using linux kernel 2.4.21 and e1000 v.5.5.4 driver, >>and encoutered a problem when excuting ioctl(SIOCGMIIPHY) >>on 1000BASE-SX, a fibre channel gigabit ethernet card. >>It appears as though the operation is not supported. >> >>Refering to the code, function e1000_ioctl() and >>e1000_mii_ioctl() returns EOPNOTSUPP when adapter->hw.media_type >>is not "e1000_media_type_copper", and I suspect this >>could be the reason for the failure. I have tested ioctl() >>with 1000BASE-T card and it has succeeded. >> >>What I would like to know is whether ioctl(SIOCGMIIPHY) >>will be supported in near future release of e1000 or not. >>I need this function to get correct network speed when >>retrieving data via net-snmp snmpd daemon, and I would >>appreciate any feedback from you. >> >>Best regards, >>Shiro > > > Greetings Shiro, that IOCTL is meant to report the phy address only, > which > our adapters only use 0. Because of the way that Fiber works link speed > and duplex is always 1Gigabit Full duplex if the media type is Fiber. > There are not the same MII registers available when using a fiber PHY. > > Get MIIPHY is not meant to return speed, in fact the ethtool IOCTLS are > better suited to return link speed and duplex, (and will return the > right thing for fiber and copper) > > I doubt that we will be changing the IOCTL interface to fix net-snmp. > Are you sure that net-snmp works correctly on (other -non e1000) fiber > adapters? > > Also as a side note our e1000 adapters are not fiber channel, just fiber > gigabit Ethernet adapters. > > Let us know if you have other questions. > Jesse |