Sync some patches for hns3 PMD, telemetry and testpmd. And main modifications are as follows: - backport some bugfixes for hns3 - revert Tx performance optimization for hns3 - add Rx/Tx descriptor dump feature for hns3 - refactor some RSS commands for testpmd - add ethdev telemetry private dump - add dmadev telemetry - sync telemetry lib Signed-off-by: Huisong Li <lihuisong@huawei.com> (cherry picked from commit 4f06d27eff9aa99c2e2073ac74328893990ed8ed)
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 07210d18c368b27539218d9c3a907f30447c2a1e Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Fri, 21 Oct 2022 15:36:06 +0800
|
|
Subject: [PATCH 130/189] net/hns3: fix descriptors check with SVE
|
|
|
|
The SVE algorithm and NEON algorithm have the same requirements for
|
|
nb-desc, but the nb-desc is verified only when using NEON.
|
|
|
|
Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_rxtx.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c
|
|
index 0dc1d8cb60..b7fe2352a1 100644
|
|
--- a/drivers/net/hns3/hns3_rxtx.c
|
|
+++ b/drivers/net/hns3/hns3_rxtx.c
|
|
@@ -1759,7 +1759,8 @@ hns3_rxq_conf_runtime_check(struct hns3_hw *hw, uint16_t buf_size,
|
|
return -EINVAL;
|
|
}
|
|
|
|
- if (pkt_burst == hns3_recv_pkts_vec) {
|
|
+ if (pkt_burst == hns3_recv_pkts_vec ||
|
|
+ pkt_burst == hns3_recv_pkts_vec_sve) {
|
|
min_vec_bds = HNS3_DEFAULT_RXQ_REARM_THRESH +
|
|
HNS3_DEFAULT_RX_BURST;
|
|
if (nb_desc < min_vec_bds ||
|
|
--
|
|
2.23.0
|
|
|