From 186274cf6569af3362093268bd5c4397507d1a73 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sun, 12 Jan 2025 01:55:00 +0900 Subject: [PATCH 1/2] Better signal handling for termination --- pkg/loxinet/loxinet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/loxinet/loxinet.go b/pkg/loxinet/loxinet.go index 5421c30c..027e6970 100644 --- a/pkg/loxinet/loxinet.go +++ b/pkg/loxinet/loxinet.go @@ -167,6 +167,9 @@ func loxiNetTicker(bgpPeerMode bool) { pprof.StopCPUProfile() } else if sig == syscall.SIGINT || sig == syscall.SIGTERM { tk.LogIt(tk.LogCritical, "Shutdown on sig %v\n", sig) + if !bgpPeerMode { + mh.dpEbpf.DpEbpfUnInit() + } // TODO - More subsystem cleanup TBD mh.zr.Rules.RuleDestructAll() if mh.cloudHook != nil { @@ -188,9 +191,6 @@ func loxiNetTicker(bgpPeerMode bool) { } } } - if !bgpPeerMode { - mh.dpEbpf.DpEbpfUnInit() - } mh.has.CIDestroy() apiserver.ApiServerShutOk() } From 41a04bed56ab13975552b5c6ed98fc16ba1d651d Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sun, 12 Jan 2025 01:55:35 +0900 Subject: [PATCH 2/2] chore:updated to latest submodule --- loxilb-ebpf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loxilb-ebpf b/loxilb-ebpf index 4fff6e4a..73f23493 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit 4fff6e4a696f8ffa16ceb45ccff9b292f2fe1585 +Subproject commit 73f23493ab81f3ffe1c71b9650c186d5115a5e48