svn commit: r230543 - user/luigi/netmap/sys/dev/netmap

Luigi Rizzo luigi at FreeBSD.org
Wed Jan 25 16:00:00 UTC 2012


Author: luigi
Date: Wed Jan 25 16:00:00 2012
New Revision: 230543
URL: http://svn.freebsd.org/changeset/base/230543

Log:
  align the struct netmap_kring to avoide cache contention

Modified:
  user/luigi/netmap/sys/dev/netmap/netmap_kern.h

Modified: user/luigi/netmap/sys/dev/netmap/netmap_kern.h
==============================================================================
--- user/luigi/netmap/sys/dev/netmap/netmap_kern.h	Wed Jan 25 15:58:11 2012	(r230542)
+++ user/luigi/netmap/sys/dev/netmap/netmap_kern.h	Wed Jan 25 16:00:00 2012	(r230543)
@@ -72,7 +72,7 @@ struct netmap_kring {
 	int	nkr_hwofs;	/* offset between NIC and netmap ring */
 	struct netmap_adapter *na;	 // debugging
 	struct selinfo si; /* poll/select wait queue */
-};
+} __attribute__((__aligned__(64)));
 
 /*
  * This struct is part of and extends the 'struct adapter' (or


More information about the svn-src-user mailing list