From 0dca84981c60da4ff27b7ba7f9f7080ef2a260ac Mon Sep 17 00:00:00 2001 From: Lucas Steuernagel Date: Mon, 21 Oct 2024 18:40:43 -0300 Subject: [PATCH] Check for static syscall instead of SBPFv1 --- src/program.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/program.rs b/src/program.rs index 781849cc..0636f64f 100644 --- a/src/program.rs +++ b/src/program.rs @@ -294,10 +294,10 @@ impl BuiltinProgram { &self, sbpf_version: SBPFVersion, ) -> &FunctionRegistry> { - if sbpf_version == SBPFVersion::V1 { - &self.sparse_registry - } else { + if sbpf_version.static_syscalls() { &self.dense_registry + } else { + &self.sparse_registry } }