Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael S. Tsirkin and committed by
Rusty Russell
dc3f5e68 28cfc828

+3 -3
+3 -3
net/9p/trans_virtio.c
··· 137 137 138 138 P9_DPRINTK(P9_DEBUG_TRANS, ": request done\n"); 139 139 140 - while ((rc = chan->vq->vq_ops->get_buf(chan->vq, &len)) != NULL) { 140 + while ((rc = virtqueue_get_buf(chan->vq, &len)) != NULL) { 141 141 P9_DPRINTK(P9_DEBUG_TRANS, ": rc %p\n", rc); 142 142 P9_DPRINTK(P9_DEBUG_TRANS, ": lookup tag %d\n", rc->tag); 143 143 req = p9_tag_lookup(chan->client, rc->tag); ··· 209 209 210 210 req->status = REQ_STATUS_SENT; 211 211 212 - if (chan->vq->vq_ops->add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) { 212 + if (virtqueue_add_buf(chan->vq, chan->sg, out, in, req->tc) < 0) { 213 213 P9_DPRINTK(P9_DEBUG_TRANS, 214 214 "9p debug: virtio rpc add_buf returned failure"); 215 215 return -EIO; 216 216 } 217 217 218 - chan->vq->vq_ops->kick(chan->vq); 218 + virtqueue_kick(chan->vq); 219 219 220 220 P9_DPRINTK(P9_DEBUG_TRANS, "9p debug: virtio request kicked\n"); 221 221 return 0;