1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2023. Huawei Technologies Co., Ltd */
4 #include <bpf/bpf_helpers.h>
6 char _license[] SEC("license") = "GPL";
9 struct bpf_spin_lock lock;
14 __uint(type, BPF_MAP_TYPE_HASH);
15 __uint(max_entries, 64);
16 __type(key, unsigned int);
17 __type(value, struct htab_val);
18 __uint(map_flags, BPF_F_NO_PREALLOC);