From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0076.outbound.protection.outlook.com [157.56.111.76]) by dpdk.org (Postfix) with ESMTP id 173EF8E8F for ; Mon, 14 Dec 2015 05:33:56 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.202.21) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (TLS) id 15.1.337.19; Mon, 14 Dec 2015 04:33:52 +0000 From: Jerin Jacob To: Date: Mon, 14 Dec 2015 10:02:56 +0530 Message-ID: <1450067576-18803-5-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1449765378-29563-1-git-send-email-jerin.jacob@caviumnetworks.com> <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.202.21] X-ClientProxiedBy: MA1PR01CA0009.INDPRD01.PROD.OUTLOOK.COM (25.164.117.16) To BLUPR0701MB1714.namprd07.prod.outlook.com (25.163.85.140) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 2:zkvVvP4Y5uMH2jC39jATdQVpL8cpvt7ngL23Jc71wuZh0f8dM/Kaiusa9I1YgRbWzrq3xP4JDl0seEO04HqfGW+B1x0w3ntTurDjL75zaOmWFHYtWAX8yUUFAvuw5Oeco3PUT+lzKjY2W3Hv5d5COw==; 3:mE/WKk1i5l9n6AikFVWuHvWkhLdksCngzrkAD+g9KsYUfde3p6/rbuR++xvarS5rYWUSjxXHkoZ2akqYxNVNKpuxmYpJQrkSwEaP7KqLLCXXxwb99giuxrUmAV9kSUXr; 25:1Ux1BEVf0OHjDdX4qZmzkswHJxWjGP/OeXpT5DZUEq/LljHM9S46NAAhA56+a9oeIUhJ2MAeJbIMtimtzTpQN+XYaoTO7TQs3stbRIScKDseYS2TPHHa8ZpOZWUbseqBK1vz0JDRRsgEZbLeAmpV9RIOHLoDUApXDZ1Htwj3ejfVAZuKbLiMAoLIqQacLnqf6Mey31NZ+0hNQhczksxx9v9grJfAkImFxlLBWcNgubglAKRfbEbpEdnF4SLhu5xZ1n0PGJ4RifG0HsC2P28cHg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 20:kPlO8/vLA0NcORG8zuhHPKkcDIT+w81veNzFfV4I0s6ytlTvI6JbUt99UnKQRaQeEoyG7r3nXipdHIdcmGUeOLXlYBgpRAxfcdi7DY4Mk/yjRUDjHi8JvQ95AJsCRH5XhIkUDlt5YE/lA/eMvA8TdhN7hQM0xroPCw0ZgkSCErFtz7i/XTUCqaJNUlGylD8zMPGIz+0qA/jL7CiSePhCqjjlz7QydGqU28glYPZMCaO39LvRFKEgUWlzDDnsIcWrtmc3XDcMaaw2tAC65ci2tCflySV21pNBwPi4N1HjcS/vY0K2jwvArDmm1x+3LJCtlDvzNripL71eAG2mZ1iXdInNsvlRAmxCLE32wG7PTpHycf5i1L5VkrZRrnAUit4pHXZidulnjHrSm+vYlPslRSE49pE3/NCQ2vfceeQDnUTkxDok4TUSxtxp73Y/ZjAgr3jXHPuJJcxpCMZou+DQxVvAkgRGXhD0v4QYeivjE5VCstQ98I86+2fPUfBjBVZrm0ImdGkyjemWBaFaTyIh5Vqj1qW8dBAOEq/rPIYRRAZnL/ILjozhavJiWZcxuTThBNBxxCZiYsLAOH+t3pX3nu3mkx4bk7aKY2EpkSgINqE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:5+4vgm5oz1AdyIlztJNZfv7Drli7caGZZ0F6fqHjhIce2lrr9G5BDxyjFqWS6ogzENk3cljOzJarHTCypFQVqpM9EUxj4dR/PwTljurQw3XgtG0IupptcHs04TfqP7hpcGp73OQ+wHofMfMr8smwnX2kYsPkkudZ95/L+ThQFWQt/rfL1ALBLAQ5QbQpGlZTe/aswm91KNhosPxjLxyFtCJiaAbT03fNwt8WzphSw3txLCOBh+2u7annYJvVMCZunvOJQtVl2Aze7mTdpX2sX+++OQpEs822xQ8HuHV8wfN5PIM6pMj4vUvlNqN8sYvsyd9HlAmh+4LTm24gppB7tbqlf7JP2YF3OHo3N6tbyC6sFdl0UpxWKLPWj/kfj6ArSbLgLJ1Nxpt/4FJnDa79cOxOktKvIC+t3dAudH6sA4i8EDxUoiluIfnpnn89dqTV X-Forefront-PRVS: 0790FB1F33 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(48376002)(19580395003)(42186005)(77096005)(50466002)(1096002)(50226001)(66066001)(47776003)(2950100001)(5001960100002)(5004730100002)(36756003)(189998001)(101416001)(5008740100001)(4001430100002)(110136002)(6116002)(586003)(3846002)(107886002)(106356001)(105586002)(40100003)(19580405001)(33646002)(5003940100001)(87976001)(229853001)(122386002)(76176999)(81156007)(97736004)(92566002)(50986999)(86362001)(2351001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:hPw/nsNMruZFV55D+LzHrC7pNLrv18QJwL7Txe/?= =?us-ascii?Q?hPVLBr4pHk69O5I44iwK6n/J5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?us-ascii?Q?/cpaHUILZJaMzc3wz2Umg76aqEuAbMxNc815x08Vq+uCPunlPVlMERiezdQy?= =?us-ascii?Q?lVoBjqFlLz3dDsakNo1QXSS6J91Kn5LMCjHrBMisUPWM8tDsH9hPx0tJFmbv?= =?us-ascii?Q?MpGyLiPyNMwsU3RUjYCY8aRWxEfhJcIrW+0JHugzOXrEeFQ1CvXH5eXdDgMl?= =?us-ascii?Q?0dfLpeZK+MAZHLHglp2MB+SV44P8zSNrl?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:ypvkHl+t0MiAqXWjzlt5YAYPKz8B42d8cBa/Mkzl0H46WQxhX+M6dU2/A1lkfV0a40pqUtg4y4sl5zGztA0sm9/gS8Y/8WrHcNXC/F7ZGTfShirjMmAUCUNvbKjvYjnGEuzOur1DDI+HVPBJHAZxYw==; 24:BPH5suVvI8INfx8DdzTp7uKdiPWc9RXsb+Dx804UUlNB+oJ75Bc4/is24YPCnp5Bj6Ouhwi/8X0oiJEV1UTzSAbS2MnF+5vZOqVMON81Cd0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2015 04:33:52.4845 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 4/4] cache/slow-path: reduce cache align requirement for 128-byte cache targets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 04:33:56 -0000 slow-path data structures need not be 128-byte cache aligned. Reduce the alignment to 64-byte to save the memory. No behavior change for 64-byte cache aligned systems as minimum cache line size as 64. Signed-off-by: Jerin Jacob Acked-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index bada8ad..4dbf73b 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -863,7 +863,7 @@ struct rte_eth_rxq_info { struct rte_eth_rxconf conf; /**< queue config parameters. */ uint8_t scattered_rx; /**< scattered packets RX supported. */ uint16_t nb_desc; /**< configured number of RXDs. */ -} __rte_cache_aligned; +} __rte_cache_min_aligned; /** * Ethernet device TX queue information structure. @@ -872,7 +872,7 @@ struct rte_eth_rxq_info { struct rte_eth_txq_info { struct rte_eth_txconf conf; /**< queue config parameters. */ uint16_t nb_desc; /**< configured number of TXDs. */ -} __rte_cache_aligned; +} __rte_cache_min_aligned; /** Maximum name length for extended statistics counters */ #define RTE_ETH_XSTATS_NAME_SIZE 64 -- 2.1.0