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 8759C41B88; Tue, 31 Jan 2023 04:11:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52E6940EF0; Tue, 31 Jan 2023 04:11:27 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 2CDC440DFB for ; Tue, 31 Jan 2023 04:11:26 +0100 (CET) Received: from kwepemi500020.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4P5VMN23ftzJqr2; Tue, 31 Jan 2023 11:06:56 +0800 (CST) Received: from [10.67.103.42] (10.67.103.42) by kwepemi500020.china.huawei.com (7.221.188.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 31 Jan 2023 11:11:24 +0800 Message-ID: Date: Tue, 31 Jan 2023 11:11:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2 2/2] ring: add ring info telemetry cmd To: Konstantin Ananyev , , CC: , References: <20230117091049.20194-1-haijie1@huawei.com> <20230117130333.8707-1-haijie1@huawei.com> <20230117130333.8707-3-haijie1@huawei.com> <222fb4ba-3fe8-19ba-a673-c5ba6e85f8ce@yandex.ru> From: Jie Hai In-Reply-To: <222fb4ba-3fe8-19ba-a673-c5ba6e85f8ce@yandex.ru> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.42] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500020.china.huawei.com (7.221.188.8) 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 Hi, Konstantin, Thanks for your review. All accepted and fixed in v3. Jie Hai On 2023/1/23 1:49, Konstantin Ananyev wrote: > >> This patch supports dump of the info of ring by its name. >> An example using this command is shown below: >> >> --> /ring/info,MP_mb_pool_0 >> { >>    "/ring/info": { >>      "name": "MP_mb_pool_0", >>      "socket": 0, >>      "flags": 0, >>      "producer_type": "MP", >>      "consumer_type": "MC", >>      "size": 262144, >>      "mask": 262143, >>      "capacity": 262143, >>      "used_count": 147173, >>      "consumer_tail": 8283, >>      "consumer_head": 8283, >>      "producer_tail": 155456, >>      "producer_head": 155456, >>      "mz_name": "RG_MP_mb_pool_0", >>      "mz_len": 2097920, >>      "mz_hugepage_sz": 1073741824, >>      "mz_socket_id": 0, >>      "mz_flags": 0 >>    } >> } >> >> Signed-off-by: Jie Hai