From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0074.outbound.protection.outlook.com [65.55.169.74]) by dpdk.org (Postfix) with ESMTP id 7AC93C5D8 for ; Fri, 29 Jan 2016 08:46:47 +0100 (CET) Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.54.52) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (TLS) id 15.1.390.13; Fri, 29 Jan 2016 07:46:43 +0000 From: Jerin Jacob To: Date: Fri, 29 Jan 2016 13:15:55 +0530 Message-ID: <1454053555-28850-5-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1454053555-28850-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> <1454053555-28850-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.54.52] X-ClientProxiedBy: BM1PR01CA0030.INDPRD01.PROD.OUTLOOK.COM (25.163.198.165) To BY1PR0701MB1723.namprd07.prod.outlook.com (25.162.111.142) X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 2:/jrpOeGN+7b0pSuky1wbORo2RY7kStseGolT6ibwlVnOhwI8oV+rqJFqgYnbLNQ2j7JU+QRqG/syVrZQqxIUQ9JPbisHD/HByCm9X2bnDS96CV3afP57yx0xUV8Hfskh1dhI8Kc4Tv+gP9pmare1oA==; 3:9M/U0JsujI4A0Fx9054jxSBz3UWlFOBkgasFAYDesiepp02T6jGCwMF/zJ4en7BY8rmTfVGQB7LsdRjhxexGO/D5QRNXP6Yv4wh2vG90qVuMa2TwryVthBdAdOl0bD8E; 25:6KVqUxv86aZQbRjrTf7psIgzJfEWw2RaA34pNRk7q5y3UwFL20OZk+07NuHd7F7VpG+VNf+1PQXSo+Uy+6wPv07IvMEqX8Ly3hQSmxCrsdMAtUzif6Wr9o3KrG7+epxtaJbU5a6lQX+6Cq4D2FIcte5b/WcTKlT9DdX+CAJ44cE7CGc3vhZ5JsxvyMU30DKMYTYc+8cGOCTMtXJdHdn74keMop0uq6EE7t8+xTlG+sVYqiai3rl6llqWPuIReuvQ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1723; X-MS-Office365-Filtering-Correlation-Id: 90c704e0-7012-4ffc-982a-08d328805688 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 20:tUGP7827jD+jiltaQ5lnzkUC/fdBqVGPPCBKeNJbS/ZTLXGcgT0KhmFbl5eioMfp8AlUrvweZcQfH3YFOjAc/vgKHDjyX8/WHkCZ/MPv27fp+mPOKtOGuJvTWYxinzB5UdecCW2Ft8sB+Ykivdg+PYzdwuevmjDmDryslTsayEWirjTZ4FD0NoalmlcBjr9r7wfdgAPp4lmuImAQKljgzQiow0rdbTCPtL2CTYdX/UBpeunwTx/aSZuLi6BNtA9UFI7zyET4eB4x23CqGX6Gzw/Ol8kfg5noCoBSev6UH1kjCnzaPTUiikfI8SfxdZ/jGzg4RbpYSUk4K/oWOVD+qDgu/mxNMZHpHDFbtJwUd9t0mP3s3h0XplvDkAOvA8VyMVTNOjxIpze3G2aIjUhhE3opBiz9nvwjHUrbvGvEdQEpX6UgsZmhzbPL7a+zYvryGeDcKwkDHyQgRvx+h7BAN4vZvy/MGEQ9l0nfM6HU7ZNNqlMUn/+rhHD7+MVTaZiTuHBMli9t2z5TbNqF63IY61t5qAgmlvJKR9TcFDIbhKARmYp2vTu5SHv6rZ62ENlTLkg9WqJ/osnsAgvk4aC8FhuNfr78D6vJWvNHSZv/RSo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:eg7E8Mg4ShTpx0IJrWtjlYNkQhpW1qudqwoK+duC2hN2XhMCM/yi63WMn6KPmp7B1d/OxIigUzp2eKMJVoj2QFy2nvZSFnjY6z1NqfTpRiZr0RDiw3vadgYT/jy0eajTI5Ttdca98VpVtph7h9YDgTHwMmdkUgofbQtRjdG9SvjPrxuaiEikeXvlfxvm31K4VDe765hAM2x+qTzx6C7fQPurzRJurCBGnID24rPs3px/MP4NMLRk8bnoTP23Is02h7XW6FDXL3TusNrli8Rrq64ff3JxBRohgCsFocHNwU79oMqIAGSZKzTRWkP4BChMVWBw5it7nU2xRJOeTjf+Ua9YKt9N+8AggU8ZOv0+59hXCybCXNJfZDVG0F8wrYLx X-Forefront-PRVS: 083691450C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(50226001)(5008740100001)(122386002)(40100003)(1096002)(3470700001)(92566002)(33646002)(3846002)(586003)(48376002)(4326007)(6116002)(42186005)(2906002)(76176999)(19580405001)(107886002)(19580395003)(4001430100002)(110136002)(36756003)(47776003)(2351001)(87976001)(50466002)(5001960100002)(5003940100001)(189998001)(229853001)(2950100001)(77096005)(66066001)(5004730100002)(50986999)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1723; 23:CjcNDaiRmiHlktxu8+VjIW1ahZqHkZ1ofpGrLeX?= =?us-ascii?Q?nIdm5m502nfPrR7Sdivvd9Ki0QtyXU7rO+uKTInNRv2jwhDusA10BUQ56CN5?= =?us-ascii?Q?vlWajJzLOV6dh7G6J8wfNBrivl+r46g4anvutuGY482WP+47YZpZ+ELRP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y8K5/T3hSJ+E68yfmpCD/YInVGxoVFfiKz1mI2o?= =?us-ascii?Q?iMG14yP8=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 5:0Y2jTaigCtTiIDAYx8If5zx5gV3WJzwGaZO7Y8ePM3BPnNOYQdWiy3HMiIdeFCFgLeLJiZWAsqnhMidyaVCOh8GCyjfMYIxIIoJf9y0CS3D/aiq8tNG0Dz03lLRKE9e9LF85YOPKZUtdxKUZGV7U8g==; 24:ImZVxvAynqErcpiJpLTpoE56A31GM/JNsZdbGV5xEnj9mYJjdsD9oKqZEQQgrd0PjfXTMctJI+x9XDkGsJ6bx5Wlb1cc4csM3MvZK+ODYWw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2016 07:46:43.7088 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Cc: viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v4 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: Fri, 29 Jan 2016 07:46:48 -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 8710dd7..16da821 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