From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D12743F13 for ; Fri, 26 Apr 2024 10:27:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23E3C43C95; Fri, 26 Apr 2024 10:27:31 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2061.outbound.protection.outlook.com [40.107.237.61]) by mails.dpdk.org (Postfix) with ESMTP id 00142402EF; Fri, 26 Apr 2024 10:27:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CqCVIMnZ26BdCh3QhiWA8SrEjhtqm4E2TI6QMFIm2cK1plXRqG1ylBTTqVU8l16KkCbOq/7M5t2g0Olf4aN0djk59XaObzJeWgk3oTWeo/iJHa5TvXbKj+bTXLz1ykgvTNLTSWyI7Dj51OLpBZIbum6U7QwR9+WTavTAwEVAztRjn93HmCdCdvieg0NWMFnEwZVD94VQc3W7XerdEB09spwXsLD2i4mIGoFBWCcu+CzAjSa7g5E2PRQPLWio4ItrOz1yCRYHaGRHO65hShjDvH6TwKAqclu1YZ3E7geuEFmYdhQy7JbbWx/McYy7Whj3SWm1gmiUlLKcmwf5taWMMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iXDbfS3zKJTFqErbeyIyUdVbCZ+migOfXa/cMpTxH1s=; b=PCzVdt2eBTkRdFalr0gR6H4JPU3S3SNht2X2JZM+kfMqQiMEeA6FQopOYtQm1zxuTn8AE3GM0nFQWT7o/CFxB7N0XEdgh6BND/mJxvosRYUJs5KOx8vSj9JtvUvVIz+cEfG07qjmcLsIZJ67L0yjuz/DzhnEOrbBlwyTjWy5aimKa4jsFTCuRTcFm+RhJuzFURQtDk28MZw7l7jRWCFVyN5Paakj5KugJabevv7h9f4P96N6vI2VZ//Jwu+YHzSJ9e2e6CUKXdLhykRHD3PgIcrycpFaUG/Y2dWJ0b48vXlbVwm1WIyJRgZAnw5u5USo2Pg6TtgGYCq4AzAqWJL24w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXDbfS3zKJTFqErbeyIyUdVbCZ+migOfXa/cMpTxH1s=; b=M/aEtjjFGjkmd7sd4LG6XBAOavPyksn/WPXnlYhwEMj3drn+za6uNksWSpeFQR0oU8NCB9n3w7E10/XtZYvw64VuPSMMCzBvHITKSPGHe8JNFtUrOqDGEThhWeKvpweZ+iFqHLAtYM4hMJGjrWhRHl7LxUASYGWieT/VWWsQMGc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DM4PR12MB7647.namprd12.prod.outlook.com (2603:10b6:8:105::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 08:27:24 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7519.030; Fri, 26 Apr 2024 08:27:24 +0000 Message-ID: <6b207998-1219-459c-8099-77948744e9da@amd.com> Date: Fri, 26 Apr 2024 09:27:20 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net/af_packet: cache align Rx/Tx structs To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , dev@dpdk.org Cc: hofors@lysator.liu.se, =?UTF-8?Q?Morten_Br=C3=B8rup?= , Stephen Hemminger , Thomas Monjalon , "John W . Linville" , stable@dpdk.org References: <20240423090813.94110-1-mattias.ronnblom@ericsson.com> <20240426073824.100386-1-mattias.ronnblom@ericsson.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTA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se5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240426073824.100386-1-mattias.ronnblom@ericsson.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0148.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:188::9) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB7647:EE_ X-MS-Office365-Filtering-Correlation-Id: e3031850-1599-49d6-6046-08dc65cab33b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NGlCVkJ0WElCYXlDL2ZYQW4yMzlBQWdOaG5qT2RiY1hFeHdqcXhyYXdYcmRn?= =?utf-8?B?RlRuUXVtc2JYcXNjbWdhZU1LT1drcEJ0alYxRlRCNTRvbDd4aTdyZUtKSGlP?= =?utf-8?B?R3daOHp1dHhPL0k3NnVWMjVFSkp5dFdXOGJoR09lUEU3bDRhQVlDSmFSdlgy?= =?utf-8?B?eVZNTUlXOGVacjNQeFExQi9rSzd2UC9tcGlsdTcyRFkvU1Y4M1R5ZlJaeDMw?= =?utf-8?B?bHdCQnZtajRRMlcyNDVSc2t5YUhZdkljNG9kRjd3cVpoZHNCQ2FOTW1FQTEz?= =?utf-8?B?WjdpaXFBckhGNE9JYnlWTmJLVFNXWnZ2U3FkUGtvZ2liZS9NMjFrMkRoSFBY?= =?utf-8?B?TmRZMkVnK1RSaGJTUkxsdERVUkhZOXdHZEdyNHVZYVhDcW9HeWhONUswYnFG?= =?utf-8?B?bFB4TVFJU2Zkb1RBWi9VenljTzFpS1NTN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hIL2ZkTU1ZWHNFZnFCb09heW5JSEJWbllWSGZxQ1kv?= =?utf-8?B?N2Q5TTVzZWpwQWRTR0kwdExMNnBrWklteW1rbjBJbmluY2F1M09YUU8rR2Zm?= =?utf-8?B?Zzg5WjJ5cGJId0diM0psbHQyYTRIYm5JRno4dzA5VjcxRGx2M2k5WDBMUGNm?= =?utf-8?B?VU5TcWE2dWhMa0YxWlhHRGZzVnVTeFowSHhRMUJUTklBNlhObHhVdlVEZWEz?= =?utf-8?B?QmdmT05ERmE2dm9wSE5kLzlEMDJpVlMyWWtWMWdrOXdKRFpaS0p4Y3owRU9Z?= =?utf-8?B?UXMxc2FaY2dkdzdWeGVQbmtJa0dHK3FnQ1cxVVdjSmliV3dEVlM4SlpzVU1U?= =?utf-8?B?MEFBVXM4MVk4ZWh2Y0lCUnkyYVhQTXFmMmZtQ2d5eTI3bDJkNHdIcEFBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N1F3V3Nvd2ZYb0Q3Z3lCWHkrZjU4c2lScGdlNDFXN0Z5Rmx4dTVZMmFBVzJV?= =?utf-8?B?dm5FeUVvb0s0eVJFcC9oaUY2K2VaUUZKTE8ybkEvbE55cmZxemVSbWV3QU1C?= =?utf-8?B?L1BvS0FkclYvRm42MENOaEdGN0ZFdUhsMG0xSFFKOTlYSmdIUmhlYmNJdkZL?= =?utf-8?B?NFQ3NDlEMlB6Yk9ockhGZ09VcU8xOXl2a0hVRWdTZ2NnWENoTFozUUxyR0dy?= =?utf-8?B?aHZzRmRZcUZGak54VmZEcUhPOHR5U3VzZ3poZjl6M2x5cnZKN3pNUXNXWHJI?= =?utf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Sm5iSVdnazhtQkJ3QmIzUEw0VWZGektJellUQzlQRHZY?= =?utf-8?Q?zxyxbUyl8TreVaF5kCSwtstNi?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3031850-1599-49d6-6046-08dc65cab33b X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 08:27:24.6924 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TK5//j1QXlKFPVojUnY4Uxk7k0GDMXzmh1Kx/iOByoozsmXWLrO08dcWLevigg/1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7647 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On 4/26/2024 8:38 AM, Mattias Rönnblom wrote: > Cache align Rx and Tx queue struct to avoid false sharing. > > RX struct happens to be 64 bytes on x86_64 already, so cache alignment > has no effect there, but it does on 32-bit ISAs. > > TX struct is 56 bytes on x86_64. > > Both structs keep counters, and in the RX case they are updated even > for empty polls. > > Fixes: 364e08f2bbc0 ("af_packet: add PMD for AF_PACKET-based virtual devices") > Cc: stable@dpdk.org > > Signed-off-by: Mattias Rönnblom > --- > drivers/net/af_packet/rte_eth_af_packet.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c > index 397a32db58..28aeb7d08e 100644 > --- a/drivers/net/af_packet/rte_eth_af_packet.c > +++ b/drivers/net/af_packet/rte_eth_af_packet.c > @@ -6,6 +6,7 @@ > * All rights reserved. > */ > > +#include > #include > #include > #include > @@ -53,7 +54,7 @@ struct pkt_rx_queue { > > volatile unsigned long rx_pkts; > volatile unsigned long rx_bytes; > -}; > +} __rte_cache_aligned; > > struct pkt_tx_queue { > int sockfd; > @@ -67,7 +68,7 @@ struct pkt_tx_queue { > volatile unsigned long tx_pkts; > volatile unsigned long err_pkts; > volatile unsigned long tx_bytes; > -}; > +} __rte_cache_aligned; > > struct pmd_internals { > unsigned nb_queues; Hi Mattias, I guess my comment missed, location of '__rte_cache_aligned' tag changed for MSVC support, it should be like: ``` struct __rte_cache_aligned pkt_rx_queue { ... }; ```