PERFORCE change 161799 for review
Marko Zec
zec at FreeBSD.org
Sat May 9 01:38:21 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161799
Change 161799 by zec at zec_tpx32 on 2009/05/09 01:37:53
Add a mbuf flag for recording when an mbuf get handed over
from one vnet to another. This will primarily be used to
avoid LORs / deadlocks when mbuf resulting from a write on
a socket in one vnet gets looped back in the opposite direction
in another vnet.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/sys/mbuf.h#9 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/sys/mbuf.h#9 (text+ko) ====
@@ -200,6 +200,7 @@
#define M_PROTO7 0x00100000 /* protocol-specific */
#define M_PROTO8 0x00200000 /* protocol-specific */
#define M_FLOWID 0x00400000 /* flowid is valid */
+#define M_XVNET 0x00800000 /* mbuf crossed from one vnet to another */
/*
* For RELENG_{6,7} steal these flags for limited multiple routing table
* support. In RELENG_8 and beyond, use just one flag and a tag.
@@ -219,7 +220,7 @@
*/
#define M_COPYFLAGS \
(M_PKTHDR|M_EOR|M_RDONLY|M_PROTOFLAGS|M_SKIP_FIREWALL|M_BCAST|M_MCAST|\
- M_FRAG|M_FIRSTFRAG|M_LASTFRAG|M_VLANTAG|M_PROMISC|M_FIB)
+ M_FRAG|M_FIRSTFRAG|M_LASTFRAG|M_VLANTAG|M_PROMISC|M_FIB|M_XVNET)
/*
* External buffer types: identify ext_buf type.
More information about the p4-projects
mailing list