Skip to content

Commit e057db9

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 ae1f6a8 commit e057db9

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)]
1717
allow: Vec<String>,
@@ -68,12 +68,21 @@ impl CmdArgs {
6868
out.push(a.to_owned());
6969
}
7070

71+
// To be removed
72+
if self.allow.len() == 0 {
73+
out.push("--allow".to_string());
74+
out.push("0000:01:00.0,dv_flow_en=1".to_string());
75+
}
76+
7177
/* --log-level */
7278
for level in self.log_level.iter() {
7379
out.push("--log-level".to_string());
7480
out.push(level.to_owned());
7581
}
7682

83+
// To replace by log
84+
println!("DPDK EAL init params: {:#?}", out);
85+
7786
out
7887
}
7988
}

0 commit comments

Comments
 (0)