33 lines
1000 B
Diff
33 lines
1000 B
Diff
From 411b0126f3693b53cc72bc01c0be919d24071fd1 Mon Sep 17 00:00:00 2001
|
|
From: bitcoffee <liuxin350@huawei.com>
|
|
Date: Sun, 15 Dec 2024 20:31:19 +0800
|
|
Subject: [PATCH] fix helper function in the 6.x kernel cannot be correctly
|
|
matched on the Kmesh macros env
|
|
|
|
The FN(get_netns_cookie) in the 6.x kernel is changed to
|
|
FN(get_netns_cookie, 212, ##ctx). Original logic cannot adapt to
|
|
the 6.x kernel. Modify kmesh_macros_env to adapt to the new kernel
|
|
logic.
|
|
|
|
Signed-off-by: bitcoffee <liuxin350@huawei.com>
|
|
---
|
|
kmesh_macros_env.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/kmesh_macros_env.sh b/kmesh_macros_env.sh
|
|
index 01a6934..ddfdf13 100644
|
|
--- a/kmesh_macros_env.sh
|
|
+++ b/kmesh_macros_env.sh
|
|
@@ -8,7 +8,7 @@ function set_config() {
|
|
}
|
|
|
|
# MDA_LOOPBACK_ADDR
|
|
-if grep -q "FN(get_netns_cookie)" $KERNEL_HEADER_LINUX_BPF; then
|
|
+if grep -q "FN(get_netns_cookie" $KERNEL_HEADER_LINUX_BPF; then
|
|
set_config MDA_LOOPBACK_ADDR 1
|
|
else
|
|
set_config MDA_LOOPBACK_ADDR 0
|
|
--
|
|
2.33.0
|
|
|