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 3DF12A04B0; Sat, 24 Oct 2020 18:18:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA1F625D9; Sat, 24 Oct 2020 18:18:33 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) by dpdk.org (Postfix) with ESMTP id 71E722142 for ; Sat, 24 Oct 2020 18:18:31 +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=0wQKyhhQ0gMruTiw+X5/4+/VMBY26lXTMW5sQF2Jacw=; b=eBDhNLTsnbErObGEPmneD+tC99BWe9KV53ZZeGLMc6k8SPp+JLjJzmoyN4Nsih7f1CoDteDfn0UcCHxGxzFzX3xqH0BnT0o45VUYH/bL5WMSGACoPJKjg0TG3lQ34RVvkD7hfmtDWqVTBl7670fSPuX3T1S3rPZh8w/CQ2v0AQc= Received: from AM6PR10CA0044.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::21) by VI1PR08MB3870.eurprd08.prod.outlook.com (2603:10a6:803:c2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Sat, 24 Oct 2020 16:18:29 +0000 Received: from VE1EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:80:cafe::62) by AM6PR10CA0044.outlook.office365.com (2603:10a6:209:80::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Sat, 24 Oct 2020 16:18:28 +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 VE1EUR03FT041.mail.protection.outlook.com (10.152.19.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Sat, 24 Oct 2020 16:18:27 +0000 Received: ("Tessian outbound c579d876a324:v64"); Sat, 24 Oct 2020 16:18:25 +0000 X-CR-MTA-TID: 64aa7808 Received: from f5f8fbed7aa2.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1359F511-8910-4290-BD2A-85B078D90DFA.1; Sat, 24 Oct 2020 16:18:25 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f5f8fbed7aa2.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 24 Oct 2020 16:18:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILUfdQoSExiNJrqvtv5rOi0DiO3Sj3789sU3MWK2YP+4Y+n4MSdxVAoAaRozb69sYzRqOiuyMwT4mYCpyxccz6UiS7hXQwhugpjHTLT5KHDqRVVA+PkyeJt8OkQdISy92sIjne4d3aBxu3ctQVarjns6gpGQtxFHgU5StCaBuOhmvyH/pbPPYCsGu/4PlSGZaPrT7qX6GieJIb7UztZqkxbi8Q1SZSuSgqZ4x4nsNWDoE9p5LsSlx3QjFH8pLnTSlOwk6XHNVv2Vyoj1dznlUXP5bJPzlwHWpMSACVUBa89u9JQ9piYR7SlIUzdb/UR8zLZtveSTqQ/woMMbIpCwoA== 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=0wQKyhhQ0gMruTiw+X5/4+/VMBY26lXTMW5sQF2Jacw=; b=cgPgFoNfiYcelMZFlZU5c1U5ah2XYXAg4yIclpiRxwXhcvjF2lbkt066HDf8lLEPNGaH10L22Kcmaof+5EZjuKXkidLeOooDURfNLIQMuZ4FgSC4XqqWagJUlHmmWn75t/3xzDDj9N0Gdhc3Y3REkxZdpnNLy6APhhKqUoM0tvUn6tuuGrqVILeBzZLL5v29Oa93LXDtvcN4MUceTdsoQC6KINz1q5iANSR/c1eQMSAI1wmSUBiVD46iibsgbSc8EyRb69eS6nFfuyl3VPMKEymcgnrrZj1efBZuxJaaDIZqte2wTIIsl4aD79Np7rkMuLRTnOCFr9n10NZK2EKNeA== 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=0wQKyhhQ0gMruTiw+X5/4+/VMBY26lXTMW5sQF2Jacw=; b=eBDhNLTsnbErObGEPmneD+tC99BWe9KV53ZZeGLMc6k8SPp+JLjJzmoyN4Nsih7f1CoDteDfn0UcCHxGxzFzX3xqH0BnT0o45VUYH/bL5WMSGACoPJKjg0TG3lQ34RVvkD7hfmtDWqVTBl7670fSPuX3T1S3rPZh8w/CQ2v0AQc= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DB6PR0801MB2119.eurprd08.prod.outlook.com (2603:10a6:4:34::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Sat, 24 Oct 2020 16:18:10 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d%4]) with mapi id 15.20.3499.018; Sat, 24 Oct 2020 16:18:04 +0000 From: Honnappa Nagarahalli To: Honnappa Nagarahalli , "dev@dpdk.org" , "konstantin.ananyev@intel.com" , "stephen@networkplumber.org" CC: Dharmik Thakkar , Ruifeng Wang , "olivier.matz@6wind.com" , "david.marchand@redhat.com" , nd , Honnappa Nagarahalli , nd Thread-Topic: [PATCH v4 0/8] lib/ring: add zero copy APIs Thread-Index: AQHWqiBWikdgZ/BAOk6tdoS+oD0pNamm7dJQ Date: Sat, 24 Oct 2020 16:18:04 +0000 Message-ID: References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201024161112.13730-1-honnappa.nagarahalli@arm.com> In-Reply-To: <20201024161112.13730-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: AAC117C2EFB80B41950BE164280F6833.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-originating-ip: [70.113.13.105] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 29ca1fd4-b9a0-4c7d-7863-08d87838706f x-ms-traffictypediagnostic: DB6PR0801MB2119:|VI1PR08MB3870: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: hts4EDX4tx8q+CK7N9bTXYAKH03Un7v5ffhjyVtdO2OBtcemUk3KE62jm2Jjvnsrwlbz2z6p9DZjw4YRXdDdnTNYf9r/qJCK4S1t2uYUyePSFiWBoFO1QblXyVU9GpYSKFxTro+HYJvWgNFQdK4TsQh0Sjarr7BM3HBp7lcRZZduYAnc+etqyZPGkQII0s7sVHXWRdlc6GZuXKfa5eL6SdwZylGiiEhCCPn475TIw9nsRDH2D5CrPjHPjlPiTM0tw2174YcDI975oCdIAWlmdxB0BbPs4rMmXGIiI9j+HbOh1MCClLjxNvHfTdJ3ck44pUm0uwDfTZiuPbINhyUrdQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(346002)(39860400002)(376002)(136003)(53546011)(66556008)(64756008)(66476007)(71200400001)(76116006)(66446008)(83380400001)(52536014)(9686003)(478600001)(2906002)(8936002)(66946007)(86362001)(186003)(5660300002)(26005)(54906003)(110136005)(6506007)(4326008)(316002)(33656002)(55016002)(7696005)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: BI1T/hNUuXgDkME1Tg1pH6JIjm/By0Suedb9VmZEdbO39GompGp7uT7ngIeg72oxlfTjt48Y7/eeH0qRMPs/s0Tw9NKX8K2OwFChxRyLrk+cawknDtxOEq6RcpCONhXy9VsANLwG4zGKM7+0aqhQnsQEuIdkZvHfN19gddRAVEmwMRnWVdw+ICmmoanlWZxTYJG1TxGYQ03eCQOpbhmpC33i5KujLZ9CC2hnDAfX5FeWqp2hPxs8E88lu2FeEhWhL+KQUUWQ+k4mzuvw6T5N1C+Kl3NihRN+eEftgb9s2vTi1C8nMPW/emexgOokV+2y3cs4B58zyeTLDaWPBfHSwmWD8Z/0S/HyBgHIavoDHfQtJ2s4xyzOC/OBJsolkuR6hgiRuptwKy2YrMbRNODWzqsEmy830SlG+eg2pwkmiVqLVk1EBbVE5V3qw/dHToNWHqfEzapxKuSpJ+ky4HSlTOaWEEKVOuaniuF0eknbC3yoNRnRgnnM6QLt1/IDbWYpSl6yaGefetWlf+ZVHl1uotTvd60K3hI8II9VJnuZDycKtWRPD13ADg6y3uI3RKtur7OkMqe2rNSA2nU+7P6P8vTsk//+LotKGmzhwBQgNPhq9KlBRXsHvQXIFL2HTxJKV0qXzySBWI0hGeMPHrd8nQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2119 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: VE1EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ee1cbf4f-e439-45f7-3867-08d8783862d3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: obAgMLBnk7oHsu/XEgL5cWG9EzJ2veZbz+kqyo9y0774PBiG/7heCNbcO2KRI8QCqOT4eKLoWWEuA7T+IlW1C9Nsr+Q2k0JB+V4vtSdTGNBz33J5dbO7eNJus3Sgb6dWQL8n6I0aPwSEheTZni9fr+m9pglWLbHKJwzdvSCnPlUfEalj1LouzhqtSnbaRI+WUvsFabbylzkhjDznRfwmmgsbqaGtq5UujT+uLNi9xyAIjqSfYtJyYKPhMr2/XR0Tx7+m3sfCyycj44EtVsDXqythFRF98mJI1Rhhk3PGv9qGaEKF+Gam2iaKAvbry1x/wZ6cmPJqFHcv9lnuvLtrxKbnouooL2kDuVj1lzg+ry4etaQazhKyWOTxC/5LRxoIElEm6gwaB8s2Q4vKyEv3KA== 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)(39860400002)(396003)(376002)(346002)(136003)(46966005)(9686003)(36906005)(52536014)(81166007)(478600001)(55016002)(82740400003)(82310400003)(7696005)(2906002)(53546011)(83380400001)(4326008)(356005)(6506007)(70586007)(110136005)(316002)(336012)(47076004)(8936002)(26005)(5660300002)(186003)(70206006)(33656002)(86362001)(54906003)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2020 16:18:27.1580 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29ca1fd4-b9a0-4c7d-7863-08d87838706f 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: VE1EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3870 Subject: Re: [dpdk-dev] [PATCH v4 0/8] lib/ring: add zero copy APIs 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" Hi David, Checkpatch CI is showing "WARNING" on a lot of the patches in this series,= but it does not list any real warnings. Any idea what is happening? Thanks, Honnappa > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Saturday, October 24, 2020 11:11 AM > To: dev@dpdk.org; Honnappa Nagarahalli > ; konstantin.ananyev@intel.com; > stephen@networkplumber.org > Cc: Dharmik Thakkar ; Ruifeng Wang > ; olivier.matz@6wind.com; > david.marchand@redhat.com; nd > Subject: [PATCH v4 0/8] lib/ring: add zero copy APIs >=20 > It is pretty common for the DPDK applications to be deployed in semi- > pipeline model. In these models, a small number of cores (typically 1) ar= e > designated as I/O cores. The I/O cores work on receiving and transmitting > packets from the NIC and several packet processing cores. The IO core and > the packet processing cores exchange the packets over a ring. Typically, = such > applications receive the mbufs in a temporary array and copy the mbufs on > to the ring. Depending on the requirements the packets could be copied in > batches of 32, 64 etc resulting in 256B, 512B etc memory copy. >=20 > The zero copy APIs help avoid intermediate copies by exposing the space o= n > the ring directly to the application. >=20 > v4: > 1) Fixed multiple pointer issues > 2) Added documentation >=20 > v3: > 1) Changed the name of the APIs to 'zero-copy (zc)' > 2) Made the address calculation simpler > 3) Structure to return the data to the user is aligned on > cache line boundary. > 4) Added functional and stress test cases >=20 > v2: changed the patch to use the SP-SC and HTS modes >=20 > v1: Initial version >=20 > Honnappa Nagarahalli (8): > lib/ring: add zero copy APIs > test/ring: move common function to header file > test/ring: add functional tests for zero copy APIs > test/ring: add stress tests for zero copy APIs > doc/ring: add zero copy peek APIs > test/ring: fix the memory dump size > test/ring: remove unnecessary braces > test/ring: user uintptr_t instead of unsigned long >=20 > app/test/meson.build | 2 + > app/test/test_ring.c | 209 +++++++++- > app/test/test_ring.h | 67 ++- > app/test/test_ring_mt_peek_stress_zc.c | 56 +++ > app/test/test_ring_st_peek_stress_zc.c | 65 +++ > app/test/test_ring_stress.c | 6 + > app/test/test_ring_stress.h | 2 + > app/test/test_ring_stress_impl.h | 2 +- > doc/guides/prog_guide/ring_lib.rst | 41 ++ > doc/guides/rel_notes/release_20_11.rst | 9 + > lib/librte_ring/meson.build | 1 + > lib/librte_ring/rte_ring_elem.h | 1 + > lib/librte_ring/rte_ring_peek_zc.h | 546 +++++++++++++++++++++++++ > 13 files changed, 988 insertions(+), 19 deletions(-) create mode 100644 > app/test/test_ring_mt_peek_stress_zc.c > create mode 100644 app/test/test_ring_st_peek_stress_zc.c > create mode 100644 lib/librte_ring/rte_ring_peek_zc.h >=20 > -- > 2.17.1