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 B7FDAA0521; Tue, 28 Jul 2020 08:30:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 635FC1C0C0; Tue, 28 Jul 2020 08:30:36 +0200 (CEST) Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by dpdk.org (Postfix) with ESMTP id 9A3041C0BC for ; Tue, 28 Jul 2020 08:30:35 +0200 (CEST) Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id F34AF954D288ABD39FCE; Tue, 28 Jul 2020 14:30:29 +0800 (CST) Received: from [127.0.0.1] (10.65.81.238) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 28 Jul 2020 14:30:23 +0800 To: References: <1592894934-57856-1-git-send-email-tangchengchang@huawei.com> <1595399890-27300-1-git-send-email-tangchengchang@huawei.com> CC: , , , From: Chengchang Tang Message-ID: <6da5b3f1-bc8b-a601-3da5-e0321ac7ca81@huawei.com> Date: Tue, 28 Jul 2020 14:29:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1595399890-27300-1-git-send-email-tangchengchang@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.81.238] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [RFC v2 0/3] add rx buffer size for rte_eth_rxq_info 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" Friendly ping On 2020/7/22 14:38, Chengchang Tang wrote: > In common practice, PMD configure the rx buffer size which indicate the > buffer length could be used for hw in receiving packts according to the > data room size of the object in mempool. But in fact the final value is > related to the specifications of hw, and its values will affect the number > of fragments in recieving pkts when scatter is enabled. By the way, some > PMDs may force to enable scatter when the MTU is bigger than the hw rx > buffer size. > > At present, we seem to have no way to expose relevant information to upper > layer users. > > So, add a field named rx_buf_size in rte_eth_rxq_info to indicate the > buffer size used in recieving pkts for hw. And this patchset also add hns3 > PMD implementation and update the testpmd to clarify intention. > > v2: > Add hns3 implementation and update testpmd. > > Chengchang Tang (2): > ethdev: add a field for rte_eth_rxq_info > app/testpmd: Add RX buffer size dispaly in queue info querry > > Huisong Li (1): > net/hns3: add support for query of rx/tx queue info > > app/test-pmd/config.c | 1 + > drivers/net/hns3/hns3_ethdev.c | 2 ++ > drivers/net/hns3/hns3_ethdev_vf.c | 2 ++ > drivers/net/hns3/hns3_rxtx.c | 48 +++++++++++++++++++++++++++++++++++++++ > drivers/net/hns3/hns3_rxtx.h | 4 ++++ > lib/librte_ethdev/rte_ethdev.h | 2 ++ > 6 files changed, 59 insertions(+) > > -- > 2.7.4 > > _______________________________________________ > Linuxarm mailing list > Linuxarm@huawei.com > http://hulk.huawei.com/mailman/listinfo/linuxarm > > . >