ptr_ring: support testing different batching sizes
Use the param flag for that. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
此提交包含在:
@@ -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 */
|
||||
|
新增問題並參考
封鎖使用者