commit | 154a903a958ee6459ae1019883e6c4796b4cafc7 | [log] [tgz] |
---|---|---|
author | Mohsin Kazmi <sykazmi@cisco.com> | Tue Apr 30 10:11:38 2019 +0200 |
committer | Damjan Marion <dmarion@me.com> | Wed May 01 18:13:17 2019 +0000 |
tree | 78e25d7190b04ef52344bd70eecc54885534f865 | |
parent | 43b512cac2240cd679341a3bc01d548c573b8a85 [diff] [blame] |
virtio: Fix virtio buffer allocation Change-Id: I0ffb468aef56f5fd223218a83425771595863666 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c index b02b79d..aeb519b 100644 --- a/src/vnet/devices/virtio/pci.c +++ b/src/vnet/devices/virtio/pci.c
@@ -693,7 +693,7 @@ do { if (n_alloc < queue_size) - n_alloc = + n_alloc += vlib_buffer_alloc (vm, vring->indirect_buffers + n_alloc, queue_size - n_alloc); }