From ad003b9694432af84f1cea52222674567e1ec0b3 Mon Sep 17 00:00:00 2001 From: Trekkie Coder <trekkie@netlox.io> Date: Tue, 22 Aug 2023 22:03:19 +0900 Subject: [PATCH] ct sync optimizations --- loxilb-ebpf | 2 +- loxinet/dpebpf_linux.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/loxilb-ebpf b/loxilb-ebpf index b7a668bd..0f4d8c6b 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit b7a668bdc6b9f431f2bb7944df7d434451908fb3 +Subproject commit 0f4d8c6b60ae97cc7752e871a3f6b301e309e1d2 diff --git a/loxinet/dpebpf_linux.go b/loxinet/dpebpf_linux.go index 1684c7df..ef521166 100644 --- a/loxinet/dpebpf_linux.go +++ b/loxinet/dpebpf_linux.go @@ -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 @@ -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])) } } }