interface: more cleaning after set flags is failed in vnet_create_sw_interface 12/34812/6
authorvarasteh <[email protected]>
Sun, 2 Jan 2022 10:50:32 +0000 (14:20 +0330)
committerDamjan Marion <[email protected]>
Mon, 6 Mar 2023 17:39:33 +0000 (17:39 +0000)
commit8181727ee518d46ac2f45b769e273431211257a6
tree00d5cebc338ab08e41adb23da0fa6dd400fdf0dd
parent88d9414e82e2106066047d58c5f0865f3df22ea3
interface: more cleaning after set flags is failed in vnet_create_sw_interface

There's a chance that vnet_sw_interface_set_flags_helper()
has successfully called some sw interface add callback functions
before returning the error. So the sw interface del callbacks
should also be called

Type: fix

Signed-off-by: varasteh <[email protected]>
Change-Id: I2cd7dc6d5b3a5ebfd2c4d1a6be5390083dee6401
Signed-off-by: varasteh <[email protected]>
src/vnet/interface.c