Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/net
On 2019/12/05 14:29, SAITOH Masanobu wrote:
> Module Name: src
> Committed By: msaitoh
> Date: Thu Dec 5 05:29:28 UTC 2019
>
> Modified Files:
> src/sys/net: if_media.h
>
> Log Message:
> Fix previous comment change for ifm_media. It was correct.
>
> The real problem is that some driver misuse ifm_media as the current active
> media. struct mii_data has the current active media(mii_media_active). If a
> driver use mii(4), it can be use mii->mii_media_active for this purpose.
> struct ifmedia has no entry for this purpose. Some drivers have an entry
s/Some drivers/Some drivers not using mii(4)/
> in their own softc to keep the value, but some other's don't have it and
> they mistakenly use ifm_media.
>
> We might add a new entry to struct ifmedia in future to avoid this confusion
> and for simplify.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.67 -r1.68 src/sys/net/if_media.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
--
-----------------------------------------------
SAITOH Masanobu (msaitoh%execsw.org@localhost
msaitoh%netbsd.org@localhost)
Home |
Main Index |
Thread Index |
Old Index