Date: Thu, 23 Apr 2009 10:59:40 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net if.c Message-ID: <200904231059.n3NAxvAU082924@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-04-23 10:59:40 UTC FreeBSD src repository Modified files: sys/net if.c Log: SVN rev 191417 on 2009-04-23 10:59:40Z by rwatson 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 Revision Changes Path 1.323 +21 -24 src/sys/net/if.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904231059.n3NAxvAU082924>