diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2020-04-06 14:19:54 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-04-17 11:28:14 +0000 |
commit | 206acf84d6a04590e385f427edba1094c3bdf195 (patch) | |
tree | c724f0d2fedd494e163394a6a339c18dc72c0a37 /src/vnet/devices/virtio/device.c | |
parent | 95eb01fdc65b692065ace6d76870d8cc9f3e2c84 (diff) |
tap: add initial support for tun
Type: feature
Change-Id: I699a01ac925fe5c475a36032edb7018618bb4dd4
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/device.c')
-rw-r--r-- | src/vnet/devices/virtio/device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/device.c b/src/vnet/devices/virtio/device.c index 1ee94806842..9d04474ada0 100644 --- a/src/vnet/devices/virtio/device.c +++ b/src/vnet/devices/virtio/device.c @@ -21,6 +21,7 @@ #include <vlib/vlib.h> #include <vlib/unix/unix.h> +#include <vnet/vnet.h> #include <vnet/ethernet/ethernet.h> #include <vnet/gso/gso.h> #include <vnet/ip/ip4_packet.h> @@ -343,7 +344,7 @@ add_buffer_to_slot (vlib_main_t * vm, virtio_if_t * vif, id->len = b->current_length; } } - else /* VIRTIO_IF_TYPE_TAP */ + else /* VIRTIO_IF_TYPE_[TAP | TUN] */ { d->addr = pointer_to_uword (id); /* first buffer in chain */ @@ -612,6 +613,7 @@ VNET_DEVICE_CLASS (virtio_device_class) = { .subif_add_del_function = virtio_subif_add_del_function, .rx_mode_change_function = virtio_interface_rx_mode_change, }; + /* *INDENT-ON* */ /* |