]>
git.proxmox.com Git - mirror_iproute2.git/blob - include/bpf_elf.h
1 /* SPDX-License-Identifier: GPL-2.0 */
9 * Below ELF section names and bpf_elf_map structure definition
10 * are not (!) kernel ABI. It's rather a "contract" between the
11 * application and the BPF loader in tc. For compatibility, the
12 * section names should stay as-is. Introduction of aliases, if
13 * needed, are a possibility, though.
16 /* ELF section names, etc */
17 #define ELF_SECTION_LICENSE "license"
18 #define ELF_SECTION_MAPS "maps"
19 #define ELF_SECTION_PROG "prog"
20 #define ELF_SECTION_CLASSIFIER "classifier"
21 #define ELF_SECTION_ACTION "action"
23 #define ELF_MAX_MAPS 64
24 #define ELF_MAX_LICENSE_LEN 128
26 /* Object pinning settings */
28 #define PIN_OBJECT_NS 1
29 #define PIN_GLOBAL_NS 2
31 /* ELF map definition */
44 #endif /* __BPF_ELF__ */