[dpdk-dev] [PATCH v2 3/3] net/hns3: add Rx buffer size to Rx qinfo query

Wei Hu (Xavier) huwei013 at chinasoftinc.com
Wed Aug 26 09:20:49 CEST 2020


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 <tangchengchang at huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
> ---
> 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
>


More information about the dev mailing list