[PATCH 4/6] net/hns3: fix nb-desc not verified when using SVE
Dongdong Liu
liudongdong3 at huawei.com
Fri Jun 24 10:59:49 CEST 2022
From: Chengwen Feng <fengchengwen at huawei.com>
The SVE algorithm and NEON algorithm have the same requirements for
nb-desc, but the nb-desc is verified only when using NEON. This patch
fixes it.
Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop")
Cc: stable at dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3 at 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 0c91e4721e..b48da82b64 100644
--- a/drivers/net/hns3/hns3_rxtx.c
+++ b/drivers/net/hns3/hns3_rxtx.c
@@ -1754,7 +1754,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.22.0
More information about the dev
mailing list