From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 96AD1A0350; Fri, 5 Jun 2020 13:15:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5BEB11D603; Fri, 5 Jun 2020 13:14:57 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 3EDC91D5FC for ; Fri, 5 Jun 2020 13:14:55 +0200 (CEST) IronPort-SDR: mJILtdv+bKAguZDVCKn3EE1bOhnU53nUPPy3rZMBRfrhGmUIJLRgL2Nd7dsKTyi2rIo6CpDgXi 0UKkcj+ASU+A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 04:14:54 -0700 IronPort-SDR: gFo/cL89mwnnR8y5ix0h+aGBcdYTUo3UfnwynehaDGQEMLHxr92occSCRyxiaagZAiRK7+Byxr DhyMOmc3IvqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,476,1583222400"; d="scan'208";a="471755817" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga006.fm.intel.com with ESMTP; 05 Jun 2020 04:14:54 -0700 Received: from orsmsx122.amr.corp.intel.com (10.22.225.227) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 5 Jun 2020 04:14:53 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX122.amr.corp.intel.com (10.22.225.227) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 5 Jun 2020 04:14:53 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 5 Jun 2020 04:14:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lLuHKLKS0+aIIBrvqY/6TH3JFf1bcCPViMSMOnop49yXo8xHFgKg1/t3wdsoyWAqnaukNPZ9bxjSLhpLmT/R7MXb7wRUzkJUcrEy0ETF0avsdDQHoGVLyfhJuKCABHNT9PPo+0nNR6JJQzA4zjZN4UvSd6ogyG2a2+BS0R4a6Nr4uP0rTK8kvEhsvkBplb9G3LiCoekVme0/ya5nVWj5AxisNr0tN6KwiU9KyFVQoeRjdBLqrlDYHgHqoEJaSWBZKXubkb9HUUlKbnt6XqPgeL55o8BkoqB0C8auVMNrwkjAxFgBSX+6EU/IU/+bAgnZyJKI/iQS+pFio/XjUM4Z8w== 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=YTgKP8l+CPKcQY4aZiqQOUm3GTAroq7BO23tEkYZu+Q=; b=GoKAzvOJ/SdnloOB2A/fp0bznkBu01Fnd7DZ11iLlWhXQ7lSmpwNJE63mxwgCTKWNoE+v63INSwHN7XdoaB3gIOj53z7Q30s0L5FBtFmaMGJw6T/V5Ho0s/g4bD9loqR9ojZqA/h1Ag7Wfztt0adET9rT4qy64jdwOOrhFoLVc3EFGV+C8xe6Jflm9S9UTXkP/EmRopBSHLhfF5nmvb5rdpsbRjRXHfGY9dYlmgNK3GbU791FdhNuFsU9wWC/mI2fYmzcxd32DEbaeJrmIgiMOU/2vD98BRymxXILNp589RU6TF5wARvOkcu9wOuhoVKcWY0XMwqROBxae9rz/71SA== 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=YTgKP8l+CPKcQY4aZiqQOUm3GTAroq7BO23tEkYZu+Q=; b=pE2SPEEZyMP7hL75R0AAMj3xALg5y3wVmS3s+n+FBmtdkITxIJOoUq0tz8gADJ0akkhE4Ms1UxW9yChqzNhZ9lDkXEQBAm/ixXqUETyllGjbwlTaeytp61hgBUjPa9mtIB0U9Ufpqw3yN5/vvsxUiOQZC9CzVtqWvUq6o43tHNQ= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB2615.namprd11.prod.outlook.com (2603:10b6:a02:c3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 11:14:50 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f160:29ab:b8f9:4189]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f160:29ab:b8f9:4189%6]) with mapi id 15.20.3045.029; Fri, 5 Jun 2020 11:14:50 +0000 From: "Ananyev, Konstantin" To: =?iso-8859-1?Q?Ga=EBtan_Rivet?= , Stephen Hemminger CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC] replace master/slave with primary/secondary Thread-Index: AQHWOtVWiP2DoS8nI0qZAOQCKCd+YajJ1n8AgAAH8jA= Date: Fri, 5 Jun 2020 11:14:50 +0000 Message-ID: References: <20200604210200.25405-1-stephen@networkplumber.org> <20200604180409.4a2831c3@hermes.lan> <20200605104247.kilea5nfktlf7mlm@u256.net> In-Reply-To: <20200605104247.kilea5nfktlf7mlm@u256.net> 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.2.0.6 authentication-results: u256.net; dkim=none (message not signed) header.d=none;u256.net; dmarc=none action=none header.from=intel.com; x-originating-ip: [134.191.221.103] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2bfb227a-56b5-499e-2e88-08d80941aa58 x-ms-traffictypediagnostic: BYAPR11MB2615: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0425A67DEF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FNU9b0FhlDpCOP5BpoUPJIH2j2QsOwWdsxYWG5Hv4zqmVJp5KC5lqNHudLGH+hsWe33cVnpTMwFhs4+2A5v6RU75JO0TejPvNfM5a9R7iUZ476131f7HRlpQOGG3buut/mQhH/FpaQXkJBFeS5efbLrb0jqL3hb3PqKbJmMC+0FqmH58wKWmfeuHkImRMb7cBKBxldYV/w1gPsm7r761sgwmvbCglPWznO70mtn6nbnC/wl+K0LdAHu0UR/zLvOuOq0WqVTfwP18+anHq//CvPl+hYAobO2pBVF2WgCj4c5MSSkXU0UIQJ5g6K2Dm5fmeJnbmkAh80Y9m99u2qWcxA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(366004)(136003)(39860400002)(346002)(376002)(55016002)(26005)(53546011)(33656002)(66446008)(6506007)(66946007)(478600001)(2906002)(66476007)(8676002)(71200400001)(64756008)(66556008)(316002)(8936002)(76116006)(186003)(86362001)(4326008)(110136005)(5660300002)(7696005)(52536014)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: L3gApqI8zTkmcY0xQ1rokGuAPoVW/MZL0MHDmym0AlqIIuTnHLqwdBEgEDF0Pxtf0YGW413m+F/Z01iXvq/ypWGCxuG2LjE3A2VYo16jhNId50E4cr8Ecvh5llenjtuI695Fk7fb5hhuwIKyLBwNqlnQLug8390MNr4QkbfDgQ1dsPlAs37yODf20F4Ut0yW1w9a7iQbNQcsZfUYU0uMaXXUgpCdXU8IX0cOyAd7XkoGuEf4YUQTjbvrbKs9driD4YPIBN4j/YKbXeS+nIBJP1DJ+QP79BHFIrtZ6Fp2bfEzO7ApL2pgS5vbXu7ntDbc7ua0bHWqVUVmWzmNECEzPJdXdht53xEBYNQKZB/+igolbo0MMyUC80VfPgHdEZ3GiYXClXhe0e6LVqLFqUP+0XeNsHbBLKEdj0hOhWZnoYkeyOvKgKlv1n/txZreTpUIl7i/NSv4pkdNIuMaKzlO5K1jQsxvJi5Aur8/Wo6yotm4KmHk34zFTWPsbx10GNnr x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 2bfb227a-56b5-499e-2e88-08d80941aa58 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2020 11:14:50.7555 (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: t+GJgjK3qdFcJJmm9rfbdkA0j+1LeR0JrxRYOuNkAcLEbIYsWX1s6oDBdyvPWvsxMDZyWbQI2cfUUlACLzjlXuX4r+P+BrJjQwwVPqWgc0Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2615 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [RFC] replace master/slave with primary/secondary X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" >=20 > On 04/06/20 18:04 -0700, Stephen Hemminger wrote: > > I have a full patch that replaces the master/slave lcore > > naming (widely used in DPDK) with a better primary/secondary naming. > > > > For now this is just a trial balloon to see what the impact would > > look like. The change mostly automated so likely that things > > are broken. > > > > It is hard to break a change like this down, and still > > keep git bisection clean. > > > > It keeps rte_master_lcore_id and RTE_FOREACH_SLAVE as deprecated > > items so that user code can still be built but they will be motivated > > to change. > > > > Here is a sample of what it would look like: > > >=20 > I think PRIMARY is a poor choice to describe the control thread. PRIMARY > is often used to designate the active element currently doing the work. > SECONDARY threads are also active threads doing equal dataplane work. >=20 > Another issue I see with primary / secondary is the ambiguity with > multi-process in DPDK. Doc readers could get confused about where a > primary / secondary thread is executed. >=20 > I think we could use instead DPDK-specific terminology. The lcore > organization is a little specific, with an lcore that does most init work > and spawns the others, but then runs the application like all others. >=20 > I'd propose instead leader lcore - there is this idea that the leader > is still a member of the team and will participate in the work. >=20 > Leader / worker? >=20 I personally doubt such changes are needed at all. Code churn will be massive for both DPDK itself and related user projects. With no real gain in return, from my perspective. Konstantin