-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Convert ENABLE_IPSEC (pkg/datapath/linux/ipsec/cell.go - option.Config.EnableIPsec) to load-time config #42653
Copy link
Copy link
Open
Labels
area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.Impacts bpf/ or low-level forwarding details, including map management and monitor messages.area/loaderImpacts the loading of BPF programs into the kernel.Impacts the loading of BPF programs into the kernel.feature/ipsecRelates to Cilium's IPsec featureRelates to Cilium's IPsec featurekind/enhancementThis would improve or streamline existing functionality.This would improve or streamline existing functionality.
Description
Convert this macro to use DECLARE_CONFIG or NODE_CONFIG for runtime configuration.
Current definition location: pkg/datapath/linux/ipsec/cell.go:52-54
if out.IPsecAgent.Enabled() {
out.NodeDefines = map[string]string{
"ENABLE_IPSEC": "1",
}
}BPF usage: Used in conditionals throughout the datapath, particularly in:
- bpf/bpf_host.c - IPsec tunnel handling
- bpf/lib/encap.h - Encryption encapsulation
Configuration source: option.Config.EnableIPsec
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.Impacts bpf/ or low-level forwarding details, including map management and monitor messages.area/loaderImpacts the loading of BPF programs into the kernel.Impacts the loading of BPF programs into the kernel.feature/ipsecRelates to Cilium's IPsec featureRelates to Cilium's IPsec featurekind/enhancementThis would improve or streamline existing functionality.This would improve or streamline existing functionality.