From 2e0bc82078f16ebe453a8efc344c2b27f6710d3e Mon Sep 17 00:00:00 2001 From: martinsoees Date: Fri, 12 Jul 2024 03:00:12 -0400 Subject: [PATCH] Review comments - Removed 'ignore_map_by_type' since 'ignore_map_by_name' makes more sense --- aya/src/bpf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index 3e93aaf8..27e9eeba 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -496,7 +496,6 @@ impl<'a> EbpfLoader<'a> { { continue; } - let map_type: bpf_map_type = obj.map_type().try_into().map_err(MapError::from)?; if ignore_maps_by_name.contains(&name.as_str()) { ignored_maps.insert(name, obj); @@ -513,6 +512,7 @@ impl<'a> EbpfLoader<'a> { })? .len() as u32) }; + let map_type: bpf_map_type = obj.map_type().try_into().map_err(MapError::from)?; if let Some(max_entries) = max_entries_override( map_type, max_entries.get(name.as_str()).copied(),