Commit 3008a206 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

ptr_ring: support testing different batching sizes

Use the param flag for that.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent a4979505
......@@ -97,6 +97,9 @@ void alloc_ring(void)
{
int ret = ptr_ring_init(&array, ring_size, 0);
assert(!ret);
/* Hacky way to poke at ring internals. Useful for testing though. */
if (param)
array.batch = param;
}
/* guest side */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment