diff options
Diffstat (limited to 'src/plugins/memif')
-rw-r--r-- | src/plugins/memif/memif.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c index bce17ef9a31..e83864b1a11 100644 --- a/src/plugins/memif/memif.c +++ b/src/plugins/memif/memif.c @@ -1059,14 +1059,6 @@ memif_create_if (vlib_main_t * vm, memif_create_if_args_t * args) goto done; error: - if (mif->hw_if_index != ~0) - { - if (mif->mode == MEMIF_INTERFACE_MODE_IP) - vnet_delete_hw_interface (vnm, mif->hw_if_index); - else - ethernet_delete_interface (vnm, mif->hw_if_index); - mif->hw_if_index = ~0; - } memif_delete_if (vm, mif); if (error) { |