Date: Fri, 15 May 2009 23:27:42 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 162137 for review Message-ID: <200905152327.n4FNRgUo089858@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162137 Change 162137 by zec@zec_tpx32 on 2009/05/15 23:26:43 When detaching and ifnet, clear ifp->if_afdata_initialized after completing iteration over all protocol families for possible dom_ifdetach. ifp->if_afdata_initialized needs to be clear for if_attach() to work properly on ifnets moved from one vnet to another. Affected files ... .. //depot/projects/vimage-commit2/src/sys/net/if.c#61 edit Differences ... ==== //depot/projects/vimage-commit2/src/sys/net/if.c#61 (text+ko) ==== @@ -1028,6 +1028,7 @@ ifp->if_afdata[dp->dom_family]); } IF_AFDATA_UNLOCK(ifp); + ifp->if_afdata_initialized = 0; if (!vmove) ifq_detach(&ifp->if_snd);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905152327.n4FNRgUo089858>