Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2009 06:11:36 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r193689 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb
Message-ID:  <200906080611.n586BadM017956@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Mon Jun  8 06:11:36 2009
New Revision: 193689
URL: http://svn.freebsd.org/changeset/base/193689

Log:
  reduce opportunity for false sharing in port_info

Modified:
  user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h

Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h	Mon Jun  8 05:33:08 2009	(r193688)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_adapter.h	Mon Jun  8 06:11:36 2009	(r193689)
@@ -97,11 +97,11 @@ struct port_info {
 	struct cmac	mac;
 	struct link_config link_config;
 	struct ifmedia	media;
-	struct mtx	lock;
-	uint8_t		port_id;
-	uint8_t		tx_chan;
-	uint8_t		txpkt_intf;
-	uint8_t         first_qset;
+	struct mtx	lock __aligned(128);
+	uint32_t	port_id __aligned(128);
+	uint32_t	tx_chan;
+	uint32_t	txpkt_intf;
+	uint32_t        first_qset;
 	uint32_t	nqsets;
 	int		link_fault;
 	int		watchdog_timer;
@@ -115,7 +115,7 @@ struct port_info {
 #define PORT_NAME_LEN 32
 	char            lockbuf[PORT_LOCK_NAME_LEN];
 	char            namebuf[PORT_NAME_LEN];
-};
+} __aligned(128);
 
 enum {				/* adapter flags */
 	FULL_INIT_DONE	= (1 << 0),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906080611.n586BadM017956>