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 8D199A034C; Sat, 2 Apr 2022 19:43:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3798F4067E; Sat, 2 Apr 2022 19:43:53 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140043.outbound.protection.outlook.com [40.107.14.43]) by mails.dpdk.org (Postfix) with ESMTP id 71FB74003F for ; Sat, 2 Apr 2022 19:43:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=btG5UJy893mjME9+876MtKqvx2x3BzyzAnj0PTn5f4g=; b=AtfWuLbUva5VnQ3/IMheyo8lZb4HkPpiNC26i6TIKeVe0hhB94vcy7aFfgB+tV+PxfNKGeQYDdVQx5mtzW1kPF6lXaJPxAf7RhVNWbSm634Q8O0ANR2y2wsLy81hJfuHkwOjsC6D9MzefDfVYeRiD0eeS75+ZIDTYE3denuXspw= Received: from AS9PR06CA0260.eurprd06.prod.outlook.com (2603:10a6:20b:45f::25) by VE1PR08MB4686.eurprd08.prod.outlook.com (2603:10a6:802:af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.30; Sat, 2 Apr 2022 17:43:42 +0000 Received: from AM5EUR03FT027.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45f:cafe::8f) by AS9PR06CA0260.outlook.office365.com (2603:10a6:20b:45f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.30 via Frontend Transport; Sat, 2 Apr 2022 17:43:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT027.mail.protection.outlook.com (10.152.16.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19 via Frontend Transport; Sat, 2 Apr 2022 17:43:42 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Sat, 02 Apr 2022 17:43:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e8b884fe32204cd4 X-CR-MTA-TID: 64aa7808 Received: from 66210dd158a2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 06F06213-80CA-49F8-9014-7E1EE1DF3B1A.1; Sat, 02 Apr 2022 17:43:40 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 66210dd158a2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 02 Apr 2022 17:43:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FK21dzMeNrBo7hf/sM9Rt5xwxtyR8B4SwqImAKk15naJvl3GUELleQG+euITJEIdjbJiZHKXrVhxi033vDhVvvQwJaYM9WL19XsiVFLJ1RixNVE+h8heaN0PgOfjIy096er6EtbnVNkS2lAsLEIuFY304iAshltXo12bPq89WdtY4dPWbTcPB0YPsOHm3Xjp4EE0fE1VL40vtZUugbvHS9IMjdpz/c3cFuRxcq3UqtYMYZFSL+WOSF2pi0z2bZrGWcMm4WXK1vvXFrip4F3vjiRgMoXis8JGyL297hioQ10RI8zRrzfzhmrAoBnwGOO/BdZFmkIYnXDAb3PfvFg80w== 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=btG5UJy893mjME9+876MtKqvx2x3BzyzAnj0PTn5f4g=; b=merZbR8mYuay3LPja1V1aYAqGpTyBCh5fdQQbUXoMo1HDtjYI4HaTKhxr20g6mfoTQXrcJ6fYLgrW11rZdc+lz//2WWlJKR6FQ1zLGhcNB7otUlOmSbhXxwi3qVZ+h8mevoVaSDX2FWe9e8WGzAQsLSLBPPvujOeWlLjS8Kd/YkPcHajDCYZdQ/4WadaUDlFe0YRWT5ax/e/yETmbklUgojRVwwiCilsMTbskW3nt3SXa7/rbYaIUQ3jHARDMkHAO3JKzwPWJCJzilF4xmddZ0WjS7upz6+xhLZLTRpxzKXOo0nRs/kpQbjnpbRw2eJeNlc6/Xllop/ThRb2a+iubQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=btG5UJy893mjME9+876MtKqvx2x3BzyzAnj0PTn5f4g=; b=AtfWuLbUva5VnQ3/IMheyo8lZb4HkPpiNC26i6TIKeVe0hhB94vcy7aFfgB+tV+PxfNKGeQYDdVQx5mtzW1kPF6lXaJPxAf7RhVNWbSm634Q8O0ANR2y2wsLy81hJfuHkwOjsC6D9MzefDfVYeRiD0eeS75+ZIDTYE3denuXspw= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AM8PR08MB6498.eurprd08.prod.outlook.com (2603:10a6:20b:364::11) by AM9PR08MB6771.eurprd08.prod.outlook.com (2603:10a6:20b:30b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.30; Sat, 2 Apr 2022 17:43:31 +0000 Received: from AM8PR08MB6498.eurprd08.prod.outlook.com ([fe80::ec4f:1ad:e332:9f39]) by AM8PR08MB6498.eurprd08.prod.outlook.com ([fe80::ec4f:1ad:e332:9f39%5]) with mapi id 15.20.5123.030; Sat, 2 Apr 2022 17:43:30 +0000 Message-ID: <4367cc27-47c1-7df9-1923-6904d2087d68@arm.com> Date: Sat, 2 Apr 2022 19:43:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2] eal: add seqlock Content-Language: en-US To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , Stephen Hemminger , =?UTF-8?Q?Mattias_R=c3=b6nnblom?= Cc: dev@dpdk.org, Thomas Monjalon , David Marchand , Onar Olsen , Honnappa.Nagarahalli@arm.com, nd@arm.com, konstantin.ananyev@intel.com References: <98CBD80474FA8B44BF855DF32C47DC35D86F84@smartserver.smartshare.dk> <20220330142602.108061-1-mattias.ronnblom@ericsson.com> <3888e595-de18-3cf0-707b-309b153c2b02@ericsson.com> <37d60d0f-9911-7692-cdb6-62cd5da540ac@arm.com> <98CBD80474FA8B44BF855DF32C47DC35D86F8D@smartserver.smartshare.dk> <20220401145405.78a8930b@shemminger-XPS-13-9360> <98CBD80474FA8B44BF855DF32C47DC35D86F96@smartserver.smartshare.dk> From: Ola Liljedahl In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D86F96@smartserver.smartshare.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0058.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::22) To AM8PR08MB6498.eurprd08.prod.outlook.com (2603:10a6:20b:364::11) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6852dab0-c770-4280-22aa-08da14d05439 X-MS-TrafficTypeDiagnostic: AM9PR08MB6771:EE_|AM5EUR03FT027:EE_|VE1PR08MB4686:EE_ X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: plzmtEa3gvfwdfj5WAubICahNWH66C4E58b8oWCnqogJunr3m10ngE9YwlC9uYEuCy6pbYwmG5IspB9zXvt8pHFlVfu7eqHPyiuPUCtoM61Wc7MBuBuERv7g1ZnnbSzISehJgPiJv+Ow/zSbw3YxiN0eXOSEV9NpHkzWUuB99K13WzaNaMDf8DwYmLzjGzvq9qYb7ulYR5e0cCBSJjOBSzYx4LQtFXqicPfiOysrFHc1BcMKmMw/PDTQ348OWXr+u0gcM0BSdO8iIXPbDSns5nxcJREscaLXtm8r234duoQduhn2pcZaFtDe45yBW4oZuFYGFALXPqox3LaCjxRZRD6hfbhyh1BpbnbYlRdU5Ggb0pylQI7xapcZWe8WlgXTEvu3hVefJBg0jC+HiJfSKsxSK5qw40g/jZt6KZZCQ5Un6PPK/kHRCHMUwVquqLTrqnBojBh+iX3gXDP8zwQ/dXmInpxV4hNgI9HT6DXkDzP84F6+coVVZygls1GkL7LQ9SJ356QZTr/PA4vNlQyie9S8beCa5iybhOlQIlHJ7QBhNq3OXNBuGQRwMEN9D3C3hNxp4WeW2HK3EKspwhj7OXZNjy9rkoE54KJY821OPv301V1MGCy/D3E4Fw8PZSjROXHM632eEfYBvE97lqIPqRRvLe31oMfBLCeCcpcoxa4ZbvxOMbZPrt/vmCnp+gfn9SiQpVA494QI9qRlnK1wGXwXGlB9SjyvL5XX9Y4m8hQ= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR08MB6498.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8936002)(4744005)(2906002)(86362001)(508600001)(31696002)(6486002)(83380400001)(36756003)(110136005)(316002)(54906003)(66574015)(66946007)(44832011)(186003)(26005)(4326008)(66556008)(66476007)(2616005)(8676002)(5660300002)(38100700002)(6666004)(6506007)(6512007)(31686004)(53546011)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6771 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2f0f49a4-5b72-466c-9e6d-08da14d04cfe X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ixseVR9s5bnVfNIgRijJ+2r5MLCQcgE4uMN7RhhTysxloUFVbWvJ/F7HH9uLY1HcxUJharF4bIjJ9kID3BUBf/yX4d8wY6aDJWuQOpQnPvDV0ZbedGX8Bbgkxig56BWw5e8WNuB0kChKtYCiPu7S2nHGMBrFWIcR3FVLQiuieACcY/yvwc+U0P2npoYeTiO4VEA5iNJb5RrUtPsUDnnkJReRQWoFvUeKlgGulO9Rq/IaL+XciaG+G9a6B0bDJzimJv6KHFQZCROzF/f84Cj9gmeg0Hwm8F1zaa9YH+zn+8lJvF/yLxig0Qj4l0ZDFOFo/A9Q2SYbYHKJVIh60lVWFq3LQqtW252McBUPq+wcqM9+WshTb0FJbI+UsPyYukjLE4LY2AICOiAfobK8dannf1rrbmq3/u9YY4vtC3Gzrst4AkSVJwqeozKGR8ga6Q0yAqF763CE7/WQQU6wspM44b5DaPKPFFUEuS4iI7ibG+1oDleVg9FSMXG0jI7nkP2W8IPl5i7pdtoY4yKR90pEkGFkrl9HuhdtXm7ggW1wzbzs05sGM4Fi20WACSNuKVRyj1NOm4g14FRVvN45P0+VImm/wGMSEtswROaD/+bkl2w2VLilYCAiymlUtwZXDjTtxw9+IqewNS60hKolCRohLzPzVlt2X9QPjLXDiYuaTQeE9S6FaLtrcS+tO2u0x9It X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(316002)(70206006)(8936002)(70586007)(66574015)(54906003)(6506007)(82310400004)(6512007)(31696002)(8676002)(110136005)(53546011)(4744005)(86362001)(36860700001)(6666004)(44832011)(47076005)(83380400001)(356005)(6486002)(5660300002)(31686004)(2906002)(81166007)(508600001)(107886003)(186003)(2616005)(26005)(36756003)(4326008)(336012)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2022 17:43:42.4505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6852dab0-c770-4280-22aa-08da14d05439 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4686 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 4/2/22 12:25, Morten Brørup wrote: >> From: Stephen Hemminger [mailto:stephen@networkplumber.org] >> Sent: Saturday, 2 April 2022 02.54 >> >> Semantics and naming should be the same as Linux kernel or you risk >> having to reeducate too many people. > Although I do see significant value in that point, I don't consider the Linux kernel API the definitive golden standard in all regards. If DPDK can do better, it should. > > However, if different naming/semantics does a better job for DPDK, then we should take care to avoid similar function names with different behavior than Linux, to reduce the risk of incorrect use by seasoned Linux kernel developers. Couldn't have said it better myself.