diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-21 10:17:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-22 10:23:34 -0400 |
commit | 9d0ca6ed6f2f12eb488f450d5d38d047aa402a53 (patch) | |
tree | dbcab55565593924298fbde1d83456b7c2f49bbc /drivers/net/virtio_net.c | |
parent | 6b0c21cede22be1f68f0a632c0ca38008ce1abe7 (diff) |
virtio: remove obsolete virtqueue_get_queue_index()
You can access it directly now, since 3.8: v3.7-rc1-13-g06ca287
'virtio: move queue_index and num_free fields into core struct
virtqueue.'
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 57ac4b0294bc..f7d67e8eb1aa 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -154,7 +154,7 @@ struct padded_vnet_hdr { | |||
154 | */ | 154 | */ |
155 | static int vq2txq(struct virtqueue *vq) | 155 | static int vq2txq(struct virtqueue *vq) |
156 | { | 156 | { |
157 | return (virtqueue_get_queue_index(vq) - 1) / 2; | 157 | return (vq->index - 1) / 2; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int txq2vq(int txq) | 160 | static int txq2vq(int txq) |
@@ -164,7 +164,7 @@ static int txq2vq(int txq) | |||
164 | 164 | ||
165 | static int vq2rxq(struct virtqueue *vq) | 165 | static int vq2rxq(struct virtqueue *vq) |
166 | { | 166 | { |
167 | return virtqueue_get_queue_index(vq) / 2; | 167 | return vq->index / 2; |
168 | } | 168 | } |
169 | 169 | ||
170 | static int rxq2vq(int rxq) | 170 | static int rxq2vq(int rxq) |