summaryrefslogtreecommitdiff
path: root/src/xdp/include/bpf_legacy.h
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-12 19:57:28 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-12 19:57:28 +0200
commitfcb5d0fdafeebe49f42799b1d0d056c4b67bcc16 (patch)
tree28a5a272cc66cd5c6b4bc1132b4db5a455ca3214 /src/xdp/include/bpf_legacy.h
parentf9fa1e99e042846a8089ae2b4bc41dd8f3e3eb7c (diff)
downloadvyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.tar.gz
vyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.zip
T5286: drop XDP support for ethernet and bonding interfaces
... this is a step towards a new and better implementation that will utilize VPP.
Diffstat (limited to 'src/xdp/include/bpf_legacy.h')
-rw-r--r--src/xdp/include/bpf_legacy.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/xdp/include/bpf_legacy.h b/src/xdp/include/bpf_legacy.h
deleted file mode 100644
index 8dfa168cd..000000000
--- a/src/xdp/include/bpf_legacy.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
-#ifndef __BPF_LEGACY__
-#define __BPF_LEGACY__
-
-/*
- * legacy bpf_map_def with extra fields supported only by bpf_load(), do not
- * use outside of samples/bpf
- */
-struct bpf_map_def_legacy {
- unsigned int type;
- unsigned int key_size;
- unsigned int value_size;
- unsigned int max_entries;
- unsigned int map_flags;
- unsigned int inner_map_idx;
- unsigned int numa_node;
-};
-
-#define BPF_ANNOTATE_KV_PAIR(name, type_key, type_val) \
- struct ____btf_map_##name { \
- type_key key; \
- type_val value; \
- }; \
- struct ____btf_map_##name \
- __attribute__ ((section(".maps." #name), used)) \
- ____btf_map_##name = { }
-
-/* llvm builtin functions that eBPF C program may use to
- * emit BPF_LD_ABS and BPF_LD_IND instructions
- */
-unsigned long long load_byte(void *skb,
- unsigned long long off) asm("llvm.bpf.load.byte");
-unsigned long long load_half(void *skb,
- unsigned long long off) asm("llvm.bpf.load.half");
-unsigned long long load_word(void *skb,
- unsigned long long off) asm("llvm.bpf.load.word");
-
-#endif