Skip to content

Commit ae2683b

Browse files
committed
dataplane: hardcode allowed pci addr in args
This commit is to be reverted, but allows starting the dataplane without any arg, as it was before. Also, printed the config, which should be replaced by logs. Signed-off-by: Fredi Raspall <[email protected]>
1 parent d7d4b1a commit ae2683b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dataplane/src/args.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ 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 = false)]
14+
#[arg(long, value_name = "in-memory flag", default_value_t = true)]
1515
in_memory: bool,
1616
#[arg(long, value_name = "PCI devices to probe")]
1717
allow: Vec<String>,
@@ -61,12 +61,21 @@ impl CmdArgs {
6161
out.push(a.to_owned());
6262
}
6363

64+
// To be removed
65+
if self.allow.len() == 0 {
66+
out.push("--allow".to_string());
67+
out.push("0000:01:00.0,dv_flow_en=1".to_string());
68+
}
69+
6470
/* --log-level */
6571
for level in self.log_level.iter() {
6672
out.push("--log-level".to_string());
6773
out.push(level.to_owned());
6874
}
6975

76+
// To replace by log
77+
println!("DPDK EAL init params: {:#?}", out);
78+
7079
out
7180
}
7281
}

0 commit comments

Comments
 (0)