tap: allow deletion of tun interface 80/26780/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 29 Apr 2020 16:17:08 +0000 (11:17 -0500)
committerNeale Ranns <nranns@cisco.com>
Thu, 30 Apr 2020 07:59:52 +0000 (07:59 +0000)
commit3d18fbf8e62f4647c85848cb7bab1940d8bad400
treeee51d6bb5c7681e8625132607a2fa198cb9b2d28
parent6e39ff03a6fa28a2655d767454394413252a269d
tap: allow deletion of tun interface

Type: improvement

tap_delete_if() returns early if the interface type is not
VIRTIO_IF_TYPE_TAP. Allow VIRTIO_IF_TYPE_TUN also and take
appropriate action for those interfaces.

Change-Id: I196b6d6f3f5e1543a14d6be76fd879d44c9794fd
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/devices/tap/tap.c