diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-14 20:12:34 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-03-14 20:12:34 +0100 |
commit | 85ff856a32ccb5bc20604bacfb4fa5cb66375487 (patch) | |
tree | 9fa6fa4ef84c39dae14accc018187fce57fd91e2 /src/xdp/include/bpf_legacy.h | |
parent | 59ad580cdea2e66e24470ee3d84f29a8619b7bf9 (diff) | |
download | vyos-1x-85ff856a32ccb5bc20604bacfb4fa5cb66375487.tar.gz vyos-1x-85ff856a32ccb5bc20604bacfb4fa5cb66375487.zip |
xdp: T2666: remove entire XDP code for 1.3 LTS image
This is an extension to commit 801c5235 ("xdp: T2666: disable this highly
experimental feature in 1.3 LTS") by dropping all XDP references in the
equuleus codebase.
Diffstat (limited to 'src/xdp/include/bpf_legacy.h')
-rw-r--r-- | src/xdp/include/bpf_legacy.h | 38 |
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 |