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 EC509A0C4A; Wed, 7 Jul 2021 12:15:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 770DF406FF; Wed, 7 Jul 2021 12:15:05 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 95D46406B4 for ; Wed, 7 Jul 2021 12:15:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="196443577" X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="196443577" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2021 03:14:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="457430349" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP; 07 Jul 2021 03:14:58 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Wed, 7 Jul 2021 03:14:58 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Wed, 7 Jul 2021 03:14:58 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.173) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Wed, 7 Jul 2021 03:14:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=icEHTqFZFicDPolXKzd9lKSXtJjxOVPbH1+hWvXJP9JqPAWYsnOHEH3d5g42P2d1/vxUyXYQrqYW24AcFdugZyTwTPyZoUSnjy1IZg/MOSjASiP8tCQzhbwacHoXMj2gcoMjHeaUb4k7c/iiwonOdT6oUckA+e4PaLtIQQyOqSC9MedWhWfgqK9+TXpWviav1DdBNFaYAOgW6Fxjgw/rdifXaZsQkhplLgeMetSeqJO5DelaruDnHy8CTLtDDhmvDty4kU1Dmk4ZV64i5HuE+Rf7fT9/uozh+G+vWBaFNpo30129759KxcsQiUdGHpML3OEywctN3PnDD4GzD5Rqqw== 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-SenderADCheck; bh=0UDFs/z3hyge01mMJBOGVg7s2HORji6+O5vYiOYgIrY=; b=LmSB3vxUOBP9FZCnZ8hjFizZxWOAJugwnbgMWIUsyLtUrUuCO4bwWmH1jbjFJIYneY2xg95J31D9/bxtY3Bf787mG8KwgxHKqTaIcbT18N6PbtMjUL6/1IHdttvwMsdhWQ/qECNHfMGbe3nK+wzv677vOlI/IHUFOSl4Q0swkBmn2eErcFSUqDtP+avmZWwuIwwjo4Zo/jmsfRPznw4ptjJYO30tqwjb7E9g0ng2cJr4COmCWacZmUtgX6iErZkEevcAQ5vq/sWbagdvQajPce0nt6z33/HhpKlscCtMR1Ej8u5JKh+QaYwi27i2aPOkOKtrRfqqr6UZmVr68IF1tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0UDFs/z3hyge01mMJBOGVg7s2HORji6+O5vYiOYgIrY=; b=K+Qx0kG5cXz+68tcAU9nVRgc2UKhmEwfZSaqjcyngDIwDdWmIr6MyG/xhYKUN/uCNg3FzE7iGLvd37PRrLz/JmkWUnqMSRQ/TQSnRYxNIsdyOaTKNisW2sosNi16SGfsi43EcVxyREwFpqDlmpkJSWgz1QeRXjF67OM1cIOdnxc= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM5PR1101MB2331.namprd11.prod.outlook.com (2603:10b6:3:a2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.19; Wed, 7 Jul 2021 10:14:45 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::7dc4:66b0:f76b:6d48]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::7dc4:66b0:f76b:6d48%7]) with mapi id 15.20.4287.033; Wed, 7 Jul 2021 10:14:45 +0000 From: "Ananyev, Konstantin" To: "Burakov, Anatoly" , "dev@dpdk.org" , "Hunt, David" CC: "Loftus, Ciara" Thread-Topic: [PATCH v6 4/7] power: remove thread safety from PMD power API's Thread-Index: AQHXcbGYVJrJVtENj0i6ITPzKPQ6rKs3TjvA Date: Wed, 7 Jul 2021 10:14:45 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4501ac4b-85bd-4965-afe1-08d941300b56 x-ms-traffictypediagnostic: DM5PR1101MB2331: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y+KyFK7sz4RCQWKhuRGPMb3RYRZr1haTaA0fT/1BNcKmB6IFSiFbXXiq53AI0jue9VZ0If2B/bobWxi3t3JEe4iGQdbBmsf74GjZtdlR5bgpGrp82eOKY+OxgZF5HddTpyTHfvNDtd7WeZHQ7gBQL1fBNZZM8WtYpGAl8/s2MitE6aIl5W1MSb0bpCPEhhgjZANTrbLXPwnQUf7vo9tEn5TwkQjEm/ocz/WIWMRMdDOx7VqreY3P7b3/tHdHNwFPvHSJXKTWkWlDuuhTIh1DxwNz4qPYSSpJRfN1qpObu5mfTowZm8XLxlLRpjbt0V/XOhtuIwr/3UqZ2ERjorJOGKrXtD8cqKGJpxdB/hNclBem0qPUKrcFerqPgO+KEjouzMkhIetUAzVDg7awSgYECrYLivgj367hhtdY7FmEKb+zynnh+dhMRRC6nb1vOZWwHfvh3dtAgOn2syOIB2LI9ARgVcpRQKv2Q7SOlf5ea8jropIMdgMYDQW3IUKgDQGOQi2MYVQD6oG2jVXafYai3u/QyipoddstNaO4izcPNaZagfwSF0/kVrxqsLv4wK9qufjAWZlL/+UquB1Ix/PTC9y8j/ebyuU/YYJsR4AkBvrEmUH62qwqLd1DMVr/pWtk4m6jBNhf1oTZ8AfwRRBzCg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(396003)(136003)(39860400002)(346002)(366004)(5660300002)(4326008)(8936002)(186003)(52536014)(8676002)(4744005)(6636002)(83380400001)(107886003)(86362001)(55236004)(26005)(6506007)(7696005)(66946007)(9686003)(2906002)(110136005)(478600001)(38100700002)(66476007)(64756008)(66556008)(71200400001)(55016002)(76116006)(316002)(33656002)(122000001)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Arykk5hEDIZwKMM9bjBTM11ErBe8CO7eEo40fNmiTft6L9JlrSYSC7RKjfsb?= =?us-ascii?Q?XC1jPjuafkjFv7LYD6bFOQYXpeOz6T7xP2xWkxoGwknBvY7GS/C2YGj0GAs+?= =?us-ascii?Q?EFmZUn82j07xgPROqmEgoY1rOu92maONJvmdAPpy3DzYmFv1c3dIwSGIYDP/?= =?us-ascii?Q?KEJU9PXyB/ZomUKikOLdc6bjoI9HaHRiAPuXH0WS0RQikVmtKKoU1gbTB1N/?= =?us-ascii?Q?1nJDGM+mn6RVz2fJ+2VBRf96BXBiqyyi7eZgQ/zj6LEJ1NC3fEeuAsSSVQy+?= =?us-ascii?Q?QQh+rLHIPV+9ZT/y7UfsmnLf17boLqYi5Nyr6zNl7zCYUaJGq+0Ztaoqe2ef?= =?us-ascii?Q?nvyObSrFF+H8Z269myi95prMJcFReySg0gw/YdvnSnSHWZqrrt0yAVzDfYVr?= =?us-ascii?Q?3ZOnr6CXiK5NMcUjUTt6lAPzJnhepY9DqM3rXZip5rBz0IKVCsvyi3+HDJb9?= =?us-ascii?Q?TJyBN23LtRfnWrLv+rqnJNM1c7Hy6dNWqj9xyokG778NIFjTmznkmVnwRH2J?= =?us-ascii?Q?otIvZJ+l2H7tYRH2cc+S5muIQv7DXPHgPFnOJtlUxxRvXS8E8zbIw0Rv6TMO?= =?us-ascii?Q?Dsx1DKxxJMQ8XV5SGtYIglZGcxq5bBxRtVonexdW9jam5Cle4+1tWnrJnurj?= =?us-ascii?Q?hlukLz+IBKN8OlqrdLktB2j/0sjfmwanmP5GcU/VoVGnl3sJsPK/BfJRnNAZ?= =?us-ascii?Q?8ao40VBCuJVx6k/hDSed8FRIu4O2IuByDzGp+xrJlTx5m2q+bolHv+0Zzflf?= =?us-ascii?Q?DKvl1T/lhF79rimrqpHk1nzAQj0GKhycMqjcC7XncZzuOb12WQDBImb5HwWt?= =?us-ascii?Q?4DCNKBv7Qf5DbIr54gnJE+svcpVN7Uyv8EhGYMnRyZDwesPYgpakbVzbzyzt?= =?us-ascii?Q?DdbrR8Tlb+dsIr1IN602DAH5Ij1C5SpwEmMjvT8XKm3MgT75nY0geL6WciNR?= =?us-ascii?Q?eguHgw+P8S05ckcX/p22hJpMRXe/D+cHt9Kra6hncJdqDIaqmtiBOWsNwesN?= =?us-ascii?Q?v0Gm7wP+aJLrJnZHiJF/BglUcerAksTpsLB2Bd/dcHfkm+uB6gh05AtiQXcm?= =?us-ascii?Q?JQdeA82epxZPLx4voM5nDUZTV5g3UhmvOMHqRR4+zqH1EJdEDusYQCslLDmL?= =?us-ascii?Q?FmJAcgEPEb9/ar8tjOZpWZdQMAOFv96dipMVKukmEwHNF4yYe8TMfkyQqxMh?= =?us-ascii?Q?swzBDUBJhPRtc5QPaEvwuKkk4ViDFN41Y6qWohay9fv4yeYun8CxH+LbJIgy?= =?us-ascii?Q?xz+WjRVBfeelA68/Ae58fJwVKAeDgeg2ANX3hVoe7qI3l4pNgBda7Sc4xYGW?= =?us-ascii?Q?ostBve2auTZZILHheTyfv5yh?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4501ac4b-85bd-4965-afe1-08d941300b56 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2021 10:14:45.3062 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9fR6hrtpVtR9JxZzdyzhZogP0eeCeawOdzGH4eIxNSo91FvM0vsuaN/bdOc89sZgxkbdhwoYkmAFti/zr3qF2wvT6+Bp3W335KiizbxPeOg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2331 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v6 4/7] power: remove thread safety from PMD power API's 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 Sender: "dev" > Currently, we expect that only one callback can be active at any given > moment, for a particular queue configuration, which is relatively easy > to implement in a thread-safe way. However, we're about to add support > for multiple queues per lcore, which will greatly increase the > possibility of various race conditions. >=20 > We could have used something like an RCU for this use case, but absent > of a pressing need for thread safety we'll go the easy way and just > mandate that the API's are to be called when all affected ports are > stopped, and document this limitation. This greatly simplifies the > `rte_power_monitor`-related code. >=20 > Signed-off-by: Anatoly Burakov > --- >=20 Acked-by: Konstantin Ananyev > 2.25.1