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 6C13D43212; Fri, 27 Oct 2023 08:17:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C2644064A; Fri, 27 Oct 2023 08:17:13 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 3EA53402D4 for ; Fri, 27 Oct 2023 08:17:11 +0200 (CEST) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SGsnK5lGFzrTr3; Fri, 27 Oct 2023 14:14:13 +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:17:08 +0800 Subject: Re: [PATCH v2 3/3] net/hns3: report maximum buffer size To: Huisong Li , CC: , , , References: <20230808040234.12947-1-lihuisong@huawei.com> <20231027041523.14518-1-lihuisong@huawei.com> <20231027041523.14518-4-lihuisong@huawei.com> From: fengchengwen Message-ID: <58453842-0f08-dc25-0885-c4d3d0b8bb0d@huawei.com> Date: Fri, 27 Oct 2023 14:17:08 +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-4-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: dggems706-chm.china.huawei.com (10.3.19.183) 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: > This patch reports the maximum buffer size hardware supported. > > Signed-off-by: Huisong Li > --- > drivers/net/hns3/hns3_common.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c > index c4d47f43fe..cfce9ddd0f 100644 > --- a/drivers/net/hns3/hns3_common.c > +++ b/drivers/net/hns3/hns3_common.c > @@ -59,6 +59,7 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) > info->max_tx_queues = hw->tqps_num; > info->max_rx_pktlen = HNS3_MAX_FRAME_LEN; /* CRC included */ > info->min_rx_bufsize = HNS3_MIN_BD_BUF_SIZE; > + info->max_rx_bufsize = HNS3_MAX_BD_BUF_SIZE; > info->max_mtu = info->max_rx_pktlen - HNS3_ETH_OVERHEAD; > info->max_lro_pkt_size = HNS3_MAX_LRO_SIZE; > info->rx_offload_capa = (RTE_ETH_RX_OFFLOAD_IPV4_CKSUM | >