summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-04-25 14:54:32 +0200
committerDamjan Marion <dmarion@me.com>2019-04-26 10:23:49 +0000
commit9896d55f7a6c2ff3ad4dcbdfbba4924e2a1dc5d7 (patch)
tree4a52575be537b2073bd43c01f3193caa60e88ba4 /src/vnet/devices/virtio/virtio.c
parent873b9ed405f291a954a8f45a0bba6b136d6ff19f (diff)
tap: Fix the indirect buffer allocation VPP-1660
Change-Id: I73f76c25754f6fb14a49ae47b6404f3cbabbeeb5 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.c')
-rw-r--r--src/vnet/devices/virtio/virtio.c2
1 files changed, 1 insertions, 1 deletions
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);
}