summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/tap.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-07-01 10:26:43 +0200
committerDamjan Marion <dmarion@me.com>2019-07-24 12:03:30 +0000
commitc5d5327ac59a212ecbdbbcf57e648becd02a702d (patch)
treec2c5b17fa020ac85e684326367e5ee9cd708c06a /src/vnet/devices/tap/tap.c
parent1acdbc2fac0078d85dc55c5ed882f4f6ca0c024c (diff)
tap: print the interface name on cli when created
Type: feature Change-Id: If11f00574322c35c1780c31d5f7b47d30e083e35 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/tap.c')
-rw-r--r--src/vnet/devices/tap/tap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c
index 974a4175fa6..6c6d2cac7cb 100644
--- a/src/vnet/devices/tap/tap.c
+++ b/src/vnet/devices/tap/tap.c
@@ -441,6 +441,7 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
sw = vnet_get_hw_sw_interface (vnm, vif->hw_if_index);
vif->sw_if_index = sw->sw_if_index;
args->sw_if_index = vif->sw_if_index;
+ args->rv = 0;
hw = vnet_get_hw_interface (vnm, vif->hw_if_index);
hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE;
if (args->tap_flags & TAP_FLAG_GSO)