From: Chengchang Tang Date: Mon, 21 Sep 2020 13:22:38 +0000 (+0800) Subject: net/hns3: add Rx buffer size to Rx queue info X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e692c7469114271f1f8c5f9f2e0bbe8e710915fb;p=dpdk.git net/hns3: add Rx buffer size to Rx queue info Report hns3 PMD configured Rx buffer size in Rx queue information query. Signed-off-by: Chengchang Tang Reviewed-by: Wei Hu (Xavier) --- diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index 68d7a6a8ef..816c39c76f 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -3275,6 +3275,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