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 18FBFA0613 for ; Wed, 25 Sep 2019 06:11:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E81CC2C38; Wed, 25 Sep 2019 06:11:38 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80077.outbound.protection.outlook.com [40.107.8.77]) by dpdk.org (Postfix) with ESMTP id E5E132BE1 for ; Wed, 25 Sep 2019 06:11:37 +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=LBF8FNlYu/PyttNitGiG0c20W9/IvLcbgg0S+poalQc=; b=5pnRuiQM3/P7W7FC7jJtS4Gxhz+tehjZ1EoW9xu7Mjw8GA8hEeOsfCcBnjGISWJgFR8t5TJ+PBzyXCZs9biKiwc+cbL4KozU20svFJ1Hk+/aBuuok+mBYW/Fh7KhYwQr8gn7ooN3L1zJvTgexGteQoo/0jQkb4s6kbespk59LLc= Received: from HE1PR0802CA0014.eurprd08.prod.outlook.com (2603:10a6:3:bd::24) by DB7PR08MB3340.eurprd08.prod.outlook.com (2603:10a6:5:20::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.19; Wed, 25 Sep 2019 04:11:35 +0000 Received: from AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::203) by HE1PR0802CA0014.outlook.office365.com (2603:10a6:3:bd::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.19 via Frontend Transport; Wed, 25 Sep 2019 04:11:35 +0000 Authentication-Results: spf=temperror (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=none action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT014.mail.protection.outlook.com (10.152.16.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.20 via Frontend Transport; Wed, 25 Sep 2019 04:11:34 +0000 Received: ("Tessian outbound e4042aced47b:v33"); Wed, 25 Sep 2019 04:11:31 +0000 X-CR-MTA-TID: 64aa7808 Received: from 927590b78e83.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.4.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4D8B878E-2D76-4296-8B0F-4DC9F1192B2A.1; Wed, 25 Sep 2019 04:11:26 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp2052.outbound.protection.outlook.com [104.47.4.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 927590b78e83.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 25 Sep 2019 04:11:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kC9coF4PMhNRnGNL+icx6S9jkOJLtAeBe8VhuJAj9fa3Qjq5tiSQaCSml4Qm0i5Fpus+lECSJ+/ixlV/TKM4aO7JPtshAAkDmEOUyHgMiqZCqA84JERV+sB3oWh+6dNzy0DOIEz75X08MqmVwkU+4MuIWRfSv29ImD44JQYZwXOK5lYzT2He4pBn25+DekWHnSHn7rutwsEGSl7Y1iE/ZQnFos0D4eYkKlk3HKCwTy4lMXiCEWFOSRcP6OQi8ZgZw2G8b7bqtLTqwqhc3gFzGLhHUHxC2Tv4GToEFArxAlx5UHt2GKNEnpY0AgeU+BcJNCQfRIGsfmY9ysMC56cZAQ== 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=LBF8FNlYu/PyttNitGiG0c20W9/IvLcbgg0S+poalQc=; b=T8i6wCh20BeAOl3RUlQaGS80/f9FJD5PzSyP7E5tV1zNBb70DF69y7CuBnC259XNE5tLDy23qpz8hNRQjokqMv8KY91YM9oum49C1Z9H0fAi0BYUsGGl882JKssbZSFs5kmzWjtcaDqkwxJ99gcTny5f9a2JORScQ6VuvytZ/O1IEgbjKMy1WB1HNnB2NmWrAgfgrmxLH3NUQP5+MyZuVe/DMsef4J8VQnSVFAj7fPmnFHsrqK9d6yyvKTdBvk+Blp6fD+nBCPb4dYIx6cgEp2rYmX9I7AAFdXQLj4ZNTnVTnAbFhA0593gbETau7fRmOwOGUa7Zkmz27HS92mnsiQ== 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=LBF8FNlYu/PyttNitGiG0c20W9/IvLcbgg0S+poalQc=; b=5pnRuiQM3/P7W7FC7jJtS4Gxhz+tehjZ1EoW9xu7Mjw8GA8hEeOsfCcBnjGISWJgFR8t5TJ+PBzyXCZs9biKiwc+cbL4KozU20svFJ1Hk+/aBuuok+mBYW/Fh7KhYwQr8gn7ooN3L1zJvTgexGteQoo/0jQkb4s6kbespk59LLc= Received: from VI1PR08MB5376.eurprd08.prod.outlook.com (52.133.244.200) by VI1PR08MB3200.eurprd08.prod.outlook.com (52.133.15.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.20; Wed, 25 Sep 2019 04:11:25 +0000 Received: from VI1PR08MB5376.eurprd08.prod.outlook.com ([fe80::c09a:49d3:eab2:f707]) by VI1PR08MB5376.eurprd08.prod.outlook.com ([fe80::c09a:49d3:eab2:f707%3]) with mapi id 15.20.2284.023; Wed, 25 Sep 2019 04:11:24 +0000 From: "Gavin Hu (Arm Technology China)" To: Marvin Liu , "maxime.coquelin@redhat.com" , "tiwei.bie@intel.com" , "zhihong.wang@intel.com" CC: "dev@dpdk.org" , nd Thread-Topic: [dpdk-dev] [PATCH v2 10/16] vhost: split enqueue and dequeue flush functions Thread-Index: AQHVbshbRZclAfPKkUKJQgd2sCgeMac70KHg Date: Wed, 25 Sep 2019 04:11:24 +0000 Message-ID: References: <20190905161421.55981-2-yong.liu@intel.com> <20190919163643.24130-1-yong.liu@intel.com> <20190919163643.24130-11-yong.liu@intel.com> In-Reply-To: <20190919163643.24130-11-yong.liu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: b977752e-e8b4-4a47-aca2-0864d1638f5f.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 29c0747b-3769-40ed-b01d-08d7416e73e1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR08MB3200; X-MS-TrafficTypeDiagnostic: VI1PR08MB3200:|DB7PR08MB3340: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:2331;OLM:2331; x-forefront-prvs: 01713B2841 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(136003)(346002)(376002)(366004)(39860400002)(396003)(13464003)(189003)(199004)(54906003)(2501003)(186003)(71200400001)(2201001)(86362001)(14454004)(478600001)(7696005)(99286004)(6116002)(74316002)(71190400001)(76176011)(102836004)(6506007)(53546011)(66556008)(33656002)(55236004)(25786009)(3846002)(26005)(66476007)(305945005)(76116006)(7736002)(66446008)(64756008)(66946007)(6246003)(66066001)(55016002)(2906002)(4744005)(8936002)(52536014)(4326008)(81156014)(81166006)(9686003)(6436002)(229853002)(5660300002)(256004)(110136005)(316002)(486006)(446003)(11346002)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3200; H:VI1PR08MB5376.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: 8WhgwU9RS89ZL/6uC+cNqf/WCuH6i+YHXecU3SOC2jYQ/R0DM12CjlGS9rA+Pz+QlzaqpmTFEWzcsfzb/w4D7fiKDk6Toi3McLAuZAHcx+9Za67r1KpHhs8oVGaJMb2AkhpCmMdz2cnvHjyNARJ6n/4aOo/OiK/CEAP1LOPZab/X9DyLv4vI355KyV+EmcYEpHNQJ28M8GM8HDkdWganu63IWDp18X/xOXiOYp7i8+GxIms8OVq0tGBV6UR3wsdwebSNGBygBqaE89lLm1LF68WokEBHmCG+arCVcAx4Y/Wy5iXn7mLNN7R+2Aivd+dwM6LrA5v3eRO9Xe8Pe1Jw9c2fbqJOhA4jwsaomRtqfA8mu51WCf/7FlLjj1jG5vX62IZ9Q55vr1plWNatpMWTuNkh0+wtWIsZ7hEXofNNEI0= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3200 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(376002)(346002)(136003)(189003)(199004)(13464003)(2501003)(305945005)(4326008)(2201001)(7736002)(33656002)(336012)(6246003)(46406003)(356004)(74316002)(316002)(70206006)(55016002)(6116002)(54906003)(70586007)(50466002)(23726003)(36906005)(86362001)(47776003)(9686003)(110136005)(97756001)(14454004)(7696005)(76130400001)(52536014)(99286004)(3846002)(25786009)(53546011)(76176011)(26005)(66066001)(6506007)(446003)(126002)(81156014)(81166006)(102836004)(8746002)(11346002)(186003)(5660300002)(63350400001)(2906002)(8936002)(478600001)(476003)(22756006)(26826003)(4744005)(229853002)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3340; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:TempError; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 580609b3-5bf9-4316-5b68-08d7416e6e53 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(710020)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DB7PR08MB3340; NoDisclaimer: True X-Forefront-PRVS: 01713B2841 X-Microsoft-Antispam-Message-Info: WPaUEt9gosdEHDK6xGJBT1Vr1iKpweRS/RHa77PP4HSEN48NTw+o4Mab6csBRC30Yvff/bLL4xljvHqIFuju5qnROhY97QxJQC7XaJ6hBZWiLutnah1g4TDhli/31rJXV5bw5hfKFVM4iBr+6IaTdxOm77BRZ0KJk/AhFSCJRf7aC+b/9+2XGGFYqFVoezHOzS63gvD6BsgnAy8ZOgp66KirXi9rsU1JqkbdJgsVbUPkW8ZrrAGsd7vGIeXQVsfUBfkEraK95hAtPP3juur1Pxwlh+w9XS/X+Y4DUQT+1jkjZqel+mZ2tlqrzvUTHeF3qd3OcBdBaYiS2bpMJSLtdHPf5qB29GtDUFy6apPvU8spAPjz5N0z2if1kn0D9vLxn4d34SVgl9z9xOb3fiJ0Jp5e4PxxmyWNWS4EFHNpn3Y= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2019 04:11:34.2032 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29c0747b-3769-40ed-b01d-08d7416e73e1 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3340 Subject: Re: [dpdk-dev] [PATCH v2 10/16] vhost: split enqueue and dequeue flush functions 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" Similarly the rte_smp_wmb can be out of and right above the loop.=20 > -----Original Message----- > From: dev On Behalf Of Marvin Liu > Sent: Friday, September 20, 2019 12:37 AM > To: maxime.coquelin@redhat.com; tiwei.bie@intel.com; > zhihong.wang@intel.com > Cc: dev@dpdk.org; Marvin Liu > Subject: [dpdk-dev] [PATCH v2 10/16] vhost: split enqueue and dequeue > flush functions >=20 > Vhost enqueue descriptors are updated by burst number, while vhost > dequeue descriptors are buffered. Meanwhile in dequeue function only > first descriptor is buffered. Due to these differences, split vhost > enqueue and dequeue flush functions. >=20 > Signed-off-by: Marvin Liu >=20