}
if !option.Config.EnableHostLegacyRouting && drd != nil && len(devices) == 1 {
- if e.IsHost() || !option.Config.EnforceLXCFibLookup() {
- fmt.Fprintf(fw, "#define ENABLE_SKIP_FIB 1\n")
- }
+ fmt.Fprintf(fw, "#define ENABLE_SKIP_FIB 1\n")
}
if e.IsHost() {
return nil
}
-func (d *DaemonConfig) EnforceLXCFibLookup() bool {
- // See https://github.com/cilium/cilium/issues/27343 for the symptoms.
- //
- // We want to enforce FIB lookup if EndpointRoutes are enabled, because
- // this was a config dependency change which caused different behaviour
- // since v1.14.0-snapshot.2. We will remove this hack later, once we
- // have auto-device detection on by default.
- return d.EnableEndpointRoutes
-}
-
func (d *DaemonConfig) GetZone(id uint8) string {
return d.ReverseFixedZoneMapping[id]
}