Skip to content

Commit

Permalink
Merge pull request #28 from justxuewei/vhost-user-net
Browse files Browse the repository at this point in the history
Support vhost-user-net device
  • Loading branch information
studychao authored Dec 25, 2023
2 parents ab29676 + 9843fcd commit 03b782b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
44 changes: 23 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dragonball = { git = "https://github.com/kata-containers/kata-containers", branc
"vhost-net",
"hotplug",
"dbs-upcall",
"vhost-user-net",
] }
clap = { version = "4.0.27", features = ["derive"] }
serde = "1.0.27"
Expand Down
3 changes: 3 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ pub(crate) fn net_device_name(config: &NetworkInterfaceConfig) -> String {
dragonball::api::v1::Backend::Vhost(config) => {
format!("vhost-net({})", config.host_dev_name)
}
dragonball::api::v1::Backend::VhostUser(config) => {
format!("vhost-user-net({})", config.sock_path)
}
}
}

0 comments on commit 03b782b

Please sign in to comment.