PERFORCE change 118601 for review
Kip Macy
kmacy at FreeBSD.org
Sun Apr 22 20:07:15 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=118601
Change 118601 by kmacy at kmacy_vt-x:opentoe_init on 2007/04/22 20:06:37
add m_priority field for tracking packet type and which queue it belongs to
Affected files ...
.. //depot/projects/opentoe/sys/sys/mbuf.h#6 edit
Differences ...
==== //depot/projects/opentoe/sys/sys/mbuf.h#6 (text+ko) ====
@@ -79,9 +79,9 @@
#endif /* _KERNEL */
#if defined(__LP64__)
-#define M_HDR_PAD 6
+#define M_HDR_PAD 4
#else
-#define M_HDR_PAD 2
+#define M_HDR_PAD 0
#endif
/*
@@ -94,6 +94,7 @@
int mh_len; /* amount of data in this mbuf */
int mh_flags; /* flags; see below */
short mh_type; /* type of data in this mbuf */
+ uint16_t mh_priority; /* general priority field for this packet */
uint8_t pad[M_HDR_PAD];/* word align */
};
@@ -159,6 +160,7 @@
#define m_len m_hdr.mh_len
#define m_data m_hdr.mh_data
#define m_type m_hdr.mh_type
+#define m_priority m_hdr.mh_priority
#define m_flags m_hdr.mh_flags
#define m_nextpkt m_hdr.mh_nextpkt
#define m_act m_nextpkt
More information about the p4-projects
mailing list