代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gazelle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From c6a7e8224dd9faff9120be8814638fe939570908 Mon Sep 17 00:00:00 2001
From: Caohongtao <caohongtao_yewu@cmss.chinamobile.com>
Date: Thu, 4 Jan 2024 09:34:04 +0000
Subject: [PATCH] update src/common/dpdk_common.c.
Signed-off-by: Caohongtao <caohongtao_yewu@cmss.chinamobile.com>
---
src/common/dpdk_common.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/common/dpdk_common.c b/src/common/dpdk_common.c
index 50f0bf0..62278c2 100644
--- a/src/common/dpdk_common.c
+++ b/src/common/dpdk_common.c
@@ -65,13 +65,13 @@ static int32_t kni_config_network_interface(uint16_t port_id, uint8_t if_up)
g_bond_dev_started = true;
}
} else {
- COMMON_INFO("trying to start a started dev. \n");
+ COMMON_INFO("Trying to start a started dev. \n");
}
} else { /* Configure network interface down */
if (g_kni_started) {
g_kni_started = false;
} else {
- COMMON_INFO("trying to stop a stopped dev. \n");
+ COMMON_INFO("Trying to stop a stopped dev. \n");
}
}
@@ -154,7 +154,7 @@ void eth_params_checksum(struct rte_eth_conf *conf, struct rte_eth_dev_info *dev
conf->rxmode.offloads = rx_ol;
conf->txmode.offloads = tx_ol;
- COMMON_INFO("set checksum offloads\n");
+ COMMON_INFO("Set checksum offloads\n");
}
int32_t dpdk_kni_init(uint16_t port, struct rte_mempool *pool)
@@ -179,14 +179,14 @@ int32_t dpdk_kni_init(uint16_t port, struct rte_mempool *pool)
ret = snprintf_s(conf.name, RTE_KNI_NAMESIZE, RTE_KNI_NAMESIZE - 1, "%s", GAZELLE_KNI_NAME);
if (ret < 0) {
- COMMON_ERR("snprintf_s failed. ret=%d\n", ret);
+ COMMON_ERR("Snprintf_s failed. ret=%d\n", ret);
return -1;
}
conf.mbuf_size = GAZELLE_MAX_PKT_SZ;
conf.group_id = port;
if (rte_eth_dev_info_get(port, &dev_info) != 0) {
- COMMON_ERR("Fail rte_eth_dev_info_get\n");
+ COMMON_ERR("Failed rte_eth_dev_info_get\n");
return -1;
}
@@ -204,7 +204,7 @@ int32_t dpdk_kni_init(uint16_t port, struct rte_mempool *pool)
ops.port_id = port;
g_pkni = rte_kni_alloc(pool, &conf, &ops);
if (g_pkni == NULL) {
- COMMON_ERR("Fail to create kni for port: %hu \n", port);
+ COMMON_ERR("Failed to create kni for port: %hu \n", port);
return -1;
}
return 0;
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。