PERFORCE change 162137 for review
Marko Zec
zec at FreeBSD.org
Fri May 15 23:27:44 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162137
Change 162137 by zec at 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);
More information about the p4-projects
mailing list