Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370938
b: refs/heads/master
c: e538eba
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Mar 20, 2013
1 parent 0d1b575 commit 27928b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 282edb36499042a92b71f052f51754ae7ed936e4
refs/heads/master: e538ebaf78455ff87dec2c34d4f9c128844e3f3f
10 changes: 10 additions & 0 deletions trunk/tools/virtio/linux/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ int virtqueue_add_sgs(struct virtqueue *vq,
void *data,
gfp_t gfp);

int virtqueue_add_outbuf(struct virtqueue *vq,
struct scatterlist sg[], unsigned int num,
void *data,
gfp_t gfp);

int virtqueue_add_inbuf(struct virtqueue *vq,
struct scatterlist sg[], unsigned int num,
void *data,
gfp_t gfp);

void virtqueue_kick(struct virtqueue *vq);

void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len);
Expand Down
8 changes: 4 additions & 4 deletions trunk/tools/virtio/vringh_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ static int parallel_test(unsigned long features,
* user addr */
__kmalloc_fake = indirects + (xfers % RINGSIZE) * 4;
if (output)
err = virtqueue_add_buf(vq, sg, num_sg, 0, dbuf,
GFP_KERNEL);
err = virtqueue_add_outbuf(vq, sg, num_sg, dbuf,
GFP_KERNEL);
else
err = virtqueue_add_buf(vq, sg, 0, num_sg, dbuf,
GFP_KERNEL);
err = virtqueue_add_inbuf(vq, sg, num_sg,
dbuf, GFP_KERNEL);

if (err == -ENOSPC) {
if (!virtqueue_enable_cb_delayed(vq))
Expand Down

0 comments on commit 27928b1

Please sign in to comment.