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 D0AE3A0540; Tue, 14 Jul 2020 11:16:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0BA141D53F; Tue, 14 Jul 2020 11:16:31 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CED991D53D for ; Tue, 14 Jul 2020 11:16:28 +0200 (CEST) IronPort-SDR: gBA6Vjd3rlCfal30SzC9aqK6vAtEOM5XxKTFGLMre99m785l6cfi5+8xIX61aYnfOTzaPXO/MV B1Kf1Xt7c2jg== X-IronPort-AV: E=McAfee;i="6000,8403,9681"; a="146860634" X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="146860634" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2020 02:16:26 -0700 IronPort-SDR: jZaPxYdMLVsZqASgxdHdYcYMpWfb5lZFhNed36qpgpMJpYHD9KkkpP4OJQJgojRLgfnvID3Dda 2go7mBxFWzrQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="429701782" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga004.jf.intel.com with ESMTP; 14 Jul 2020 02:16:27 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 14 Jul 2020 02:16:22 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 14 Jul 2020 02:16:22 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Jul 2020 02:16:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jHvkX+REN7tWi4c1I5yNC8jg1anlQmzX06FrLFvx/rVqLcqpB9m63aGUbQ0tIa++JGg2ahehNZtOHzJQp2G7dYEs7XlT0RW6l97FF4SIWOWpHiIXNOe1m38Hxm+4c5bOv5tUuZ+uYZKM87pPruML6CtILZwGhgBlFUut57WGlAUm5ka+C+HZlCr0v0rvR7IESxGnrvdfYYnvMPxmz1+88J9BjAnWQL/z215+LhoPlJB/0m+5i9TDaLzFU4xllDJ7Ia8gOqCdOxMj2/ehKwzRxh8fPaCncyY5SE3tFu/6ESwKHQrAbFc3dIx+X0DqJMARQtIIV8QUmpddTd8UMEnM/Q== 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=fnBixVJ19wMwKGIyxKFcY4CMoxiZAUnMIFAp8zgZgq8=; b=U/c82mNXDOfPYGuqXSc9rY/gLNbP/Rizx3R3DM0Gy9dQRyBQCYnJUZNIJz+rOzyicoNNNGJq5424v4LQ8fNgkbf23dKuNJ9pXMS4vsG5EXRAXxvo8Sml331jRdSSxVn2yZju8jwwY/4ptOS56aExI999Y02zOWKkx+4WKvJCg5u1Ish8tbrqYeQedLREu5niJXDSyucmcE14IpNIiwRqG2bQD5lhlcPxloo5vn38YE7dsklV43YNwvauY4+jf1GkymnOtTFx3FBDRwchVQWVzszXEdOwGxXwQKUA9XmfiF1aFg67+kiMqG/zyOz39dClvj4yNUfpYi64Z87/u+r5jA== 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=fnBixVJ19wMwKGIyxKFcY4CMoxiZAUnMIFAp8zgZgq8=; b=hDpagba7TM8Qdjv/PgF+wWiibAWysq+TuMFAGtPKltnTCPKkrGM5YzYidVyq5HEGvo/EXR5SpPkzN039mZSP0cJznbzEU+zNlqhtU54xZuRf2RigZcYbCCv2Hnb+onx/nwbvFS53V9Jz1Yy0btn41mDk0/hu+SACeV/XEYSGS54= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3669.namprd11.prod.outlook.com (2603:10b6:a03:f7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Tue, 14 Jul 2020 09:16:19 +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.3174.026; Tue, 14 Jul 2020 09:16:18 +0000 From: "Ananyev, Konstantin" To: Thomas Monjalon CC: "dev@dpdk.org" , "olivier.matz@6wind.com" , "arybchenko@solarflare.com" , "jielong.zjl@antfin.com" , "Eads, Gage" Thread-Topic: [PATCH v4 2/2] mempool/ring: add support for new ring sync modes Thread-Index: AQHWWS2fLXap2Sdfn0ehkVvB8VW/q6kFxjSAgAEDBHA= Date: Tue, 14 Jul 2020 09:16:18 +0000 Message-ID: References: <20200710162119.27653-1-konstantin.ananyev@intel.com> <20200713155050.27743-1-konstantin.ananyev@intel.com> <20200713155050.27743-3-konstantin.ananyev@intel.com> <43101277.Wr5N64qcEc@thomas> In-Reply-To: <43101277.Wr5N64qcEc@thomas> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTA2ODYwMmEtOTU1ZC00YjFiLWI2YTYtNWQ1ZTRhNjU4NDdjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiV1ludkhyV1BINjRWY0pkWkE4dFA1UE9aWW5Jd0phOWZmS1ZETmlVZTBISlU3VVB1MHFjQWxqbmRPWXczdFZPTiJ9 dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.38.224] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f9e44ed9-4d6a-4180-22b6-08d827d69177 x-ms-traffictypediagnostic: BYAPR11MB3669: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kg2yXUyOTA5zvJ9n1MlBZTxS5Hx442428kalDALX/pmku+xLY7h8PqOAK4LGgmMnr52WKMYMdrJ+FQajwHY18Tf6V2u4Ry94LSS3xGR0zCwiehvFsJUBtWTiAnFHACiMQFCvLymeCf2zh0PUychmjSZhE1MfafADQ89O40o7uKym2iuX661M9xru2S/s30E+qz3G4Z3+PugHxxc2TWUDJGYthDmkIQ8kqNRtDRSdsU9A6uNk8JfA+z252w0n7X/E4KIM87pzYC8MvY5nRIqHMX6X++uEDsmIYMwX3375lyR4H/Tmf2UiHsGIBIVIMPqf0Jl5nQggdZfTUkLTMRTNNFjTGvPLPSEkdFUCFy7UaAzua0b2nWEwxenhBk0PppAyYJ0xoCM5lqaCvbiwxcjQQw== 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:(4636009)(366004)(26005)(33656002)(86362001)(7696005)(498600001)(966005)(6916009)(6506007)(2906002)(4326008)(186003)(8936002)(83380400001)(5660300002)(55016002)(76116006)(66556008)(71200400001)(9686003)(107886003)(66476007)(66446008)(8676002)(64756008)(66946007)(54906003)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: pE6p4LaiVKbGaL22e66izC5DGHQfCg4xqz0bDybe++bw8GSvCPMAu+cjjmzcVdn3pWOYQHygOv5nKGllGfn/U0ekHqI8Al0lwJSGP/xNWtZiniy8NRVG1krSxmyCW57eXyKsnwPTnx2BcqyGNMBbN3n4DtCAhRnhVpwHijpUnGu/3RjXk9CNj7JiVpVtLeGTX1XzNmeFFB0AQJwh91xtzQcVeP5qhbHScQ+9d5UJSYkzngdOAbzuvZUStGUSh2HvD63KXbo6Yc2aB21U2b0bytECWp5z8XEJm7LIvetAp4TEPdMqfa9gtyn7UTgUgY/NAqCwMAHlVl10K24CvcrwIb0ExS3xJcKmbqdW6zJzld1P/1g28LMKvmnHuUN/0uGElJBigjtsvCiCpB0xrXHGxlMM6UQe23619BwM0XN02gDjSaoZnjlEwBQp98YFt5OOgJxWiGZW1q8wfmZ9hVTaxN3GZHyeXSxQetE47YrWqfg= 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: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9e44ed9-4d6a-4180-22b6-08d827d69177 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2020 09:16:18.7874 (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: 8KH988DBDMlKQ/PinnN5XqgVwokelvN8eBqM0iirToowozK6PlpZwIzpsWg7jgm3J6m3Yw9x8MALaq50f1jv6WVE0sQFoo+TrFw03Sy88jo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3669 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 2/2] mempool/ring: add support for new ring sync modes 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 > 13/07/2020 17:50, Konstantin Ananyev: > > Two new sync modes were introduced into rte_ring: > > relaxed tail sync (RTS) and head/tail sync (HTS). > > This change provides user with ability to select these > > modes for ring based mempool via mempool ops API. > > > > Signed-off-by: Konstantin Ananyev > > Acked-by: Gage Eads > > --- > > doc/guides/mempool/ring.rst | 10 +++ > > doc/guides/rel_notes/release_20_08.rst | 6 ++ > > drivers/mempool/ring/rte_mempool_ring.c | 88 ++++++++++++++++++++++--- > > 3 files changed, 95 insertions(+), 9 deletions(-) > > > > diff --git a/doc/guides/mempool/ring.rst b/doc/guides/mempool/ring.rst > > index b8659c03f..9e2824070 100644 > > --- a/doc/guides/mempool/ring.rst > > +++ b/doc/guides/mempool/ring.rst > > @@ -29,6 +29,16 @@ and can be selected via mempool ops API: > > Underlying **rte_ring** operates in multi-thread producer, > > single-thread consumer sync mode. > > > > +- ``ring_mt_rts`` > > + > > + For underlying **rte_ring** both producer and consumer operate in > > + multi-thread Relaxed Tail Sync (RTS) mode. > > + > > +- ``ring_mt_hts`` > > + > > + For underlying **rte_ring** both producer and consumer operate in > > + multi-thread Haad-Tail Sync (HTS) mode. >=20 > Typo Haad -> Head Will fix. >=20 > Please explain what these modes mean and why/when use them. >=20 We have quite detailed explanation in ring library guide: https://doc.dpdk.org/guides/prog_guide/ring_lib.html 7.6. Producer/consumer synchronization modes So here, I put a link to ring library guide for those who need more details= . I can copy&paste same text here too, but it probably not much point in such duplication.