vhost_user_net: Provide tap option for vhost_user_net backend

Provide vhost_user_net backend with the tap option, it allows to
use the existing tap interface.

Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
This commit is contained in:
Cathy Zhang
2020-03-03 14:40:55 +08:00
committed by Rob Bradford
parent e0419e988b
commit 6341736286
3 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ fn main() {
"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>\"",
queue_size=<size_of_each_queue>,\
tap=<if_name>\"",
)
.takes_value(true)
.min_values(1),
+2 -1
View File
@@ -264,7 +264,8 @@ fn create_app<'a, 'b>(
"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>\"",
queue_size=<size_of_each_queue>,\
tap=<if_name>\"",
)
.takes_value(true)
.conflicts_with_all(&["block-backend", "kernel"])