aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-04-17 12:06:57 +0200
committerDave Barach <openvpp@barachs.net>2019-04-17 14:33:50 +0000
commite4ac48e792f4eebfce296cfde844ee73b1abd62f (patch)
tree491e4422433a1c2d57dcd23d1b392f9aca4537e5 /src/vnet/devices/virtio/virtio.h
parenta7dd0c8a278c1735eb6b0f75749a0d76dac350b3 (diff)
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 <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.h')
-rw-r--r--src/vnet/devices/virtio/virtio.h1
1 files changed, 1 insertions, 0 deletions
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;