search for: virtio_net_tx_thread

Displaying 2 results from an estimated 2 matches for "virtio_net_tx_thread".

2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...; /* We should interrupt guest right now, otherwise latency is huge. */ - ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, VIRTIO_NET_RX_QUEUE); + ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, queue_num); } } @@ -117,16 +120,21 @@ static void *virtio_net_tx_thread(void *p) struct net_dev *ndev = p; u16 out, in; u16 head; - int len; + int len, queue_num; + + mutex_lock(&ndev->mutex); + queue_num = ndev->tx_vq_num * 2 + 1; + ndev->tx_vq_num++; + mutex_unlock(&ndev->mutex); kvm = ndev->kvm; - vq = &ndev->vqs[VIRTIO_NET_TX...
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...; /* We should interrupt guest right now, otherwise latency is huge. */ - ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, VIRTIO_NET_RX_QUEUE); + ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, queue_num); } } @@ -117,16 +120,21 @@ static void *virtio_net_tx_thread(void *p) struct net_dev *ndev = p; u16 out, in; u16 head; - int len; + int len, queue_num; + + mutex_lock(&ndev->mutex); + queue_num = ndev->tx_vq_num * 2 + 1; + ndev->tx_vq_num++; + mutex_unlock(&ndev->mutex); kvm = ndev->kvm; - vq = &ndev->vqs[VIRTIO_NET_TX...