Displaying 2 results from an estimated 2 matches for "indirect_threshold".
2011 Nov 29
1
[PATCH] virtio-ring: Use threshold for switching to indirect descriptors
...eletions(-)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index c7a2c20..5e0ce15 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -82,6 +82,7 @@ struct vring_virtqueue
/* Host supports indirect buffers */
bool indirect;
+ unsigned int indirect_threshold;
/* Host publishes avail event idx */
bool event;
@@ -176,8 +177,9 @@ int virtqueue_add_buf_gfp(struct virtqueue *_vq,
BUG_ON(data == NULL);
/* If the host supports indirect descriptor tables, and we have multiple
- * buffers, then go indirect. FIXME: tune this threshold */
- if (vq-&g...
2011 Nov 29
1
[PATCH] virtio-ring: Use threshold for switching to indirect descriptors
...eletions(-)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index c7a2c20..5e0ce15 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -82,6 +82,7 @@ struct vring_virtqueue
/* Host supports indirect buffers */
bool indirect;
+ unsigned int indirect_threshold;
/* Host publishes avail event idx */
bool event;
@@ -176,8 +177,9 @@ int virtqueue_add_buf_gfp(struct virtqueue *_vq,
BUG_ON(data == NULL);
/* If the host supports indirect descriptor tables, and we have multiple
- * buffers, then go indirect. FIXME: tune this threshold */
- if (vq-&g...