From 10159cd9973c0e3575a69c90970e51de99a3bd0a Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Thu, 26 Sep 2024 16:13:00 +0900 Subject: [PATCH 1/2] sctp: enhancements for handling crc32 --- loxilb-ebpf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loxilb-ebpf b/loxilb-ebpf index dc6cb12e8..696b6d18b 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit dc6cb12e876c873241558f1bbb9cf3e353965bc5 +Subproject commit 696b6d18b29bca0a032f4353a814c8330ba89a8e From 0a40530241dc2c3f582776ab8a175dccd9faa8c2 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Thu, 26 Sep 2024 16:36:11 +0900 Subject: [PATCH 2/2] sctp: enhancements for handling crc32 --- options/options.go | 2 +- pkg/loxinet/loxinet.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options/options.go b/options/options.go index e334eb4a2..e139cec39 100644 --- a/options/options.go +++ b/options/options.go @@ -22,7 +22,7 @@ var Opts struct { LogLevel string `long:"loglevel" description:"One of debug,info,error,warning,notice,critical,emergency,alert" default:"debug"` CPUProfile string `long:"cpuprofile" description:"Enable cpu profiling and specify file to use" default:"none" env:"CPUPROF"` Prometheus bool `short:"p" long:"prometheus" description:"Run prometheus thread"` - CSumDisable bool `long:"disable-csum" description:"Disable checksum update(experimental)"` + CRC32SumDisable bool `long:"disable-crc32" description:"Disable crc32 checksum update(experimental)"` PassiveEPProbe bool `long:"passive-probe" description:"Enable passive liveness probes(experimental)"` RssEnable bool `long:"rss-enable" description:"Enable rss optimization(experimental)"` EgrHooks bool `long:"egr-hooks" description:"Enable eBPF egress hooks(experimental)"` diff --git a/pkg/loxinet/loxinet.go b/pkg/loxinet/loxinet.go index 65cb4586d..68386c64e 100644 --- a/pkg/loxinet/loxinet.go +++ b/pkg/loxinet/loxinet.go @@ -242,7 +242,7 @@ func loxiNetInit() { mh.self = opts.Opts.ClusterSelf mh.rssEn = opts.Opts.RssEnable mh.eHooks = opts.Opts.EgrHooks - mh.sumDis = opts.Opts.CSumDisable + mh.sumDis = opts.Opts.CRC32SumDisable mh.pProbe = opts.Opts.PassiveEPProbe mh.lSockPolicy = opts.Opts.LocalSockPolicy mh.sockMapEn = opts.Opts.SockMapSupport