diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-01-31 13:18:00 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-02-06 17:27:44 +0000 |
commit | 80659b4624d55e2d293198b06c5c6077b3ba816b (patch) | |
tree | 195b39ddfd4fbc5642eb58da482c3c0c990b7a7d /src/vnet/devices/virtio/node.c | |
parent | ef20f0eff7f0e6ed75f316eb7080aa655de077ff (diff) |
virtio: Use new buffer optimization
Change-Id: Ifc98373371b967c49a75989eac415ddda1dcf15f
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/node.c')
-rw-r--r-- | src/vnet/devices/virtio/node.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index 6627456de00..78d071a24ed 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -96,8 +96,10 @@ more: next = vring->desc_next; avail = vring->avail->idx; - n_slots = vlib_buffer_alloc_to_ring (vm, vring->buffers, next, vring->size, - n_slots); + n_slots = + vlib_buffer_alloc_to_ring_from_pool (vm, vring->buffers, next, + vring->size, n_slots, + vring->buffer_pool_index); if (n_slots == 0) return; |