search for: wlan_vq_rx

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

2012 Mar 18
3
vhost question
...ruct vhost_work *work) { int n; unsigned out, in; struct transmission *t; u16 frames = 0; struct vhost_poll *p = container_of(work, struct vhost_poll, work); struct vhost_virtqueue *vq = container_of(p, struct vhost_virtqueue, poll); struct vhost_node *node = container_of(vq, struct vhost_node, vqs[WLAN_VQ_RX]); struct vhost_dev *dev = &node->vdev; mutex_lock(&vq->mutex); vhost_disable_notify(dev, vq); while (!queue_empty(&node->rxq)) { n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); if (0 < n || n == vq->num) break; if ((t =...
2012 Mar 18
3
vhost question
...ruct vhost_work *work) { int n; unsigned out, in; struct transmission *t; u16 frames = 0; struct vhost_poll *p = container_of(work, struct vhost_poll, work); struct vhost_virtqueue *vq = container_of(p, struct vhost_virtqueue, poll); struct vhost_node *node = container_of(vq, struct vhost_node, vqs[WLAN_VQ_RX]); struct vhost_dev *dev = &node->vdev; mutex_lock(&vq->mutex); vhost_disable_notify(dev, vq); while (!queue_empty(&node->rxq)) { n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); if (0 < n || n == vq->num) break; if ((t =...