Sync some patchs from upstreaming and modifies are as follow: - net/hns3: fix mailbox sync - net/hns3: report maximum buffer size - ethdev: add maximum Rx buffer size - app/procinfo: show RSS hash algorithm - ethdev: get RSS algorithm names - app/procinfo: adjust format of RSS info - app/procinfo: fix RSS info - net/hns3: support setting and querying RSS hash function - net/hns3: report RSS hash algorithms capability - ethdev: set and query RSS hash algorithm - ethdev: clarify RSS related fields usage - net/hns3: fix uninitialized hash algo value - net/hns3: keep set/get algo key functions local - net/hns3: fix some error logs - net/hns3: fix some return values - net/hns3: fix LRO offload to report - net/hns3: fix setting DCB capability - app/testpmd: ease configuring all offloads - net/hns3: refactor interrupt state query - net/hns3: fix IMP or global reset - net/hns3: fix multiple reset detected log - net/hns3: remove reset log in secondary - net/hns3: fix double stats for IMP and global reset - net/hns3: fix crash for NEON and SVE - net/hns3: fix unchecked Rx free threshold - net/hns3: fix typo in function name - net/hns3: fix build warning - telemetry: fix repeat display when callback don't init dict Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 51ce4165992b99416a89951c403b9ed1907ff67c Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Fri, 3 Nov 2023 18:27:59 +0800
|
|
Subject: [PATCH 393/394] net/hns3: report maximum buffer size
|
|
|
|
[ upstream commit a276af95fa52ea4e97d173f6f0afe6cdec6949ba ]
|
|
|
|
This patch reports the maximum buffer size hardware supported.
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Acked-by: Chengwen Feng <fengchengwen@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 7a49f0d11d..0d6b2c65af 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 |
|
|
--
|
|
2.23.0
|
|
|