Skip to content
Snippets Groups Projects
Unverified Commit f86bd0e9 authored by Mohamed S. Mahmoud's avatar Mohamed S. Mahmoud Committed by GitHub
Browse files

make sure to copy all maps for older kernels (#334)

parent baa1dc46
No related branches found
No related tags found
No related merge requests found
...@@ -638,6 +638,9 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf ...@@ -638,6 +638,9 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf
// Note for any future maps or programs make sure to copy them manually here // Note for any future maps or programs make sure to copy them manually here
objects.DirectFlows = newObjects.DirectFlows objects.DirectFlows = newObjects.DirectFlows
objects.AggregatedFlows = newObjects.AggregatedFlows objects.AggregatedFlows = newObjects.AggregatedFlows
objects.DnsFlows = newObjects.DnsFlows
objects.FilterMap = newObjects.FilterMap
objects.GlobalCounters = newObjects.GlobalCounters
objects.TcEgressFlowParse = newObjects.TcEgressFlowParse objects.TcEgressFlowParse = newObjects.TcEgressFlowParse
objects.TcIngressFlowParse = newObjects.TcIngressFlowParse objects.TcIngressFlowParse = newObjects.TcIngressFlowParse
objects.TcxEgressFlowParse = newObjects.TcxEgressFlowParse objects.TcxEgressFlowParse = newObjects.TcxEgressFlowParse
...@@ -648,7 +651,6 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf ...@@ -648,7 +651,6 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf
objects.TcxIngressPcaParse = newObjects.TcxIngressPcaParse objects.TcxIngressPcaParse = newObjects.TcxIngressPcaParse
objects.TcpRcvFentry = newObjects.TCPRcvFentry objects.TcpRcvFentry = newObjects.TCPRcvFentry
objects.TcpRcvKprobe = newObjects.TCPRcvKprobe objects.TcpRcvKprobe = newObjects.TCPRcvKprobe
objects.GlobalCounters = newObjects.GlobalCounters
objects.KfreeSkb = nil objects.KfreeSkb = nil
} else { } else {
if err := spec.LoadAndAssign(&objects, nil); err != nil { if err := spec.LoadAndAssign(&objects, nil); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment