Skip to content

Commit

Permalink
Merge pull request #637 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
service-proxy: reduced lock contention
  • Loading branch information
UltraInstinct14 authored Apr 14, 2024
2 parents 9f4719a + 275d40f commit 4ff52e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion loxilb-ebpf
7 changes: 4 additions & 3 deletions pkg/loxinet/neighbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (

// constants
const (
NeighAts = 10
NeighAts = 20
NeighRslvdAts = 40
MaxSysNeigh = 3 * 1024
MaxTunnelNeigh = 1024
Expand Down Expand Up @@ -130,7 +130,8 @@ func (n *NeighH) Activate(ne *Neigh) {
}

if ne.Resolved {
interval = NeighRslvdAts * time.Second
//interval = NeighRslvdAts * time.Second
return
}

if (time.Since(ne.Ats) < interval) || ne.OifPort.Name == "lo" {
Expand Down Expand Up @@ -158,7 +159,7 @@ func (n *NeighH) Activate(ne *Neigh) {
}

doIT:
tk.ArpPing(addr, Sip, name)
go tk.ArpPing(addr, Sip, name)

ne.Ats = time.Now()
}
Expand Down

0 comments on commit 4ff52e8

Please sign in to comment.