diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-11-01 09:16:37 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-02 21:29:57 -0400 |
commit | 70e4cb9aafb3caa9e5eb25614a5bc40b0ffa9ffd (patch) | |
tree | f3b88279253e04599ac949e393ee0820ceaa5f57 /drivers/vhost/vhost.c | |
parent | 149d36f7187cbd10beff88e4e20f93e51a34827e (diff) | |
download | linux-3.10-70e4cb9aafb3caa9e5eb25614a5bc40b0ffa9ffd.tar.gz linux-3.10-70e4cb9aafb3caa9e5eb25614a5bc40b0ffa9ffd.tar.bz2 linux-3.10-70e4cb9aafb3caa9e5eb25614a5bc40b0ffa9ffd.zip |
vhost-net: cleanup macros for DMA status tracking
Better document macros for DMA tracking. Add an
explicit one for DMA in progress instead of
relying on user supplying len != 1.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vhost.c')
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 73d08db2e67..f23cf8956d1 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -1606,7 +1606,7 @@ void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool status) struct vhost_virtqueue *vq = ubufs->vq; vhost_poll_queue(&vq->poll); - /* set len = 1 to mark this desc buffers done DMA */ + /* set len to mark this desc buffers done DMA */ vq->heads[ubuf->desc].len = VHOST_DMA_DONE_LEN; kref_put(&ubufs->kref, vhost_zerocopy_done_signal); } |