From 286aa593a58df59e3a7d6f71bb2159dd439d7f76 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 25 Apr 2019 14:54:32 +0200 Subject: tap: Fix the indirect buffer allocation Change-Id: I73f76c25754f6fb14a49ae47b6404f3cbabbeeb5 Signed-off-by: Mohsin Kazmi --- src/vnet/devices/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c index 72499b63731..9fbbc1bf508 100644 --- a/src/vnet/devices/virtio/virtio.c +++ b/src/vnet/devices/virtio/virtio.c @@ -121,7 +121,7 @@ virtio_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 idx, u16 sz) do { if (n_alloc < sz) - n_alloc = + n_alloc += vlib_buffer_alloc (vm, vring->indirect_buffers + n_alloc, sz - n_alloc); } -- cgit 1.2.3-korg