Date: Thu, 22 Nov 2012 17:00:34 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r243410 - user/andre/tcp_workqueue/sys/sys Message-ID: <201211221700.qAMH0YGT026798@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 *)); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211221700.qAMH0YGT026798>