diff options
author | Damjan Marion <damarion@cisco.com> | 2018-01-18 14:54:04 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-01-18 17:03:22 +0000 |
commit | c58408c0f2db122c5185413ef35fe330551afc2d (patch) | |
tree | 594ac30237187346864c7e5e97c0d3f748d58ceb /src/vnet/devices/virtio/virtio.c | |
parent | 7866c4595b65f54f491ffc4e92b1f8cf94d6f142 (diff) |
vlib: add vlib_buffer_alloc_to_ring API
Change-Id: I4e2804754b443f5f41fb25eed8334908c4a70f84
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.c')
-rw-r--r-- | src/vnet/devices/virtio/virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c index 3867cf03a46..02ded3f5f52 100644 --- a/src/vnet/devices/virtio/virtio.c +++ b/src/vnet/devices/virtio/virtio.c @@ -100,7 +100,7 @@ virtio_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 idx, u16 sz) memset (vring->used, 0, i); ASSERT (vring->buffers == 0); - vec_validate_aligned (vring->buffers, sz * 2, CLIB_CACHE_LINE_BYTES); + vec_validate_aligned (vring->buffers, sz, CLIB_CACHE_LINE_BYTES); vring->size = sz; vring->call_fd = eventfd (0, EFD_NONBLOCK | EFD_CLOEXEC); |