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 D062AA0C41; Tue, 3 Aug 2021 07:54:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D17D4119A; Tue, 3 Aug 2021 07:54:45 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) by mails.dpdk.org (Postfix) with ESMTP id EDE8140E32 for ; Tue, 3 Aug 2021 07:54:43 +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=thDv1DjN9lZvR7C9nhI+tu5K+ASxRnaM3mrFM6i8Amc=; b=E/iLBjBV+ygRdNghHvEBfgfbVgizINmy+aNvT8IFJcl9nNZ+knrbfPid69htaaWFLzjPw3TgEBgC1x5GuqorFYM608CYeQPn4HWq1DHXwuZqOH3d1/FxwVwrENXVJ4jZYvl8vuydIW1bXfiSEHYtez3ZFoBGjaxrEnr6pB9gWXU= Received: from DB6P192CA0022.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::32) by AM9PR08MB6131.eurprd08.prod.outlook.com (2603:10a6:20b:2de::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Tue, 3 Aug 2021 05:54:41 +0000 Received: from DB5EUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::84) by DB6P192CA0022.outlook.office365.com (2603:10a6:4:b8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21 via Frontend Transport; Tue, 3 Aug 2021 05:54:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; 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 DB5EUR03FT015.mail.protection.outlook.com (10.152.20.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Tue, 3 Aug 2021 05:54:41 +0000 Received: ("Tessian outbound ab45ca2b67bc:v101"); Tue, 03 Aug 2021 05:54:41 +0000 X-CR-MTA-TID: 64aa7808 Received: from bca22eae9152.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3539C153-E7AF-4A6F-B5B3-BA9A23B847DB.1; Tue, 03 Aug 2021 05:54:31 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bca22eae9152.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 03 Aug 2021 05:54:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5DK0b8XnydSslZj4jruHP/8EWGC6OFaaobGtOyP53frtPorPijWdS6JXoOyfy9Fqs9sbe887XrMVG7a5Hhs/RvXn+u/cywMqzTHzSQ+Tzs2E9hJlLhaMXPbogZ2TpakD+HNKWfm7OqLSl/eO4eidGGBuGDtTuPWHtJMaBg9hqJHiVoDNkagqhrO+k3K48Rr3LQ5DxAIP/CN8QA4PJhBMpA8mb9vRv13ry/s1GkpJWoDhVzcu0TGXmUJcw6uM0bxuW7ULI8Lahm3fSEdfdaP3+F4DioRp4fZhBL55A2Wg/Ji+94RCN1Q+pGgkPUpadM6XL66KYgFTFGenIqoFFiP+w== 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=thDv1DjN9lZvR7C9nhI+tu5K+ASxRnaM3mrFM6i8Amc=; b=Jzn7WZE+Z+c8dIHMo5wG2SAeIkPvOr62CbpoYUM8CE1TzPneX9TEwN4yWg0XnPFbX4TUPghnZ4vJzJdmnj5TNNiybm9m9PFztb2qFWGcZ20XwfizaWc8ZIg8O4rCGSoSC7QnivMxFw0dMdPu394b2bAjZehun4Ft/Td1RPZFAtHzHj5bUmThRieguIcRoiQz9GLb8EmTADLyhPg1qGS7en78e7qbYMO0Gak2ziTLCNfYqp1wFXnirqpaiw0akvzug5mc1BgEaZUHCZyqolZG5mHo4ENO4tQ77xriDiTNWs20ieRyC6ytgEFlZtJhf0woPj+/bJWuEOCG3DKzPCK09g== 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=thDv1DjN9lZvR7C9nhI+tu5K+ASxRnaM3mrFM6i8Amc=; b=E/iLBjBV+ygRdNghHvEBfgfbVgizINmy+aNvT8IFJcl9nNZ+knrbfPid69htaaWFLzjPw3TgEBgC1x5GuqorFYM608CYeQPn4HWq1DHXwuZqOH3d1/FxwVwrENXVJ4jZYvl8vuydIW1bXfiSEHYtez3ZFoBGjaxrEnr6pB9gWXU= Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com (2603:10a6:203:9f::22) by AS8PR08MB6598.eurprd08.prod.outlook.com (2603:10a6:20b:336::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Tue, 3 Aug 2021 05:54:25 +0000 Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52]) by AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52%8]) with mapi id 15.20.4373.026; Tue, 3 Aug 2021 05:54:24 +0000 From: Ruifeng Wang To: Honnappa Nagarahalli , "dev@dpdk.org" , Honnappa Nagarahalli , "olivier.matz@6wind.com" , "lucp.at.work@gmail.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" CC: nd , nd Thread-Topic: [PATCH] doc: abstract the behaviour of rte_ctrl_thread_create Thread-Index: AQHXhYws9ykrwJKtz0WfBbjvvU4iCKthTM/A Date: Tue, 3 Aug 2021 05:54:23 +0000 Message-ID: References: <20210730214453.19975-1-honnappa.nagarahalli@arm.com> In-Reply-To: <20210730214453.19975-1-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: E47ECDF447DCA04A834297254C0698FE.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 96752e9f-5b82-44b5-ee62-08d956432fbd x-ms-traffictypediagnostic: AS8PR08MB6598:|AM9PR08MB6131: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:6108;OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 9z8WsQyQLW8Bl5nbrjnSyvantCkyh9uOAH/M8S9tD/ygu4KjPPiXPalMNehsqwh17gswJDZGYdddzF3+nxN2eykkQ1eDs6HABZaN8YbOHLQDf/QSXj2gfnwnoxeJg7ZHz5zo9mRVSqWuYCcrkXMdSeQF7feoqD9sEdqFQFkNy1xChmFHTLuKmpPvd5CExGox+Wohk39iR/e7jIalsNjzCtQZ0mihFD5BECROpD0Bkmld4yE7Z0peSoe+Zw8NvmU80apw8/GqYpaK3F1IHypbZqkQVgaoalKsIpqw0/XtjWPTMirjr4RluFmTv5v2/Dc1Dt8hOYH062iviTII77z3nnfJPa4GSrrTV0VAuf9NbICa1SHw1hA+HzqyRnz2rqyNBks+lCRoDtClSWUOGeE4ITz+5ga+mistONl/uxFE6GAtyH6h1v2JwcA8aFj6RzVoxmUa+JQxfe+goWKkQKJGFpNnuOSGUn/WP+mTKUkpn1ZiagcI/s+ZwRxa41FJdIkHhX4cCw7AxIOTGnv6xTZW2ldHqCKBO5vonzp6QmSg0qCdzpJqwHoDx4XchcT3d5BgNp4Is3+0uH1IldzUq1ur1otLUkldIRF7UiSGMvLwQnDR7YZAviw39ZNXGSkTFsMMpkdQF+jAPoI0PCaqDFTQhlsRZOzkjSohmT1JyfxuLfhz4xV0mFJS9jwRDG59ms/fV1A6wkUu6RpdNc3SD/j091uUfAw8x98zRJVZJONKkNDDSWZ3/jWH0hN9mbp0u0KIKey9Q87T+VX96mWKhTJmWBnLLKK0zwjydLD3PHn1/Xc= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0802MB2465.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(396003)(366004)(346002)(39850400004)(316002)(52536014)(71200400001)(53546011)(122000001)(86362001)(38100700002)(38070700005)(186003)(26005)(55016002)(9686003)(33656002)(83380400001)(478600001)(2906002)(966005)(7696005)(66946007)(6506007)(76116006)(4326008)(8936002)(66556008)(66446008)(5660300002)(64756008)(110136005)(54906003)(66476007)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?sdMAuNw/FbYq1oLlPj65DxBp5bsPFj743KRMTfy0c6mu5LVjFb9asL0P0Sis?= =?us-ascii?Q?cOSg/R4afllhqQ7FakJwpIdT7ia5rXu28AJC3qp1p+DTLGrNlM6zJudb3C3e?= =?us-ascii?Q?WBYhoNr4H0L3BmQS7xHRtJ2iyVVLwbsDLd6fUs6YFehVEv0xu7UpcBQsK5sI?= =?us-ascii?Q?4Qc3o4zpcQMMqE0LldmgezcEMdW6pQ28xgFfQWo0ZXM0zd5xfD0vhKUg06jr?= =?us-ascii?Q?F1j1UjQM0eX4Y2hMUIulubMdzYVC1K3va8RdnG5I3LE11yqD8eHGMPG7KDrb?= =?us-ascii?Q?Rj28BEG0jnCQwSa1ImprQGWYF4+V6+APm/VDnz41AqsnGh6AxgVAeQmzNWt4?= =?us-ascii?Q?PCkU/24wzYV9LorPBrMhHhdm+3uobcyJjx1wttnC7PfOOQ1HrRucv6hQH01E?= =?us-ascii?Q?yXHaTCdBOdczcROl4pAt2ODPQEJhKCKcBGBo4EJQBCOvOX9gQyDoiodmNlhp?= =?us-ascii?Q?5akOxYd6vLaEjcy0AjUL6OOXuqRfU3NL/G9Knn2rvpSpH/JT6OEJq74V5JRh?= =?us-ascii?Q?J6oYza7kfvZpBuHKD9Czg/hbTqBa7huvxBg6SHYI8eyYysuX6nQXFM9eDmx4?= =?us-ascii?Q?tT0TxG6Wb3S7YHSrQtBySE8HLtTm2HelDbNEgwvKCCjvMJDDl/x9tREv76H9?= =?us-ascii?Q?Sdz4D/joxwYXMn6qOVJYMPLGdIvZCwOQZlZcGVicNBNi/AMrSux2QSO4oz7H?= =?us-ascii?Q?2DmbT+XiS6YE5bUKzbNMzYXj+eg4IIx1f9oRiPQBrgRheqfsaQEhgOR4M+2I?= =?us-ascii?Q?oM1TW/UBU1rW/rr5NHq/l71NzaBgGv+mM5Ct5ON2hZBstE2PArBLwcS2Qd0/?= =?us-ascii?Q?R8blQgSdCXCV4SWn60I8ih+L+Qk34TdUumD9xCj2tLxq8eegbND7xNHMx5UC?= =?us-ascii?Q?BZCJsbrDAOn4qmIne90rBXczeUJzUrVWQdQpF53k0zjjOe0fSm9+iNstlNIF?= =?us-ascii?Q?TwNfZpftLBcf9rL6l06LfaP0YMSlKDOOVhEc9JFFqSe7OPc236W4ulMRpxXo?= =?us-ascii?Q?DSd4tvQzZAg+dghbXOBzb2gdahvaww7DGBrwaQOc3Uxh4UNKPVfGHjHtZhMH?= =?us-ascii?Q?9acFTIjoIlCJQNFM/oa2Ut5SoKMSshKxR8qg5UwFdMNkzUUJKwtTxl+EOkRO?= =?us-ascii?Q?2X0q8lumx+4Mavr/3E+Ur8VKNc6C60lupmyToUmHcfs/4ZdBHmsXO7wwoNUa?= =?us-ascii?Q?jOgj6gitjRpzp2X/6bGeKZw/CygJUh5AFUe/IAVwdVkS16CNnkgAHuGv0OZ0?= =?us-ascii?Q?iKkNrfs/4vagaSjpxxiepFJitcsOFmz9Pbi9mKjAkjP/XJKRr/9z/rsjtEvQ?= =?us-ascii?Q?UkNu8VqwzdrjFhZBAI0+4D4u?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6598 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: f457fb4f-327d-4df3-a297-08d9564325fb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HakEtUnBuBTh5T+vizX9hLRe1CXJOJxM9mTpMNXAfBquFjrc+N9OBGd0sMauoUAy3chJkg5vXZBhZNpoNFhcyywAg4O9ysNMrtNk5iTNDpMSPBWhFEEKEEExXnB6+e9Uy3brCmehHifG5bQBTZGaANyo9NeSiylBK6PtZ1c9IKSr4FKhKlPm/e8nVl8/fXBuNx7lWuZDgBcu2JwPTqabuZGGRv63bzaMUKKcIed1n4R7N6pQtW2de3mFPt8MRLiRu6IzH1WiRdHOXZegQHfa2Nb+eVvpw4VqLZ6z3uEmmCs3ZNykuKS+Q9fB3eamArU4SHH8QL4c6FIXrwZHZG2vHboMzszVzvnvZmzcvquxeCHlaVsqJZSfPalK0lnS0dVo4Oywj6PbzdcySFhCtablZagjo2GFVp1g3AH83QD2iF3AgJeayS4lW126V/qad1y6J7jCwWEIVOGvu2MUoap9mE3iAzwGFLKlpnbUGfqzOIocEihJOS7ownF6aUfI326atD9QwvtKIfnkurczXK9EogN5sBYLdnqEWPHPuWFiEFDlyV2xGjjbmDtwFEDWGCxheSx8Uh5o+V58mG+tporWN+QtLZ+Ethf/1CIIXJJiXoHyzm0R3Ucp3xw5VgkK5OEZsdwXeX9V6Guxpce0fbF4DyZOIxrvrlXHakKqvNNe0KmKLbbj1x7RcJZPUA6JLSAF1I0HWeO5LZcJEJCCjPGpNuSGsgYEfLLLgxLUfOeOfWfuERAPbK+8IGN4Y3/krwXFjjeWiB/agtv5Q1/lXK+HznxC/3ujHVvjvPaextOqOVc= 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:(4636009)(346002)(376002)(39850400004)(396003)(136003)(36840700001)(46966006)(86362001)(336012)(70586007)(82310400003)(47076005)(83380400001)(52536014)(53546011)(110136005)(54906003)(70206006)(7696005)(6506007)(966005)(36860700001)(26005)(8936002)(33656002)(186003)(55016002)(8676002)(81166007)(4326008)(316002)(82740400003)(2906002)(9686003)(5660300002)(478600001)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2021 05:54:41.3339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96752e9f-5b82-44b5-ee62-08d956432fbd 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: DB5EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6131 Subject: Re: [dpdk-dev] [PATCH] doc: abstract the behaviour of rte_ctrl_thread_create 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" > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Saturday, July 31, 2021 5:45 AM > To: dev@dpdk.org; Honnappa Nagarahalli > ; olivier.matz@6wind.com; > lucp.at.work@gmail.com; david.marchand@redhat.com; > thomas@monjalon.net > Cc: Ruifeng Wang ; nd > Subject: [PATCH] doc: abstract the behaviour of rte_ctrl_thread_create >=20 > The current expected behaviour of the function rte_ctrl_thread_create is > rigid which makes the implementation of the function complex. > Make the expected behaviour abstract to allow for simplified > implementation. >=20 > With this change, the calls to pthread_setaffinity_np can be moved to the > control thread. This will avoid the use of pthread_barrier_wait and simpl= ify > the synchronization mechanism between rte_ctrl_thread_create and the > calling thread. >=20 > Signed-off-by: Honnappa Nagarahalli > --- > Possible patch is at: > http://patches.dpdk.org/project/dpdk/patch/20210730213709.19400-1- > honnappa.nagarahalli@arm.com/ >=20 > doc/guides/rel_notes/deprecation.rst | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/doc/guides/rel_notes/deprecation.rst > b/doc/guides/rel_notes/deprecation.rst > index 9584d6bfd7..1960e3c8bf 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -11,6 +11,13 @@ here. > Deprecation Notices > ------------------- >=20 > +* eal: The expected behaviour of the function > +``rte_ctrl_thread_create`` > + abstracted to allow for simplified implementation. The new behaviour > +is > + as follows: > + Creates a control thread with the given name. The affinity of the new > + thread is based on the CPU affinity retrieved at the time > +rte_eal_init() > + was called, the dataplane and service lcores are then excluded. > + > * kvargs: The function ``rte_kvargs_process`` will get a new parameter > for returning key match count. It will ease handling of no-match case. >=20 > -- > 2.17.1 Acked-by: Ruifeng Wang