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 90A6BA04B1; Wed, 26 Aug 2020 09:20:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70C6A4F9C; Wed, 26 Aug 2020 09:20:58 +0200 (CEST) Received: from mail.chinasoftinc.com (unknown [114.113.233.8]) by dpdk.org (Postfix) with ESMTP id B8F0A1F1C for ; Wed, 26 Aug 2020 09:20:56 +0200 (CEST) Received: from [192.168.1.199] (139.159.243.11) by INCCAS002.ito.icss (10.168.0.60) with Microsoft SMTP Server id 14.3.487.0; Wed, 26 Aug 2020 15:20:50 +0800 To: Chengchang Tang , CC: , , , References: <1592483709-7076-1-git-send-email-tangchengchang@huawei.com> <1598425943-61981-1-git-send-email-tangchengchang@huawei.com> <1598425943-61981-4-git-send-email-tangchengchang@huawei.com> From: "Wei Hu (Xavier)" Message-ID: <8f1303a5-cbc0-f8b1-c412-ec5d9fc04001@chinasoftinc.com> Date: Wed, 26 Aug 2020 15:20:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <1598425943-61981-4-git-send-email-tangchengchang@huawei.com> Content-Language: en-US X-Originating-IP: [139.159.243.11] Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2 3/3] net/hns3: add Rx buffer size to Rx qinfo query 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" On 2020/8/26 15:12, Chengchang Tang wrote: > Report hns3 PMD configured Rx buffer size in Rx queue information query. > > Signed-off-by: Chengchang Tang Reviewed-by: Wei Hu (Xavier) > --- > v1 -> v2: fix some spelling mistake. > --- > drivers/net/hns3/hns3_rxtx.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c > index fc1a256..50881d4 100644 > --- a/drivers/net/hns3/hns3_rxtx.c > +++ b/drivers/net/hns3/hns3_rxtx.c > @@ -2830,6 +2830,8 @@ hns3_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, > qinfo->mp = rxq->mb_pool; > qinfo->nb_desc = rxq->nb_rx_desc; > qinfo->scattered_rx = dev->data->scattered_rx; > + /* Report the HW Rx buffer length to user */ > + qinfo->rx_buf_size = rxq->rx_buf_len; > > /* > * If there are no available Rx buffer descriptors, incoming packets > -- > 2.7.4 >