代码拉取完成,页面将自动刷新
From e5aa9e48521b3096ba9acb888d293eefeaf677da Mon Sep 17 00:00:00 2001
From: Caohongtao <caohongtao_yewu@cmss.chinamobile.com>
Date: Wed, 9 Oct 2024 02:55:56 +0000
Subject: [PATCH] Fix the wrong spelling description in the notes and logs
Signed-off-by: Caohongtao <caohongtao_yewu@cmss.chinamobile.com>
---
src/ltran/ltran_forward.c | 6 +++---
src/ltran/main.c | 4 ++--
tools/gazelle_common.sh | 8 ++++----
tools/gazelle_setup.sh | 4 ++--
tools/sync-gazelle-src.sh | 4 ++--
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/ltran/ltran_forward.c b/src/ltran/ltran_forward.c
index 0de9c1c..aef5e46 100644
--- a/src/ltran/ltran_forward.c
+++ b/src/ltran/ltran_forward.c
@@ -58,7 +58,7 @@ static void calculate_ltran_latency(struct gazelle_stack *stack, const struct rt
uint64_t latency;
lt = &mbuf_to_private(mbuf)->lt;
- // vaild check
+ // valid check
if (lt->stamp != ~(lt->check)) {
return;
}
@@ -221,7 +221,7 @@ static __rte_always_inline void flush_rx_ring(struct gazelle_stack *stack)
}
uint32_t flush_cnt = pkt_bufs_enque_rx_ring(stack);
- /* cant't flush mbuf into backup */
+ /* can't flush mbuf into backup */
if (unlikely(flush_cnt < stack->pkt_cnt)) {
pktbufs_move_to_backup_bufs(stack, &(stack->pkt_buf[flush_cnt]), stack->pkt_cnt - flush_cnt);
}
@@ -475,7 +475,7 @@ static __rte_always_inline void tcp_hash_table_add_conn(struct gazelle_stack *st
tcp_conn->conn_timeout = -1;
return;
} else {
- /* del old invaild conn */
+ /* del old invalid conn */
gazelle_conn_del_by_quintuple(conn_htable, transfer_qtuple);
}
}
diff --git a/src/ltran/main.c b/src/ltran/main.c
index 3d2310b..0320b29 100644
--- a/src/ltran/main.c
+++ b/src/ltran/main.c
@@ -117,7 +117,7 @@ static int32_t ltran_core_init(int32_t argc, char *argv[])
ret = ltran_ethdev_init();
if (ret != GAZELLE_OK) {
- syslog(LOG_ERR, "ltran ethdev init faild. ret=%d.\n", ret);
+ syslog(LOG_ERR, "ltran ethdev init failed. ret=%d.\n", ret);
closelog();
return ret;
}
@@ -211,7 +211,7 @@ int32_t main(int32_t argc, char *argv[])
}
/* create multi thread to receive and send packet for multi bond port */
- LTRAN_INFO("Runing Process forward\n");
+ LTRAN_INFO("Running Process forward\n");
/* main thread is for port 0 receive packet */
index = 0;
upstream_forward((const void *)&index);
diff --git a/tools/gazelle_common.sh b/tools/gazelle_common.sh
index fac0d68..8febd16 100644
--- a/tools/gazelle_common.sh
+++ b/tools/gazelle_common.sh
@@ -25,7 +25,7 @@ g_subnet_len=""
g_gateway=""
g_premask=""
-# globla varibles initialized when run
+# global variables initialized when run
g_netcard_mac=""
g_kni_mac=""
g_default_route="$(sudo ip route | grep default)"
@@ -148,7 +148,7 @@ load_vfio_module() {
msg_show "Loading vfio module"
sudo /sbin/modprobe vfio enable_unsafe_noiommu_mode=1
else
- msg_err "the vfio mudule is not exist"
+ msg_err "the vfio module is not exist"
return 1
fi
sudo modinfo vfio-pci > /dev/null
@@ -156,7 +156,7 @@ load_vfio_module() {
msg_show "Loading vfio-pci module"
sudo /sbin/modprobe vfio-pci
else
- msg_err "the vfio-pci mudule is not exist"
+ msg_err "the vfio-pci module is not exist"
return 1
fi
fi
@@ -393,7 +393,7 @@ configure_nic() {
fi
if [ $1 = "usr" ]; then
- msg_show "use vitual kni card"
+ msg_show "use virtual kni card"
net_card=$g_conn_if_kni
default_route="$(echo $g_default_route | grep $g_conn_if)"
fi
diff --git a/tools/gazelle_setup.sh b/tools/gazelle_setup.sh
index c3ad830..8185e19 100644
--- a/tools/gazelle_setup.sh
+++ b/tools/gazelle_setup.sh
@@ -117,7 +117,7 @@ check_nic_name() {
check_numa_pages() {
numa_num=$(lscpu | grep "NUMA node(s)" | awk '{print $3}')
- # todo : check the maxmum and minmum of the page numbers, make sure the system available mem support
+ # todo : check the maxmum and minimum of the page numbers, make sure the system available mem support
g_hugepages=${g_hugepages:-1024}
msg_show "make sure the huge mem is large enough & not extend the maximum of system mem!"
myPage=(${g_hugepages//\,/ })
@@ -511,7 +511,7 @@ XDG_RUNTIME_DIR=/tmp nohup /usr/bin/ltran --config-file=$CONF_DIR/ltran.conf > /
check_ltran 120
if [ $? -ne 0 ]; then
- msg_err "ltran start faild! Please check ltran's log for the reason of the problem."
+ msg_err "ltran start failed! Please check ltran's log for the reason of the problem."
nic_recover
exit 1
else
diff --git a/tools/sync-gazelle-src.sh b/tools/sync-gazelle-src.sh
index ccfa8eb..326119b 100644
--- a/tools/sync-gazelle-src.sh
+++ b/tools/sync-gazelle-src.sh
@@ -8,7 +8,7 @@
# 2. COMMIT_ID is a committrf hash record from openeuler/gazelle (this repository).
# Multiple committrf hash records should be separated by spaces;
# 3. TARGET_BRANCH is a branch from src-openeuler/gazelle;
-# 4. USER/EMAIL will be autimatically obtailed from the git configuration;
+# 4. USER/EMAIL will be automatically obtailed from the git configuration;
# Example Usage:
# > COMMIT_ID="123456789" TARGET_BRANCH="openEuler-20.03-LTS-SP1" bash tools/sync-gazelle-src.sh
@@ -39,7 +39,7 @@ for commitid in ${COMMIT_ID};do
cd ${workdir}
patchname=$(git format-patch -1 ${commitid} | tail -n1)
if [ $? -ne 0 ];then
- echo "invaild commitid $commitid"
+ echo "invalid commitid $commitid"
exit 1
fi
gitmsg=$(git log --pretty=format:"%s" -1 $commitid | sed -e 's/^![0-9]* //g')
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。