Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
virtio: Use new buffer optimization
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
node.c
diff --git
a/src/vnet/devices/virtio/node.c
b/src/vnet/devices/virtio/node.c
index
6627456
..
78d071a
100644
(file)
--- 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;
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;
if (n_slots == 0)
return;