Skip to content

Commit

Permalink
Merge pull request #2827 from neiljerram/bpf-disable-repin
Browse files Browse the repository at this point in the history
DebugBPFMapRepinEnabled -> false
  • Loading branch information
Neil Jerram committed May 24, 2021
2 parents 4e237c9 + c3ba095 commit a5d6453
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion config/config_params.go
Expand Up @@ -132,7 +132,7 @@ type Config struct {
DebugBPFCgroupV2 string `config:"string;;local"`
// DebugBPFMapRepinEnabled can be used to prevent Felix from repinning its BPF maps at startup. This is useful for
// testing with multiple Felix instances running on one host.
DebugBPFMapRepinEnabled bool `config:"bool;true;local"`
DebugBPFMapRepinEnabled bool `config:"bool;false;local"`

DatastoreType string `config:"oneof(kubernetes,etcdv3);etcdv3;non-zero,die-on-fail,local"`

Expand Down
4 changes: 0 additions & 4 deletions fv/infrastructure/felix.go
Expand Up @@ -117,10 +117,6 @@ func RunFelix(infra DatastoreInfra, id int, options TopologyOptions) *Felix {
log.Info("FELIX_FV_ENABLE_BPF=true but test manages BPF state itself, not using env var")
}

// Disable map repinning by default since BPF map names are global and we don't want our simulated instances to
// share maps.
envVars["FELIX_DebugBPFMapRepinEnabled"] = "false"

if CreateCgroupV2 {
envVars["FELIX_DEBUGBPFCGROUPV2"] = containerName
}
Expand Down

0 comments on commit a5d6453

Please sign in to comment.