1 Star 0 Fork 32

Ren Zhijie/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0111-update-src-common-dpdk_common.c.patch 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
yinbin6 提交于 2024-01-06 20:12 . sync replace with gz_addr_t
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/byterzj/gazelle.git
git@gitee.com:byterzj/gazelle.git
byterzj
gazelle
gazelle
master

搜索帮助