Skip to content

Commit

Permalink
Merge pull request #380 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - ct sync optimizations
  • Loading branch information
UltraInstinct14 authored Aug 23, 2023
2 parents 26d5cfa + ad003b9 commit 050f9fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion loxilb-ebpf
8 changes: 4 additions & 4 deletions loxinet/dpebpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ const (
// constants
const (
DpEbpfLinuxTiVal = 10
ctiDeleteSyncRetries = 4
ctiDeleteSyncRetries = 3
blkCtiMaxLen = 4096
mapNotifierChLen = 8096
mapNotifierWorkers = 2
mapNotifierWorkers = 1
)

// ebpf table related defines in go
Expand Down Expand Up @@ -1823,8 +1823,8 @@ func dpCTMapChkUpdates() {

if cti.Deleted > 0 {
delete(mh.dpEbpf.ctMap, cti.Key())
// This is a strange fix - See comment above
//C.llb_del_map_elem(C.LL_DP_CT_MAP, unsafe.Pointer(&cti.PKey[0]))
// This is a strange fix - See comment above. Do we still need it ?
// C.llb_del_map_elem(C.LL_DP_CT_MAP, unsafe.Pointer(&cti.PKey[0]))
}
}
}
Expand Down

0 comments on commit 050f9fa

Please sign in to comment.