mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
bin: vhost_user_net: Rename "--backend" to "--net-backend"
This will prevent it from conflicting when it is aggregated into the cloud-hypervisor binary. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
3ede2dc53a
commit
e12179a3e6
@ -431,10 +431,10 @@ fn main() {
|
||||
.author(crate_authors!())
|
||||
.about("Launch a vhost-user-net backend.")
|
||||
.arg(
|
||||
Arg::with_name("backend")
|
||||
.long("backend")
|
||||
Arg::with_name("net-backend")
|
||||
.long("net-backend")
|
||||
.help(
|
||||
"Backend parameters \"ip=<ip_addr>,\
|
||||
"vhost-user-net backend parameters \"ip=<ip_addr>,\
|
||||
mask=<net_mask>,sock=<socket_path>,\
|
||||
num_queues=<number_of_queues>,\
|
||||
queue_size=<size_of_each_queue>\"",
|
||||
@ -444,7 +444,7 @@ fn main() {
|
||||
)
|
||||
.get_matches();
|
||||
|
||||
let vhost_user_net_backend = cmd_arguments.value_of("backend").unwrap();
|
||||
let vhost_user_net_backend = cmd_arguments.value_of("net-backend").unwrap();
|
||||
|
||||
let backend_config = match VhostUserNetBackendConfig::parse(vhost_user_net_backend) {
|
||||
Ok(config) => config,
|
||||
|
@ -2638,7 +2638,7 @@ mod tests {
|
||||
// Start the daemon
|
||||
let mut daemon_child = Command::new("target/release/vhost_user_net")
|
||||
.args(&[
|
||||
"--backend",
|
||||
"--net-backend",
|
||||
format!(
|
||||
"ip={},mask=255.255.255.0,sock=/tmp/vunet.sock,num_queues=4,queue_size=1024",
|
||||
guest.network.host_ip
|
||||
|
Loading…
x
Reference in New Issue
Block a user