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 9381BA04B1; Sat, 29 Aug 2020 09:15:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 342272C2D; Sat, 29 Aug 2020 09:15:50 +0200 (CEST) Received: from huawei.com (szxga04-in.huawei.com [45.249.212.190]) by dpdk.org (Postfix) with ESMTP id 646882C2D for ; Sat, 29 Aug 2020 09:15:47 +0200 (CEST) Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8E78142BDBA1624B5C5E; Sat, 29 Aug 2020 15:15:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 29 Aug 2020 15:15:38 +0800 From: Chengchang Tang To: CC: , , , , , Date: Sat, 29 Aug 2020 15:13:18 +0800 Message-ID: <1598685199-1630-4-git-send-email-tangchengchang@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598685199-1630-1-git-send-email-tangchengchang@huawei.com> References: <1592483709-7076-1-git-send-email-tangchengchang@huawei.com> <1598685199-1630-1-git-send-email-tangchengchang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v3 3/4] app/procinfo: add Rx buffer size to --show-port 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" Add Rx buffer size to show_port function to display it in the port PMD information so that the user can get the buffer length used by HW queue of receiving packets. Signed-off-by: Chengchang Tang --- app/proc-info/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index abeca4a..e840dea 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -711,11 +711,13 @@ show_port(void) if (ret == 0) { printf("\t -- queue %d rx scatter %d" " descriptors %d" + " rx buffer size %d" " offloads 0x%"PRIx64 " mempool socket %d\n", j, queue_info.scattered_rx, queue_info.nb_desc, + queue_info.rx_buf_size, queue_info.conf.offloads, queue_info.mp->socket_id); } -- 2.7.4