From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F8A2C35DEA for ; Tue, 25 Feb 2020 02:14:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B15121927 for ; Tue, 25 Feb 2020 02:14:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=eoitek.partner.onmschina.cn header.i=@eoitek.partner.onmschina.cn header.b="W7wMZWbs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbgBYCOq (ORCPT ); Mon, 24 Feb 2020 21:14:46 -0500 Received: from mail-shaon0154.outbound.protection.partner.outlook.cn ([42.159.164.154]:49094 "EHLO CN01-SHA-obe.outbound.protection.partner.outlook.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726962AbgBYCOq (ORCPT ); Mon, 24 Feb 2020 21:14:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gV6L6sw9qGx2yqjJvjwWFS9lile9uJxdnSiB8YDFF525rQaDGyTQG5bczyjzHgsHEummts2MQjWgTi6m3lhfNLc/CSWeYyReh2kB5r1ISGVZezcfSM6bPMziC5Mn1k7l6Afhda+ILLTCrfNk+i0CbTii7T0WT9OHtdsw4QAxKGU4MIDy4j9HhOqCvMCOiE/VR7U3gQRmMUvR8YwL7DN0Xi8a7loITb3LsW/djjqG5hTaAWQVvl4lwLOiMeeazUiYh70x+vKz9cgqjnrb9py9Ruh0Ar0kwLBmQtXUnYZmNUgP1x1JtllyWXjsJzkclBI2WtmSJEODHUmdczlOsW9HsQ== 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=QVpa4DTUxKfsFQemDgccYAeo76It55LuEO6aaVU2HPU=; b=BrhmsMACbG2xLIJ2+IKGvAuvQotNk73rccloJOqHriP3mt82JKFMs8zlkogWjplULWFrQYQ6eqCp3PL0+FsnYjyNtGOzlQL3tE6K9Hs1ydtuMhswUVJUF/5tyRXf3S3vpNWRZQDr7S8+eCVf1S7TLVbtI2EJJvREw7toJLFuGWH70RqvCqyU7YI2UXnx3ueUmIAVKQwZdz/UP1c0+hHP9BhH1aRitXbuBO44oRHvf92k57oHOaZadVxT9Q/5/JnmWT5t2UvphgdN8IHQFnsFn/HPhVV8ochMPXya/B1e4Se0ACqte+ZxlPZs3w6UIDctWR7nsk2hhzKmV9E+RnpQsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eoitek.com; dmarc=pass action=none header.from=eoitek.com; dkim=pass header.d=eoitek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eoitek.partner.onmschina.cn; s=selector1-eoitek-partner-onmschina-cn; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QVpa4DTUxKfsFQemDgccYAeo76It55LuEO6aaVU2HPU=; b=W7wMZWbsimJSHZjir+UYqaQ4R85xDF0s9fMVQcPS05iF38zi4WgLk+uinHgEzuQbtbCpasREkOgXAfXqN8zVlWmrzi64T3Ix89MzlEWWXet54dmRQL+QkUvyaN6AMgmNSyC1BC8p+tMrwgsEZyxg9dmfNnUh6G8mNgt1m9ECJfg= Received: from SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn (10.43.108.138) by SH0PR01MB0524.CHNPR01.prod.partner.outlook.cn (10.43.108.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.24; Tue, 25 Feb 2020 02:14:38 +0000 Received: from SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn ([10.43.108.138]) by SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn ([10.43.108.138]) with mapi id 15.20.2750.016; Tue, 25 Feb 2020 02:14:38 +0000 From: =?utf-8?B?Q2FydGVyIExpIOadjumAmua0sg==?= To: Pavel Begunkov CC: Jens Axboe , io-uring Subject: Re: [RFC] single cqe per link Thread-Topic: [RFC] single cqe per link Thread-Index: AQHV63QdEitKeZxv0E6EAMm1LcMaoagrK8AA Date: Tue, 25 Feb 2020 02:14:38 +0000 Message-ID: <9E393343-7DB8-49D1-A7A2-611F88124C11@eoitek.com> References: <1a9a6022-7175-8ed3-4668-e4de3a2b9ff7@gmail.com> In-Reply-To: <1a9a6022-7175-8ed3-4668-e4de3a2b9ff7@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=carter.li@eoitek.com; x-originating-ip: [183.200.9.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2492e004-0e15-40e1-7900-08d7b998776e x-ms-traffictypediagnostic: SH0PR01MB0524: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1443; x-forefront-prvs: 0324C2C0E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(366004)(329002)(328002)(189003)(199004)(33656002)(86362001)(64756008)(95416001)(66946007)(66446008)(186003)(4326008)(26005)(2616005)(2906002)(71200400001)(59450400001)(6916009)(508600001)(63696004)(8936002)(8676002)(81166006)(81156014)(5660300002)(76116006)(85182001)(54906003)(36756003)(66556008)(66476007);DIR:OUT;SFP:1102;SCL:1;SRVR:SH0PR01MB0524;H:SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: eoitek.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mhkOTrcMERmLQurmUHnxxJOy2AKvp3KIz+Bd7/duDW+a109IThTEnxrYmJlinMNM8XbgzRLqrgtzyS8ek7ua/pbXm69DHbksGO5tAbuRVbX3sXbItNUyl4JGe9ic6TVc49VVK+8FFTbHM8eWvaDQ/HfaFDZvRaVnSgz3+93VArGLMEG6Z6HrG8PUrMl+U2n+YwMdEOFvDSE0OD6+FxUIFbXlMFI8teCueOMlWbkI5oUQTC7A30oQUfqoBfEB0xIQZlOF7xIRRHHdZ5t6ZtDaIdyX7jPw+7YY/wmc/slaAyBomR3c6lTk2t0dVDQmo60lDc8LWBqpNI0FoSNE1h6o2vEJa8sEB4znjZeHbL/YWJpMkblHKvnqJmToLzR1Qcis49yWCifYTSpBaQnpf9haBc2i1igqvqS5IRD9NxA6kLy2z2VlVRdYWTZCr1QERF0C x-ms-exchange-antispam-messagedata: oWuEqRnkIIWmototha3on+ZR7pZuO6PMX6hF6c4Y8rm3TJ17/4dzfxcPkCPsxRRGFHbs9YqU3Mg1qaAjSp2L21dwm5DBu/LILkxfNR0HSitMifBQ4uV6sgNBjuQdzRsn1nndxL/2Xpi9knfuZc8uSg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: eoitek.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2492e004-0e15-40e1-7900-08d7b998776e X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2020 02:14:38.5081 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e3e4d1ca-338b-4a22-bdef-50f88bbc88d8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: H2jQqfYD28GWbr3HXTYUQaTXXxBXF9CLSTABORNIObyIhxgaKAkOVR+1jn2Ci946VlhYZ+mVWNvqAujFDBrQaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SH0PR01MB0524 Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org SGVsbG8gUGF2ZWwsDQoNCkkgc3RpbGwgdGhpbmsgZmxhZ3MgdGFnZ2VkIG9uIHNxZXMgY291bGQg YmUgYSBiZXR0ZXIgY2hvaWNlLCB3aGljaCBnaXZlcyB1c2VycyBhbiBhYmlsaXR5IHRvIGRlc2lk ZSBpZiB0aGV5IHdhbnQgdG8gaWdub3JlIHRoZSBjcWVzLCBub3Qgb25seSBmb3IgbGlua3MsIGJ1 dCBhbHNvIGZvciBub3JtYWwgc3Flcy4NCg0KSW4gYWRkaXRpb24sIGJveGVkIGNxZXMgY291bGRu 4oCZdCByZXNvbHZlIHRoZSBpc3N1ZSBvZiBJT1JJTkdfSU9fVElNRU9VVC4NCg0KQ2FydGVyDQoN Cj4gMjAyMOW5tDLmnIgyNeaXpSDkuIrljYg4OjM577yMUGF2ZWwgQmVndW5rb3YgPGFzbWwuc2ls ZW5jZUBnbWFpbC5jb20+IOWGmemBk++8mg0KPiANCj4gSSd2ZSBnb3QgY3VyaW91cyBhYm91dCBw ZXJmb3JtYW5jZSBvZiB0aGUgaWRlYSBvZiBoYXZpbmcgb25seSAxIENRRSBwZXIgbGluaw0KPiAo Zm9yIHRoZSBmYWlsZWQgb3IgbGFzdCBvbmUpLiBUZXN0ZWQgaXQgd2l0aCBhIHF1aWNrIGRpcnR5 IHBhdGNoIGRvaW5nDQo+IHN1Ym1pdC1hbmQtcmVhcCBvZiBhIG5vcHMtbGluayAocGF0Y2hlZCBm b3IgaW5saW5lIGV4ZWN1dGlvbikuDQo+IA0KPiAxKSBsaW5r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