Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tap: add support for persistance
[vpp.git]
/
src
/
vnet
/
devices
/
tap
/
cli.c
diff --git
a/src/vnet/devices/tap/cli.c
b/src/vnet/devices/tap/cli.c
index
8d59210
..
68b8cef
100644
(file)
--- a/
src/vnet/devices/tap/cli.c
+++ b/
src/vnet/devices/tap/cli.c
@@
-92,6
+92,10
@@
tap_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
args.tap_flags |= TAP_FLAG_GSO;
else if (unformat (line_input, "csum-offload"))
args.tap_flags |= TAP_FLAG_CSUM_OFFLOAD;
args.tap_flags |= TAP_FLAG_GSO;
else if (unformat (line_input, "csum-offload"))
args.tap_flags |= TAP_FLAG_CSUM_OFFLOAD;
+ else if (unformat (line_input, "persist"))
+ args.tap_flags |= TAP_FLAG_PERSIST;
+ else if (unformat (line_input, "attach"))
+ args.tap_flags |= TAP_FLAG_ATTACH;
else if (unformat (line_input, "hw-addr %U",
unformat_ethernet_address, args.mac_addr.bytes))
args.mac_addr_set = 1;
else if (unformat (line_input, "hw-addr %U",
unformat_ethernet_address, args.mac_addr.bytes))
args.mac_addr_set = 1;
@@
-131,7
+135,8
@@
VLIB_CLI_COMMAND (tap_create_command, static) = {
"[host-bridge <bridge-name>] [host-ip4-addr <ip4addr/mask>] "
"[host-ip6-addr <ip6-addr>] [host-ip4-gw <ip4-addr>] "
"[host-ip6-gw <ip6-addr>] [host-mac-addr <host-mac-address>] "
"[host-bridge <bridge-name>] [host-ip4-addr <ip4addr/mask>] "
"[host-ip6-addr <ip6-addr>] [host-ip4-gw <ip4-addr>] "
"[host-ip6-gw <ip6-addr>] [host-mac-addr <host-mac-address>] "
- "[host-if-name <name>] [host-mtu-size <size>] [no-gso|gso|csum-offload]",
+ "[host-if-name <name>] [host-mtu-size <size>] [no-gso|gso|csum-offload] "
+ "[persist] [attach]",
.function = tap_create_command_fn,
};
/* *INDENT-ON* */
.function = tap_create_command_fn,
};
/* *INDENT-ON* */