summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-04-13 16:11:50 +0300
committerRusty Russell <rusty@rustcorp.com.au>2010-05-19 22:15:45 +0930
commitdc3f5e68f846eec38fb31d78f0b6e83633ad375e (patch)
tree9af1c7f670a92ca467a792b76ddc99a0905c4fa7 /net/9p
parent28cfc828e7e1efc620df70b99519784333abcffd (diff)
downloadop-kernel-dev-dc3f5e68f846eec38fb31d78f0b6e83633ad375e.zip
op-kernel-dev-dc3f5e68f846eec38fb31d78f0b6e83633ad375e.tar.gz
trans_virtio: use virtqueue_xxx wrappers
Switch trans_virtio to new virtqueue_xxx wrappers. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/trans_virtio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c
index 7eb78ec..dcfbe99 100644
--- a/net/9p/trans_virtio.c
+++ b/net/9p/trans_virtio.c
@@ -137,7 +137,7 @@ static void req_done(struct virtqueue *vq)
P9_DPRINTK(P9_DEBUG_TRANS, ": request done\n");
- while ((rc = chan->vq->vq_ops->get_buf(chan->vq, &len)) != NULL) {
+ while ((rc = virtqueue_get_buf(chan->vq, &len)) != NULL) {
P9_DPRINTK(P9_DEBUG_TRANS, ": rc %p\n", rc);
P9_DPRINTK(P9_DEBUG_TRANS, ": lookup tag %d\n", rc->tag);
req = p9_tag_lookup(chan->client, rc->tag);
@@ -209,13 +209,13 @@ p9_virtio_request(struct p9_client *client, struct p9_req_t *req)
req->status = REQ_STATUS_SENT;
- if (chan->vq->vq_ops->add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) {
+ if (virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) {
P9_DPRINTK(P9_DEBUG_TRANS,
"9p debug: virtio rpc add_buf returned failure");
return -EIO;
}
- chan->vq->vq_ops->kick(chan->vq);
+ virtqueue_kick(chan->vq);
P9_DPRINTK(P9_DEBUG_TRANS, "9p debug: virtio request kicked\n");
return 0;
OpenPOWER on IntegriCloud