1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

- Call if_link_state_change() for each vlan, when link changes

on parent.
- Remove route.h include.
- Fix comment about MII.

Sponsored by:	Rambler
Reviewed by:	yar
This commit is contained in:
Gleb Smirnoff 2005-04-20 12:16:41 +00:00
parent 8b72a3f693
commit 984be3efbf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145323

View File

@ -62,7 +62,6 @@
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/if_vlan_var.h>
#include <net/route.h>
#ifdef INET
#include <netinet/in.h>
@ -224,7 +223,7 @@ vlan_setmulti(struct ifnet *ifp)
*/
extern void (*vlan_input_p)(struct ifnet *, struct mbuf *);
/* For MII eyes only... */
/* For if_link_state_change() eyes only... */
extern void (*vlan_link_state_p)(struct ifnet *, int);
static int
@ -819,11 +818,9 @@ vlan_link_state(struct ifnet *ifp, int link)
VLAN_LOCK();
LIST_FOREACH(ifv, &ifv_list, ifv_list) {
if (ifv->ifv_p == ifp) {
ifv->ifv_if.if_link_state = ifv->ifv_p->if_link_state;
rt_ifmsg(&(ifv->ifv_if));
KNOTE_UNLOCKED(&ifp->if_klist, link);
}
if (ifv->ifv_p == ifp)
if_link_state_change(&ifv->ifv_if,
ifv->ifv_p->if_link_state);
}
VLAN_UNLOCK();
}