Skip to content

Commit

Permalink
ct sync optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Aug 22, 2023
1 parent 26d5cfa commit ad003b9
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 ad003b9

Please sign in to comment.