Skip to content

Commit eadee41

Browse files
bpf: wireguard: set SKIP_SRV6_HANDLING
The wireguard program includes srv6.h via nodeport.h, but doesn't actually need any of the SRv6 code (since it's all guarded by IS_BPF_LXC inside nodeport.h). Match what we do for bpf_overlay and bpf_xdp to avoid even compiling these tailcalls, even though nowadays they should simply be eliminated at load time. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
1 parent 97e39c6 commit eadee41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpf/bpf_wireguard.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#define SECLABEL_IPV4 WORLD_IPV4_ID
1818
#define SECLABEL_IPV6 WORLD_IPV6_ID
1919

20+
/* Controls the inclusion of the CILIUM_CALL_SRV6 section in the object file.
21+
*/
22+
#define SKIP_SRV6_HANDLING
23+
2024
#include "lib/tailcall.h"
2125
#include "lib/common.h"
2226
#include "lib/ipv6.h"

0 commit comments

Comments
 (0)