PERFORCE change 161245 for review
Marko Zec
zec at FreeBSD.org
Tue Apr 28 12:03:35 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161245
Change 161245 by zec at zec_amdx2 on 2009/04/28 12:02:57
VIMAGE kernels work much better if curvnet is properly set
before processing netisrs.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/net/netisr.c#3 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/net/netisr.c#3 (text+ko) ====
@@ -43,6 +43,7 @@
#include <sys/resourcevar.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
+#include <sys/vimage.h>
#include <machine/atomic.h>
#include <machine/cpu.h>
#include <machine/stdarg.h>
@@ -142,7 +143,10 @@
IF_DEQUEUE(ni->ni_queue, m);
if (m == NULL)
break;
+ VNET_ASSERT(m->m_pkthdr.rcvif != NULL);
+ CURVNET_SET(m->m_pkthdr.rcvif->if_vnet);
ni->ni_handler(m);
+ CURVNET_RESTORE();
}
}
More information about the p4-projects
mailing list