From e4ac48e792f4eebfce296cfde844ee73b1abd62f Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Wed, 17 Apr 2019 12:06:57 +0200 Subject: tap: clean-up when linux will delete the tap interface When container is deleted which has tap interface attached, Linux also delete the tap interface leaving the VPP side of tap. This patch does a clean up job to remove that VPP side of tap interface. To produce the behavior: In VPP: create tap On linux: sudo ip netns add ns1 sudo ip link set dev tap0 netns ns1 sudo ip netns del ns1 Change-Id: Iaed1700073a9dc64e626c1d0c449f466c143f3ae Signed-off-by: Mohsin Kazmi --- src/vnet/devices/virtio/virtio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/devices/virtio') diff --git a/src/vnet/devices/virtio/virtio.h b/src/vnet/devices/virtio/virtio.h index 1de704386a8..5177dbabce4 100644 --- a/src/vnet/devices/virtio/virtio.h +++ b/src/vnet/devices/virtio/virtio.h @@ -180,6 +180,7 @@ typedef struct u8 host_ip4_prefix_len; ip6_address_t host_ip6_addr; u8 host_ip6_prefix_len; + u32 tap_file_index; int gso_enabled; int ifindex; virtio_vring_t *cxq_vring; -- cgit 1.2.3-korg