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 98A1945BC6; Thu, 24 Oct 2024 18:45:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8382343507; Thu, 24 Oct 2024 18:45:01 +0200 (CEST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id 200BC4025C for ; Thu, 24 Oct 2024 18:45:00 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4XZBYx6kyHz1jvtg; Fri, 25 Oct 2024 00:43:33 +0800 (CST) Received: from dggpeml100023.china.huawei.com (unknown [7.185.36.151]) by mail.maildlp.com (Postfix) with ESMTPS id 8653C1402DE; Fri, 25 Oct 2024 00:44:58 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by dggpeml100023.china.huawei.com (7.185.36.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 25 Oct 2024 00:44:57 +0800 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.039; Thu, 24 Oct 2024 18:44:55 +0200 From: Konstantin Ananyev To: "lihuisong (C)" , "dev@dpdk.org" CC: "mb@smartsharesystems.com" , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , "anatoly.burakov@intel.com" , "david.hunt@intel.com" , "sivaprasad.tummala@amd.com" , "stephen@networkplumber.org" , "david.marchand@redhat.com" , Fengchengwen , liuyonglong Subject: RE: [PATCH v12 3/3] examples/l3fwd-power: add PM QoS configuration Thread-Topic: [PATCH v12 3/3] examples/l3fwd-power: add PM QoS configuration Thread-Index: AQHbJQLWe0PYadnF6kCrtR+6Gzee2LKWHUkg Date: Thu, 24 Oct 2024 16:44:55 +0000 Message-ID: <368f291b2d644105aabf47ce7ef12f6c@huawei.com> References: <20240320105529.5626-1-lihuisong@huawei.com> <20241023040916.1426-1-lihuisong@huawei.com> <20241023040916.1426-4-lihuisong@huawei.com> In-Reply-To: <20241023040916.1426-4-lihuisong@huawei.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.195.32.113] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 DQoNCj4gVGhlICctLWNwdS1yZXN1bWUtbGF0ZW5jeScgY2FuIHVzZSB0byBjb250cm9sIEMtc3Rh dGUgc2VsZWN0aW9uLg0KPiBTZXR0aW5nIHRoZSBDUFUgcmVzdW1lIGxhdGVuY3kgdG8gMCBjYW4g bGltaXQgdGhlIENQVSBqdXN0IHRvIGVudGVyDQo+IEMwLXN0YXRlIHRvIGltcHJvdmUgcGVyZm9y bWFuY2UsIHdoaWNoIGFsc28gbWF5IGluY3JlYXNlIHRoZSBwb3dlcg0KPiBjb25zdW1wdGlvbiBv ZiBwbGF0Zm9ybS4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IEh1aXNvbmcgTGkgPGxpaHVpc29uZ0Bo dWF3ZWkuY29tPg0KPiBBY2tlZC1ieTogTW9ydGVuIEJyw7hydXAgPG1iQHNtYXJ0c2hhcmVzeXN0 ZW1zLmNvbT4NCj4gQWNrZWQtYnk6IENoZW5nd2VuIEZlbmcgPGZlbmdjaGVuZ3dlbkBodWF3ZWku Y29tPg0KPiAtLS0NCj4gIC4uLi9zYW1wbGVfYXBwX3VnL2wzX2ZvcndhcmRfcG93ZXJfbWFuLnJz dCAgICB8ICA1ICstD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