File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ pub(crate) struct CmdArgs {
11
11
main_lcore : u8 ,
12
12
#[ arg( long, value_name = "map lcore set to cpu set" ) ]
13
13
lcores : Option < String > ,
14
- #[ arg( long, value_name = "in-memory flag" , default_value_t = true ) ]
15
- in_memory : bool ,
16
14
#[ arg( long, value_name = "PCI devices to probe" ) ]
17
15
allow : Vec < String > ,
18
16
#[ arg( long, value_name = "huge pages" , default_value_t = 8192 ) ]
@@ -28,6 +26,8 @@ pub(crate) struct CmdArgs {
28
26
impl CmdArgs {
29
27
pub fn eal_params ( & self ) -> Vec < String > {
30
28
let mut out = Vec :: new ( ) ;
29
+ /* hardcoded (always) */
30
+ out. push ( "--in-memory" . to_string ( ) ) ;
31
31
32
32
out. push ( "--main-lcore" . to_owned ( ) ) ;
33
33
out. push ( self . main_lcore . to_string ( ) ) ;
@@ -39,10 +39,6 @@ impl CmdArgs {
39
39
. map_or_else ( || "2-4" . to_owned ( ) , |lcores| lcores. to_owned ( ) ) ,
40
40
) ;
41
41
42
- if self . in_memory {
43
- out. push ( "--in-memory" . to_string ( ) ) ;
44
- }
45
-
46
42
/* IOVA mode */
47
43
out. push ( format ! (
48
44
"--iova-mode={}" ,
You can’t perform that action at this time.
0 commit comments