Skip to content

Commit

Permalink
test: Skip FIB lookup for testing purpose
Browse files Browse the repository at this point in the history
Signed-off-by: Tam Mach <[email protected]>
  • Loading branch information
sayboras committed May 16, 2024
1 parent 220af2f commit d5ba050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datapath/linux/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ func (h *HeaderfileWriter) writeTemplateConfig(fw *bufio.Writer, devices []*tabl
}
fmt.Fprintf(fw, "#define DIRECT_ROUTING_DEV_IFINDEX %d\n", directRoutingIfIndex)
if len(devices) == 1 {
if e.IsHost() || !option.Config.EnforceLXCFibLookup() {
if e.IsHost() {
fmt.Fprintf(fw, "#define ENABLE_SKIP_FIB 1\n")
}
}
Expand Down

0 comments on commit d5ba050

Please sign in to comment.