Skip to content

Commit

Permalink
virtqueue: remove vq_ring_size
Browse files Browse the repository at this point in the history
As we don't have indirect support, lets remove vq_ring_size for now
since we don't really need vq_ring_size for anything else.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak authored and wjliang committed Apr 16, 2018
1 parent ab99b6b commit 90fd6c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/include/openamp/virtqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ struct virtqueue {
uint16_t vq_queue_index;
uint16_t vq_nentries;
uint32_t vq_flags;
int vq_ring_size;
void *vq_ring_mem;
void (*callback) (struct virtqueue * vq);
void (*notify) (struct virtqueue * vq);
Expand Down
3 changes: 0 additions & 3 deletions lib/virtio/virtqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ int virtqueue_create(struct virtio_device *virt_dev, unsigned short id,
vq->notify = notify;
vq->shm_io = shm_io;

//TODO : Whether we want to support indirect addition or not.
vq->vq_ring_size = vring_size(ring->num_descs, ring->align);
vq->vq_ring_mem = (void *)ring->vaddr;

/* Initialize vring control block in virtqueue. */
Expand Down Expand Up @@ -307,7 +305,6 @@ void virtqueue_free(struct virtqueue *vq)
//TODO : Need to free indirect buffers here

if (vq->vq_ring_mem != NULL) {
vq->vq_ring_size = 0;
vq->vq_ring_mem = NULL;
}

Expand Down

0 comments on commit 90fd6c0

Please sign in to comment.