summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpibtn.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-15 04:30:00 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-15 04:30:00 +0000
commit0fc829da87b8e58d8f08eb4c42a69e09a1c48cbd (patch)
tree8d023f56bf5240fec3c6db972d1e3e455e37937a /sys/dev/acpi/acpibtn.c
parent62786f1a674bd0a02529358ee586e862a752aba3 (diff)
rework vlan config to make it mpsafe and done by standard ioctls
configuration of the vlan parent interface and the vlan id should come via the IFPARENT and VNETID ioctls now. the vlan specific ioctls are still available via a compat layer, but that will go away a bit further into this release cycle. the parent interface may only be configured while the vlan is down. the vnetid may be changed at runtime, but will generate link state changes across that event. the vlan is implicitily brought up when an address is assigned, which brings it in line with all our other network drivers. the legacy vlan ioctl still imply bringing the interface up because that's what it used to do. the code that brings vlans up and down is now simplified because it no longer supports changing the parent at run time. most of that code now adds state to the parent when bringing the vlan up, and bringing the interface down just removes it in reverse. these simplifications in turn make it possible for us to transmit packets on vlan interfaces without holding the big lock, so its now marked as MPSAFE. ok jmatthew@ sthen@ mpi@
Diffstat (limited to 'sys/dev/acpi/acpibtn.c')
0 files changed, 0 insertions, 0 deletions