Skip to content

Commit 00990a1

Browse files
committed
Hardcode --in-memory in DPDK:EAL initialization
Signed-off-by: Fredi Raspall <[email protected]>
1 parent ae2683b commit 00990a1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dataplane/src/args.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ pub(crate) struct CmdArgs {
1111
main_lcore: u8,
1212
#[arg(long, value_name = "map lcore set to cpu set")]
1313
lcores: Option<String>,
14-
#[arg(long, value_name = "in-memory flag", default_value_t = true)]
15-
in_memory: bool,
1614
#[arg(long, value_name = "PCI devices to probe")]
1715
allow: Vec<String>,
1816
#[arg(long, value_name = "huge pages", default_value_t = 8192)]
@@ -28,6 +26,8 @@ pub(crate) struct CmdArgs {
2826
impl CmdArgs {
2927
pub fn eal_params(&self) -> Vec<String> {
3028
let mut out = Vec::new();
29+
/* hardcoded (always) */
30+
out.push("--in-memory".to_string());
3131

3232
out.push("--main-lcore".to_owned());
3333
out.push(self.main_lcore.to_string());
@@ -39,10 +39,6 @@ impl CmdArgs {
3939
.map_or_else(|| "2-4".to_owned(), |lcores| lcores.to_owned()),
4040
);
4141

42-
if self.in_memory {
43-
out.push("--in-memory".to_string());
44-
}
45-
4642
/* IOVA mode */
4743
out.push(format!(
4844
"--iova-mode={}",

0 commit comments

Comments
 (0)