cvs commit: src/sys/net if_var.h src/sys/net/vlan if_vlan.c
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sun Mar 16 08:33:10 PDT 2008
sephe 2008/03/16 08:30:20 PDT
DragonFly src repository
Modified files:
sys/net if_var.h
sys/net/vlan if_vlan.c
Log:
Rework vlan configuration processing:
- vlan config, unconfig and multicast filter programming is now serialized
by netisr0, so that no one could sneak in when a vlan interface's
serializer is released during configuration.
- vlan's serializer is released before reprogramming parent interface's
multicast filter to avoid possible dead lock.
- Factor out vlan_clrmulti() from vlan_unconfig() and vlan_setmulti().
- Register vlan module for the ifnet_detach_event
- Create per-cpu vlan trunk on parent interface. Creating and destroying
of these trunks is serialized by netisr0. Add a "staw man" vlan trunk
implementation using linked list. (*)
- Turn on vlan's IFF_RUNNING only if we are asked to do so.
- White space and minor style changes.
# (*) is not used on input path yet
Revision Changes Path
1.46 +2 -2 src/sys/net/if_var.h
1.30 +502 -163 src/sys/net/vlan/if_vlan.c
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_var.h.diff?r1=1.45&r2=1.46&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/vlan/if_vlan.c.diff?r1=1.29&r2=1.30&f=u
More information about the Commits
mailing list