Subject: Re: where is ifp->if_baudrate used?
To: None <>
From: Izumi Tsutsui <>
List: tech-net
Date: 03/18/2007 14:42:33 wrote:

> It may be intended for use by SNMP agents.

Hmm, intended but currently unused?

> > Currently only a few drivers have it, and if it isn't initialized
> > in the driver attacments, it will be set to default 10Mbps in
> > sys/net/if_ethersubr.c:ether_ifattach().
> > I wonder if we should set it to proper speed manually or not.
> A lot of device drivers know the link speed; it's even reportable via
> ifconfig.  It would be nice if they could set it.

If a device has MII, if_baudrate will be set in mii_phy_statusmsg()
via mii_phy_update(), so I guess we don't have to have explicit
initialization on such interface during attach, right?
Izumi Tsutsui