Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 */