virtio_net: pass vi around
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 23 Oct 2014 21:12:10 +0000 (00:12 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:27 +0000 (12:05 +0200)
commit946fa5647b529402161814ca8ed1302254b6affb
treed5cb48d9a5b0fbf9cf313745ff5c222ff304000f
parent38f37b578f7d62a827d6f42e21d55bf428f9af8e
virtio_net: pass vi around

Too many places poke at [rs]q->vq->vdev->priv just to get
the vi structure.  Let's just pass the pointer around: seems
cleaner, and might even be faster.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/net/virtio_net.c