Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-2004

Failure of SW interface creation is not correctly cleaned up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • VNET
    • None

      In vnet_create_sw_interface function if there's an error in calling vnet_sw_interface_set_flags_helper, we should also call call_sw_interface_add_del_callbacks. because although we haven't called callbacks in creating SW interface, but they are called in set flag helper function.

      To reproduce this issue, just make a subinterface on an interface with tag X. Then try to make another subinterface for the same interface with the same tag X but a different instance. It all goes well up until it calls the interface add/del callback ethernet_sw_interface_add_del. At this point the function fails and SW interface is removed from pool but if we have other callback functions that are called successfully before ethernet_sw_interface_add_del __ they are not informed.

            mehrss mahdi varasteh
            mehrss mahdi varasteh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: