Re: link-state change for virtual interfaces

Rin Okuyama <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
Hi,

On 2024/09/26 1:54, Roy Marples wrote:
> 1) shmif_mediachange() should not test ifp->if_link_state, it should just call if_link_state_change()
> 
> 2) shmif_mediastatus() does not set IFM_AVALID or IFM_ACTIVE in ifm_status

I've committed fix and requested to pullup to netbsd-10:
https://releng.netbsd.org/cgi-bin/req-10.cgi?show=924

Let me thank you again for careful review!!

> This probably let to the addition of linkstate to `ifconfig -v` which wasn't really needed.
> If it sets IFM_AVALID then the status line as shown anove will appear.

Yes, now "linkstate:" line became redundant for shmif(4). But
we hope not to remove this feature from ifconfig(8); It is still
useful for debugging, e.g., broken if/mii devices. Also, it gets
output only if `-v` option is specified.

Thanks,
rin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.