aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-05-07 18:16:58 +0200
committerDamjan Marion <dmarion@me.com>2021-05-08 08:56:51 +0000
commit95b67a4348f7140c2d1b4b1ccc6ae357913cdf4c (patch)
treeebfbdded40644a29d47f116cee17c056564c4900 /src/plugins
parent90ce4fd180272d3a6fec071b6d2a08650ffd9113 (diff)
memif: Fix delete on error
Type: fix Change-Id: I3cc09630cae999cc194a0eedb4d2cfee7a826b76 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/memif.c8
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)
{