From: Nathan Skrzypczak Date: Fri, 7 May 2021 16:16:58 +0000 (+0200) Subject: memif: Fix delete on error X-Git-Tag: v21.10-rc0~100 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=95b67a4348f7140c2d1b4b1ccc6ae357913cdf4c;p=vpp.git memif: Fix delete on error Type: fix Change-Id: I3cc09630cae999cc194a0eedb4d2cfee7a826b76 Signed-off-by: Nathan Skrzypczak --- 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) {