[v2,3/3] net/hns3: report maximum buffer size
Checks
Commit Message
This patch reports the maximum buffer size hardware supported.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
drivers/net/hns3/hns3_common.c | 1 +
1 file changed, 1 insertion(+)
Comments
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
On 2023/10/27 12:15, Huisong Li wrote:
> This patch reports the maximum buffer size hardware supported.
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> ---
> drivers/net/hns3/hns3_common.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c
> index c4d47f43fe..cfce9ddd0f 100644
> --- a/drivers/net/hns3/hns3_common.c
> +++ b/drivers/net/hns3/hns3_common.c
> @@ -59,6 +59,7 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info)
> info->max_tx_queues = hw->tqps_num;
> info->max_rx_pktlen = HNS3_MAX_FRAME_LEN; /* CRC included */
> info->min_rx_bufsize = HNS3_MIN_BD_BUF_SIZE;
> + info->max_rx_bufsize = HNS3_MAX_BD_BUF_SIZE;
> info->max_mtu = info->max_rx_pktlen - HNS3_ETH_OVERHEAD;
> info->max_lro_pkt_size = HNS3_MAX_LRO_SIZE;
> info->rx_offload_capa = (RTE_ETH_RX_OFFLOAD_IPV4_CKSUM |
>
@@ -59,6 +59,7 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info)
info->max_tx_queues = hw->tqps_num;
info->max_rx_pktlen = HNS3_MAX_FRAME_LEN; /* CRC included */
info->min_rx_bufsize = HNS3_MIN_BD_BUF_SIZE;
+ info->max_rx_bufsize = HNS3_MAX_BD_BUF_SIZE;
info->max_mtu = info->max_rx_pktlen - HNS3_ETH_OVERHEAD;
info->max_lro_pkt_size = HNS3_MAX_LRO_SIZE;
info->rx_offload_capa = (RTE_ETH_RX_OFFLOAD_IPV4_CKSUM |