Skip to content

Commit 0d17784

Browse files
bpf: use bpf_core_enum_value_exists() for HAVE_XDP_*
Avoid probing in the agent, and do the feature detection straight from BPF. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
1 parent c954094 commit 0d17784

17 files changed

Lines changed: 34 additions & 87 deletions

File tree

bpf/complexity-tests/61/bpf_xdp/1.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/2.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/3.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/4.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/5.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/6.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/61/bpf_xdp/7.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/netnext/bpf_xdp/1.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/netnext/bpf_xdp/2.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

bpf/complexity-tests/netnext/bpf_xdp/3.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-DHAVE_XDP_GET_BUFF_LEN=1
2-
-DHAVE_XDP_LOAD_BYTES=1
3-
-DHAVE_XDP_STORE_BYTES=1
41
-DSKIP_DEBUG=1
52
-DENABLE_IPV4=1
63
-DENABLE_IPV6=1

0 commit comments

Comments
 (0)