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 B3375430EF; Thu, 24 Aug 2023 13:22:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D49640EE1; Thu, 24 Aug 2023 13:22:14 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 07E2C40150 for ; Thu, 24 Aug 2023 13:22:13 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id D4B8B2058A; Thu, 24 Aug 2023 13:22:12 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [RFC] lib/st_ring: add single thread ring Date: Thu, 24 Aug 2023 13:22:06 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87B2D@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] lib/st_ring: add single thread ring Thread-Index: AdnWeSCU5h63q0lxTAKj4BunL+QWXAAAMvmA References: <20230821060420.3509667-1-honnappa.nagarahalli@arm.com> <98CBD80474FA8B44BF855DF32C47DC35D87B22@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D87B2B@smartserver.smartshare.dk> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Honnappa Nagarahalli" , , Cc: , "Ruifeng Wang" , "Aditya Ambadipudi" , "Wathsala Wathawana Vithanage" , "nd" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id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