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 2494843212; Fri, 27 Oct 2023 08:28:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1297B40A6C; Fri, 27 Oct 2023 08:28:16 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id C3871406FF for ; Fri, 27 Oct 2023 08:28:14 +0200 (CEST) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SGt0n4cW4zPnmK; Fri, 27 Oct 2023 14:24:09 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 27 Oct 2023 14:28:13 +0800 Subject: Re: [PATCH v2 2/3] app/testpmd: add maximum Rx buffer size display To: Huisong Li , CC: , , , References: <20230808040234.12947-1-lihuisong@huawei.com> <20231027041523.14518-1-lihuisong@huawei.com> <20231027041523.14518-3-lihuisong@huawei.com> From: fengchengwen Message-ID: <97364813-0c3e-113e-4d8f-b36deb45a6dd@huawei.com> Date: Fri, 27 Oct 2023 14:28:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20231027041523.14518-3-lihuisong@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml100024.china.huawei.com (7.185.36.115) 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 Acked-by: Chengwen Feng On 2023/10/27 12:15, Huisong Li wrote: > Add maximum Rx buffer size display. > > Signed-off-by: Huisong Li > --- > app/test-pmd/config.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index b9fdb7e8f1..2ac6f15773 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -881,6 +881,8 @@ port_infos_display(portid_t port_id) > } > > printf("Minimum size of RX buffer: %u\n", dev_info.min_rx_bufsize); > + if (dev_info.max_rx_bufsize != UINT32_MAX) > + printf("Maximum size of RX buffer: %u\n", dev_info.max_rx_bufsize); > printf("Maximum configurable length of RX packet: %u\n", > dev_info.max_rx_pktlen); > printf("Maximum configurable size of LRO aggregated packet: %u\n", >