Skip to content

Commit

Permalink
daemon: Disable BPF host routing when L2-less detected
Browse files Browse the repository at this point in the history
Until #15075 has been resolved.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
  • Loading branch information
brb committed Mar 5, 2021
1 parent 65a1aff commit 440480b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/cmd/kube_proxy_replacement.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/cilium/cilium/pkg/datapath/loader"
datapathOption "github.com/cilium/cilium/pkg/datapath/option"
"github.com/cilium/cilium/pkg/logging/logfields"
"github.com/cilium/cilium/pkg/mac"
"github.com/cilium/cilium/pkg/maglev"
"github.com/cilium/cilium/pkg/node"
"github.com/cilium/cilium/pkg/option"
Expand Down Expand Up @@ -434,6 +435,8 @@ func finishKubeProxyReplacementInit(isKubeProxyReplacementStrict bool) {
case (option.Config.EnableIPv4Masquerade || option.Config.EnableIPv6Masquerade) &&
!option.Config.EnableBPFMasquerade:
msg = fmt.Sprintf("BPF host routing requires %s.", option.EnableBPFMasquerade)
case !mac.HaveMACAddr(option.Config.Devices):
msg = fmt.Sprintf("BPF host routing is currently not supported with devices without L2 addr.")
default:
probesManager := probes.NewProbeManager()
foundNeigh := false
Expand Down

0 comments on commit 440480b

Please sign in to comment.