From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 6A83CA04B1;
	Wed, 26 Aug 2020 09:29:27 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 4AC791BE51;
	Wed, 26 Aug 2020 09:29:27 +0200 (CEST)
Received: from mail.chinasoftinc.com (unknown [114.113.233.8])
 by dpdk.org (Postfix) with ESMTP id 969754F9C
 for <dev@dpdk.org>; Wed, 26 Aug 2020 09:29:25 +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:29:24 +0800
To: Chengchang Tang <tangchengchang@huawei.com>, <dev@dpdk.org>
CC: <thomas@monjalon.net>, <arybchenko@solarflare.com>,
 <ferruh.yigit@intel.com>
References: <1592483709-7076-1-git-send-email-tangchengchang@huawei.com>
 <1598425943-61981-1-git-send-email-tangchengchang@huawei.com>
 <1598425943-61981-2-git-send-email-tangchengchang@huawei.com>
From: "Wei Hu (Xavier)" <huwei013@chinasoftinc.com>
Message-ID: <a8420a9b-0d4b-b5dd-ffa7-c481f3948b7b@chinasoftinc.com>
Date: Wed, 26 Aug 2020 15:29:23 +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-2-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 1/3] ethdev: add a field for rxq info
 structure
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>


On 2020/8/26 15:12, Chengchang Tang wrote:
> Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer
> size used in receiving packets for HW.
>
> In this way, upper-layer users can get this information by calling
> rte_eth_rx_queue_info_get.
>
> Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
> ---
> v1 -> v2: fix wrong headline format
> ---
>   lib/librte_ethdev/rte_ethdev.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
> index 70295d7..9fed5cb 100644
> --- a/lib/librte_ethdev/rte_ethdev.h
> +++ b/lib/librte_ethdev/rte_ethdev.h
> @@ -1420,6 +1420,8 @@ struct rte_eth_rxq_info {
>   	struct rte_eth_rxconf conf; /**< queue config parameters. */
>   	uint8_t scattered_rx;       /**< scattered packets RX supported. */
>   	uint16_t nb_desc;           /**< configured number of RXDs. */
> +	/**< buffer size used for hardware when receive packets. */
> +	uint16_t rx_buf_size;
>   } __rte_cache_min_aligned;
>
>   /**
> --
> 2.7.4
>