]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove link state change callback handler. There is no need to
authorPyun YongHyeon <yongari@FreeBSD.org>
Wed, 22 Jun 2011 02:18:45 +0000 (02:18 +0000)
committerPyun YongHyeon <yongari@FreeBSD.org>
Wed, 22 Jun 2011 02:18:45 +0000 (02:18 +0000)
commit161bc8e475a1a807d179970bb4856b8c9edb5ea3
tree7ac83a91034a8594809a1f90e094403a28f32fb5
parent32638a3a0105e56e778185dc4bca0377ebb8ea24
Remove link state change callback handler.  There is no need to
register both status change and link state change callbacks.
Implement checking valid link in state change callback and poll
active link state in vr_tick().  This allows immediate detection of
lost link as well as protecting driver from frequent link flips during
link renegotiation.  taskq implementation was removed because driver
now needs to poll link state in vr_tick().
While I'm here do not report current link state if interface is not
running.

Tested by: n_hibma
MFC after: 1 week
sys/dev/vr/if_vr.c
sys/dev/vr/if_vrreg.h