diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-04-23 10:59:40 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-04-23 10:59:40 +0000 |
commit | bf5b2167ac0cacf1ff816efc0f73ed8e20386341 (patch) | |
tree | add4802821083cfeb421bf310a555a943e1a5c29 /sys/net/if_dead.c | |
parent | c797841f0da1dbdd3f6280d977851c0b16d96d9c (diff) | |
download | FreeBSD-src-bf5b2167ac0cacf1ff816efc0f73ed8e20386341.zip FreeBSD-src-bf5b2167ac0cacf1ff816efc0f73ed8e20386341.tar.gz |
Move portions of data structure initialization from if_attach() to
if_alloc(), and portions of data structure destruction from if_detach()
to if_free(). These changes leave more of the struct ifnet in a
safe-to-access condition between alloc and attach, and between detach
and free, and focus on attach/detach as stack usage events rather than
data structure initialization.
Affected fields include the linkstate task queue, if_afdata lock,
address lists, kqueue state, and MAC labels. ifq_attach() ifq_detach()
are not moved as ifq_attach() may use a queue length set by the device
driver between if_alloc() and if_attach().
MFC after: 3 weeks
Diffstat (limited to 'sys/net/if_dead.c')
0 files changed, 0 insertions, 0 deletions