Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - ct sync optimizations #380

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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