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 B3007A0C45; Wed, 20 Oct 2021 08:20:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7326F40150; Wed, 20 Oct 2021 08:20:23 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2055.outbound.protection.outlook.com [40.107.21.55]) by mails.dpdk.org (Postfix) with ESMTP id 9B87540142 for ; Wed, 20 Oct 2021 08:20:21 +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=9aRWQfLZse/GPecGwTHTs4uKdltloDKGlJdbDsTi1Nc=; b=yLjsBM2FZai20BPz90+HVZZWKdI8KdawQUZNGLyPjnscTKpgvDoT5aBR1H1kPWsKTlembR+GHvDcl6l8s+GBYDCvRRpZS/dFc6u0R3snqvHCrdubu2QDebh4bQEUVSL9YiixZDg8KaIh3vsvWO2+bPr8rrDQPx33K0pYCC4xVkU= Received: from AS8P189CA0019.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:31f::32) by DBBPR08MB6281.eurprd08.prod.outlook.com (2603:10a6:10:1f6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 06:20:20 +0000 Received: from AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:31f:cafe::87) by AS8P189CA0019.outlook.office365.com (2603:10a6:20b:31f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Wed, 20 Oct 2021 06:20:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 AM5EUR03FT054.mail.protection.outlook.com (10.152.16.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 06:20:20 +0000 Received: ("Tessian outbound 16951d3c485e:v103"); Wed, 20 Oct 2021 06:20:19 +0000 X-CR-MTA-TID: 64aa7808 Received: from 92c5cf895011.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9CD7DF75-CBD4-4A43-BB93-51F68763C5F7.1; Wed, 20 Oct 2021 06:20:11 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 92c5cf895011.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Oct 2021 06:20:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UeeyLwyzHDg1jinVy4xkazU4NfaWKSSltKf8TEuUUNOVGxn0Vcu/6lglEM5C2/e1DOlQXlNCmp8WK8dkh+nPpeRQHKnh2JUifkkj/bFihnHQWfeH/o6aO0iqAWLkNb9j+UH7LvvQhYTKlpAiDG6Yl+4+d3H77y1vvrSJrWyNPKe7JID+d0/68c4efFpiCa/whvZ0gW0M/ewCsXyu0wCiAf0zOINKHo9NMFgCN0iFwhPU3gLB27+2LnnVeaA4vF8jH6spP9TJv+rbBE1UjOyl43HqY7ERQ9Hd9jddXhGpcBXpvVlNeRzCQkEczLaF6nsNtFTl6lA+GL5uzNoD2HKWkA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9aRWQfLZse/GPecGwTHTs4uKdltloDKGlJdbDsTi1Nc=; b=mLU+pF8q7lVY0Cr6wsThI6v4SMnbWdUgVE+PEb2jVrnRj+VVKfWGx6KAFqz0vAXWKtRMCVd6WoAkk3P3Rzzti7f1S6bsDYTPP8uj6XsGjnCt6BbQAsiRt0ilTwF5UEgC9OvXc+U9hWLJQiWSjH4mSbBgAGb/Pk15fYr3+D9gDFx+0lwx06faW3uH4vXKnGM8bM1JWDHv+rOMp98r8PChJv+mHVGbC9JAQapSbxb01zTMAaaCebPaba7F1g7J+endN0+8J2z/aRdMa+FLuQ7URUNyEfcQ70cRZQEKzIhK53ikh9CiOlwMz41ipAN5WGZi2EZ2Epf/IjextAsLoeIuJA== 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=9aRWQfLZse/GPecGwTHTs4uKdltloDKGlJdbDsTi1Nc=; b=yLjsBM2FZai20BPz90+HVZZWKdI8KdawQUZNGLyPjnscTKpgvDoT5aBR1H1kPWsKTlembR+GHvDcl6l8s+GBYDCvRRpZS/dFc6u0R3snqvHCrdubu2QDebh4bQEUVSL9YiixZDg8KaIh3vsvWO2+bPr8rrDQPx33K0pYCC4xVkU= Received: from DB9PR08MB6923.eurprd08.prod.outlook.com (2603:10a6:10:2ac::6) by DBAPR08MB5751.eurprd08.prod.outlook.com (2603:10a6:10:1a0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 06:20:05 +0000 Received: from DB9PR08MB6923.eurprd08.prod.outlook.com ([fe80::705e:f09f:7dd:500a]) by DB9PR08MB6923.eurprd08.prod.outlook.com ([fe80::705e:f09f:7dd:500a%7]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 06:20:05 +0000 From: Feifei Wang To: "Ananyev, Konstantin" CC: "dev@dpdk.org" , nd , Ruifeng Wang , nd Thread-Topic: [RFC PATCH v3 4/5] lib/bpf: use wait event scheme for Rx/Tx iteration Thread-Index: AQHXsqBspkfkA26N/U+SurtZbhKSaqvHwMmAgAAetgCAE6+J8A== Date: Wed, 20 Oct 2021 06:20:05 +0000 Message-ID: References: <20210902053253.3017858-1-feifei.wang2@arm.com> <20210926063302.1541193-1-feifei.wang2@arm.com> <20210926063302.1541193-5-feifei.wang2@arm.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 1E483E3F70AC93438FE17FADA5956F0C.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: c978a7dd-03b8-4d96-a756-08d99391b12c x-ms-traffictypediagnostic: DBAPR08MB5751:|DBBPR08MB6281: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1148;OLM:1148; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: uB3AgreukqYd6p6B3hrmu2td6zjovO7NuLgvK+5hKudw907uIlwiWy0OKrdApadffdwrRgXM5+PmO6nuSdDff9wYB4Fk+phxZpPlDQnPhdc31x74sgT15rh0ozBeSYl/sXEXYMgyRff2kEIvBXGEowcsRg5H5vIV0EkVRkExEyky+c410T+8nkiaPAg1hJtY98+AukRqbvc4JH9oCP/v1oBiyAl/9IhPodk/oKrMNnmSTiwCYHlwXLTmTyBKX9yKM6r8Cb0LyBDUB03f+yMzk5MBHJHP8JuUwxHlM1De+c2EVnd22OBZjkAxEL6WEpjNaJS2x5LAkAUUMkZhwFzvj94v1+4lZ3J4un8EtkpRHDgPvz8rOvsPPdgjglQY+K3uW9ogqWF8soy5UPHJOGSGyw2GsuM7RmywpxOcIqMETZc/kHOq1yFhDjYhGpDJS4ACX7by9g9OLAzgTmnfe78nrGE4jjtjndHaR4yjw/Y76dfWpG6ilE29o3gQmIKIcEUaH3F7ES4euWq/QhqCQrzM7y8GHHgInTlJXzfScYJRbPVVVfMcVoI499FT35xR824H0kr1r7DNjMx0QONKfoaU+H8eq18xVIOvkc9oDeyjSOFwlBGoyEMrQev68EUM/TKVFLl6i1Ear29/n+dAozA/Ch/ibeW1yN1R1n9IISMIMf03KfGStp7CvT4+MLDiqZC9FtbkVBcFGMjaT3OJ52zILg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6923.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(33656002)(122000001)(38100700002)(52536014)(71200400001)(186003)(7696005)(38070700005)(86362001)(224303003)(508600001)(2906002)(26005)(76116006)(6916009)(9686003)(4326008)(54906003)(316002)(8936002)(83380400001)(66476007)(55016002)(53546011)(6506007)(66556008)(64756008)(66446008)(66946007)(5660300002); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5751 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 13347f74-a8ef-4428-b6fd-08d99391a84a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dATGaB/PQWaSATr/J8lK5ALGoQ27slwEIkuPAlnBH1qCp86GNb5LXr8eMmAIqHdnXctLy5YnmrvXW36rO2U2gJ7M8N7OyJP7ug0PsVv8j1SoOh6kccDT0nkDlx53imB/puldo6EPwxHC44U911QX/o++aycxm8RD8cOkLlej812XfqU6oXd6jqGLm+JQ8ODMn1PRUAZNAwcwBMRje540EphJ6c4+Ok6v7vpMgFyenpQmKEEi6UWEhuOLzVqjWPtQoNr/CQLr0+ZM1/IclzrW67u1f2LsAn/FX7LtG8jVke2sZKuGrypn8PwZnf+s7XFok+zcZyyjzB67MzJKnKvxSV9k9HTlqco8k04dBGJCA2ZiBwvtdRxgvqgP5h880zN+wRGciem/3RvzjiT6RMCYIDQhYH6mROaOMXWZg63nLj9UE4pKQKGaDXeQtX1tfAMDhJt7F+gcYgJvDaw2+FyuAAM+ybW4mYubgb0YtGk4xUoL714sf9ZoZjTMvPHdcbaXDj5il+mvqyaBeqS2MbWCegGvWHhBsPHtzpChSC5nF4oOdG+hKYQnfd41PFV2sW71HRwXk+axl07xZ5+0dp+UcitvIHB0GAR9fdsjbVsq9xY1tbvsWMmUly1IDGPdY3kxpJ7brayKU8ksE6B/zQT3l+2BnhnnRjbfLwXONZJeMYGaqwiKnT8kNR6v1tzkoTPzR+fXYkywnys3BkXZttLexQ== 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)(36840700001)(46966006)(54906003)(55016002)(8936002)(316002)(33656002)(5660300002)(336012)(70206006)(70586007)(36860700001)(9686003)(6862004)(83380400001)(52536014)(4326008)(224303003)(508600001)(47076005)(26005)(2906002)(6506007)(53546011)(86362001)(7696005)(82310400003)(186003)(356005)(81166007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 06:20:20.1050 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c978a7dd-03b8-4d96-a756-08d99391b12c 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: AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6281 Subject: [dpdk-dev] =?utf-8?b?5Zue5aSNOiBbUkZDIFBBVENIIHYzIDQvNV0gbGli?= =?utf-8?q?/bpf=3A_use_wait_event_scheme_for_Rx/Tx_iteration?= 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" PiAtLS0tLemCruS7tuWOn+S7ti0tLS0tDQo+IOWPkeS7tuS6ujogZGV2IDxkZXYtYm91bmNlc0Bk cGRrLm9yZz4g5Luj6KGoIEFuYW55ZXYsIEtvbnN0YW50aW4NCj4g5Y+R6YCB5pe26Ze0OiBGcmlk YXksIE9jdG9iZXIgOCwgMjAyMSAxOjQwIEFNDQo+IOaUtuS7tuS6uj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