File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
- use std:: collections:: HashMap ;
4
+ use std:: collections:: BTreeMap ;
5
5
use std:: fs:: File ;
6
6
use std:: io:: { Read , Seek } ;
7
7
use std:: os:: fd:: { AsRawFd , FromRawFd } ;
@@ -91,7 +91,7 @@ pub fn compile_bpf(
91
91
// SAFETY: Safe because the parameters are valid.
92
92
let mut memfd = unsafe { File :: from_raw_fd ( memfd_fd) } ;
93
93
94
- let mut bpf_map: HashMap < String , Vec < u64 > > = HashMap :: new ( ) ;
94
+ let mut bpf_map: BTreeMap < String , Vec < u64 > > = BTreeMap :: new ( ) ;
95
95
for ( name, filter) in bpf_map_json. 0 . iter ( ) {
96
96
let default_action = filter. default_action . to_scmp_type ( ) ;
97
97
let filter_action = filter. filter_action . to_scmp_type ( ) ;
You can’t perform that action at this time.
0 commit comments