Skip to content

Commit

Permalink
Run map updates async
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydavenport committed Oct 14, 2024
1 parent 3ec891f commit 5dd25a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions felix/dataplane/linux/int_dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -2300,8 +2300,12 @@ func (d *InternalDataplane) apply() {
}

if d.maps != nil {
// TODO: Async, with wait group like sets.
d.maps.ApplyMapUpdates()
// If an nftables MapsDataplane implementation is configured, apply map updates.
ipSetsWG.Add(1)
go func(maps nftables.MapsDataplane) {
maps.ApplyMapUpdates()
ipSetsWG.Done()
}(d.maps)
}

// Update any VXLAN FDB entries.
Expand Down

0 comments on commit 5dd25a8

Please sign in to comment.