Skip to content

Commit 13d07f1

Browse files
committed
change bpf_func_exist to global
Sometimes, such as in arm, the bpf_func_exist field can't be generated by the bpf skel if it is static. Therefore, make it global. Signed-off-by: Menglong Dong <imagedong@tencent.com>
1 parent 743c372 commit 13d07f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/bpf/skb_parse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct {
4242
} m_config SEC(".maps");
4343

4444
#ifndef BPF_NO_GLOBAL_DATA
45-
static const volatile bool bpf_func_exist[BPF_LOCAL_FUNC_MAX] = {0};
45+
const volatile bool bpf_func_exist[BPF_LOCAL_FUNC_MAX] = {0};
4646
#define bpf_core_helper_exist(name) bpf_func_exist[BPF_LOCAL_FUNC_##name]
4747
#else
4848
#define bpf_core_helper_exist(name) false

0 commit comments

Comments
 (0)