代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gazelle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 7f4143cd462cba5499cda0434fedd498c0967623 Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng12@huawei.com>
Date: Tue, 19 Apr 2022 21:28:00 +0800
Subject: [PATCH 04/18] re-arrange the program to invoke rte_eth_dev_start
before rss_setup
in rss_setup(), the program invokes rte_eth_dev_rss_reta_update().
this API should be invoked after rte_eth_dev_start().
---
src/lstack/core/lstack_dpdk.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/lstack/core/lstack_dpdk.c b/src/lstack/core/lstack_dpdk.c
index 3f446ea..a5b2ddc 100644
--- a/src/lstack/core/lstack_dpdk.c
+++ b/src/lstack/core/lstack_dpdk.c
@@ -495,6 +495,12 @@ int32_t dpdk_ethdev_init(void)
return ret;
}
+ ret = dpdk_ethdev_start();
+ if (ret < 0) {
+ LSTACK_LOG(ERR, LSTACK, "dpdk_ethdev_start failed\n");
+ return ret;
+ }
+
if (rss_enable) {
rss_setup(port_id, nb_queues);
}
@@ -604,12 +610,6 @@ int32_t init_dpdk_ethdev(void)
return -1;
}
- ret = dpdk_ethdev_start();
- if (ret < 0) {
- LSTACK_LOG(ERR, LSTACK, "dpdk_ethdev_start failed\n");
- return -1;
- }
-
if (get_global_cfg_params()->kni_switch) {
ret = dpdk_init_lstack_kni();
if (ret < 0) {
--
2.23.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。