Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tap: add initial support for tun
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
device.c
diff --git
a/src/vnet/devices/virtio/device.c
b/src/vnet/devices/virtio/device.c
index
1ee9480
..
9d04474
100644
(file)
--- 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 <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>
#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;
}
}
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 */
{
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,
};
.subif_add_del_function = virtio_subif_add_del_function,
.rx_mode_change_function = virtio_interface_rx_mode_change,
};
+
/* *INDENT-ON* */
/*
/* *INDENT-ON* */
/*