From 488e74adf48406441434ba5ea7e03339e9c09751 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 28 Feb 2020 14:21:25 +0100 Subject: tap: misc fixes Ticket: VPPSUPP-58 1) Previously, host mtu can't be set if tap interface is in namespace. 2) generate the host mac address, if it is not provided. 3) fix the parameters for tap_create_v2 in vat. 4) fix the pretty print of parameters for tap_create_v2 in custom dump. Type: fix Change-Id: I18898af90dbd37d773a40b6535dd9c03c9984679 Signed-off-by: Mohsin Kazmi --- src/vnet/devices/virtio/virtio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/devices/virtio') diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c index 90adf97dc3c..88511d74411 100644 --- a/src/vnet/devices/virtio/virtio.c +++ b/src/vnet/devices/virtio/virtio.c @@ -317,6 +317,8 @@ virtio_show (vlib_main_t * vm, u32 * hw_if_indices, u8 show_descr, u32 type) vlib_cli_output (vm, " name \"%s\"", vif->host_if_name); if (vif->net_ns) vlib_cli_output (vm, " host-ns \"%s\"", vif->net_ns); + vlib_cli_output (vm, " host-mac-addr %U", format_ethernet_address, + vif->host_mac_addr); if (vif->host_mtu_size) vlib_cli_output (vm, " host-mtu-size \"%d\"", vif->host_mtu_size); -- cgit 1.2.3-korg