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 CE1A841E02; Tue, 7 Mar 2023 12:01:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B64D240E03; Tue, 7 Mar 2023 12:01:28 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id E8F984067E for ; Tue, 7 Mar 2023 12:01:27 +0100 (CET) Received: from frapeml100007.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PWC9g2V6dz6J9hQ; Tue, 7 Mar 2023 18:58:47 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100007.china.huawei.com (7.182.85.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 7 Mar 2023 12:01:26 +0100 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.021; Tue, 7 Mar 2023 12:01:26 +0100 From: Konstantin Ananyev To: Feifei Wang , Konstantin Ananyev , Yuying Zhang , Beilei Xing , Ruifeng Wang CC: "dev@dpdk.org" , nd , Honnappa Nagarahalli , nd , nd Subject: RE: [PATCH v3 2/3] net/i40e: enable direct rearm with separate API Thread-Topic: [PATCH v3 2/3] net/i40e: enable direct rearm with separate API Thread-Index: AQHZIA9X2G9SbpcR3E+YGLgR3e2mR6671uYAgCJC8YCABWpQoIAAYA0AgAuirAA= Date: Tue, 7 Mar 2023 11:01:26 +0000 Message-ID: <67ef44538dfd41af829c47891ced9e8e@huawei.com> References: <20220420081650.2043183-1-feifei.wang2@arm.com> <20230104073043.1120168-1-feifei.wang2@arm.com> <20230104073043.1120168-3-feifei.wang2@arm.com> <445b0731-8e91-31dc-2ce5-90616c03f431@yandex.ru> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.48.149.130] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected 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 DQoNCj4gPiAtLS0tLemCruS7tuWOn+S7ti0tLS0tDQo+ID4g5Y+R5Lu25Lq6OiBLb25zdGFudGlu IEFuYW55ZXYgPGtvbnN0YW50aW4uYW5hbnlldkBodWF3ZWkuY29tPg0KPiA+IOWPkemAgeaXtumX tDogVHVlc2RheSwgRmVicnVhcnkgMjgsIDIwMjMgMzozNiBBTQ0KPiA+IOaUtuS7tuS6ujogRmVp ZmVpIFdhbmcgPEZlaWZlaS5XYW5nMkBhcm0uY29tPjsgS29uc3RhbnRpbiBBbmFueWV2DQo+ID4g PGtvbnN0YW50aW4udi5hbmFueWV2QHlhbmRleC5ydT47IFl1eWluZyBaaGFuZw0KPiA+IDxZdXlp bmcuWmhhbmdAaW50ZWwuY29tPjsgQmVpbGVpIFhpbmcgPGJlaWxlaS54aW5nQGludGVsLmNvbT47 IFJ1aWZlbmcNCj4gPiBXYW5nIDxSdWlmZW5nLldhbmdAYXJtLmNvbT4NCj4gPiDmioTpgIE6IGRl dkBkcGRrLm9yZzsgbmQgPG5kQGFybS5jb20+OyBIb25uYXBwYSBOYWdhcmFoYWxsaQ0KPiA+IDxI b25uYXBwYS5OYWdhcmFoYWxsaUBhcm0uY29tPjsgbmQgPG5kQGFybS5jb20+DQo+ID4g5Li76aKY OiBSRTogW1BBVENIIHYzIDIvM10gbmV0L2k0MGU6IGVuYWJsZSBkaXJlY3QgcmVhcm0gd2l0aCBz ZXBhcmF0ZSBBUE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