Skip to content

Commit 4571dc7

Browse files
lkpdnPaolo Abeni
authored andcommitted
virtio_net: replace vq2rxq with vq2txq where appropriate
While not harmful, using vq2rxq where it's always sq appears odd. Replace it with the more appropriate vq2txq for clarity and correctness. Fixes: 89f8667 ("virtio_net: xsk: tx: support xmit xsk buffer") Signed-off-by: Koichiro Den <[email protected]> Acked-by: Jason Wang <[email protected]> Reviewed-by: Xuan Zhuo <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3ddccbe commit 4571dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/virtio_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6213,7 +6213,7 @@ static void virtnet_sq_free_unused_buf(struct virtqueue *vq, void *buf)
62136213
{
62146214
struct virtnet_info *vi = vq->vdev->priv;
62156215
struct send_queue *sq;
6216-
int i = vq2rxq(vq);
6216+
int i = vq2txq(vq);
62176217

62186218
sq = &vi->sq[i];
62196219

0 commit comments

Comments
 (0)