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: allow change of carrier state on host
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
virtio.c
diff --git
a/src/vnet/devices/virtio/virtio.c
b/src/vnet/devices/virtio/virtio.c
index
8209a46
..
925ad09
100644
(file)
--- a/
src/vnet/devices/virtio/virtio.c
+++ b/
src/vnet/devices/virtio/virtio.c
@@
-345,6
+345,7
@@
virtio_show (vlib_main_t * vm, u32 * hw_if_indices, u8 show_descr, u32 type)
if (type == VIRTIO_IF_TYPE_TAP)
vlib_cli_output (vm, " host-mac-addr: %U",
format_ethernet_address, vif->host_mac_addr);
if (type == VIRTIO_IF_TYPE_TAP)
vlib_cli_output (vm, " host-mac-addr: %U",
format_ethernet_address, vif->host_mac_addr);
+ vlib_cli_output (vm, " host-carrier-up: %u", vif->host_carrier_up);
vec_foreach_index (i, vif->vhost_fds)
str = format (str, " %d", vif->vhost_fds[i]);
vec_foreach_index (i, vif->vhost_fds)
str = format (str, " %d", vif->vhost_fds[i]);