search for: vhost_null_vq_max

Displaying 2 results from an estimated 2 matches for "vhost_null_vq_max".

2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...h> +#include <linux/slab.h> + +#include "null.h" +#include "vhost.c" + +/* Max number of bytes transferred before requeueing the job. + * Using this limit prevents one virtqueue from starving others. */ +#define VHOST_NULL_WEIGHT 0x80000 + +enum { + VHOST_NULL_VQ = 0, + VHOST_NULL_VQ_MAX = 1, +}; + +struct vhost_null { + struct vhost_dev dev; + struct vhost_virtqueue vqs[VHOST_NULL_VQ_MAX]; +}; + +/* Expects to be always run from workqueue - which acts as + * read-size critical section for our kind of RCU. */ +static void handle_vq(struct vhost_null *n) +{ + struct vhost_virtqueue...
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...h> +#include <linux/slab.h> + +#include "null.h" +#include "vhost.c" + +/* Max number of bytes transferred before requeueing the job. + * Using this limit prevents one virtqueue from starving others. */ +#define VHOST_NULL_WEIGHT 0x80000 + +enum { + VHOST_NULL_VQ = 0, + VHOST_NULL_VQ_MAX = 1, +}; + +struct vhost_null { + struct vhost_dev dev; + struct vhost_virtqueue vqs[VHOST_NULL_VQ_MAX]; +}; + +/* Expects to be always run from workqueue - which acts as + * read-size critical section for our kind of RCU. */ +static void handle_vq(struct vhost_null *n) +{ + struct vhost_virtqueue...