svn commit: r243410 - user/andre/tcp_workqueue/sys/sys
Andre Oppermann
andre at FreeBSD.org
Thu Nov 22 17:00:35 UTC 2012
Author: andre
Date: Thu Nov 22 17:00:34 2012
New Revision: 243410
URL: http://svnweb.freebsd.org/changeset/base/243410
Log:
Rearrange the fields in struct m_ext to get better packing on 64bit
architectures.
Modified:
user/andre/tcp_workqueue/sys/sys/mbuf.h
Modified: user/andre/tcp_workqueue/sys/sys/mbuf.h
==============================================================================
--- user/andre/tcp_workqueue/sys/sys/mbuf.h Thu Nov 22 16:48:58 2012 (r243409)
+++ user/andre/tcp_workqueue/sys/sys/mbuf.h Thu Nov 22 17:00:34 2012 (r243410)
@@ -143,13 +143,13 @@ struct pkthdr {
*/
struct m_ext {
caddr_t ext_buf; /* start of buffer */
+ volatile u_int *ref_cnt; /* pointer to ref count info */
+ u_int ext_size; /* size of buffer, for ext_free */
+ int ext_type; /* type of external storage */
void (*ext_free) /* free routine if not the usual */
(void *, void *);
void *ext_arg1; /* optional argument pointer */
void *ext_arg2; /* optional argument pointer */
- u_int ext_size; /* size of buffer, for ext_free */
- volatile u_int *ref_cnt; /* pointer to ref count info */
- int ext_type; /* type of external storage */
} __aligned(sizeof(void *));
/*
More information about the svn-src-user
mailing list