]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - include/bpf_api.h
v5.1.0
[mirror_iproute2.git] / include / bpf_api.h
index 7642623598064b1e6cdb23ef019109d4d05770d4..89d3488d0741ba2c4ff234eecfdaf20333089d8e 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef __BPF_API__
 #define __BPF_API__
 
        __section(__stringify(ID) "/" __stringify(KEY))
 #endif
 
+#ifndef __section_xdp_entry
+# define __section_xdp_entry                                           \
+       __section(ELF_SECTION_PROG)
+#endif
+
 #ifndef __section_cls_entry
 # define __section_cls_entry                                           \
        __section(ELF_SECTION_CLASSIFIER)
        __section(ELF_SECTION_ACTION)
 #endif
 
+#ifndef __section_lwt_entry
+# define __section_lwt_entry                                           \
+       __section(ELF_SECTION_PROG)
+#endif
+
 #ifndef __section_license
 # define __section_license                                             \
        __section(ELF_SECTION_LICENSE)