search for: net_get_receiver

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

2012 Mar 18
3
vhost question
...[WLAN_VQ_TX]); struct vhost_dev *dev = &w->vdev; mutex_lock(&vq->mutex); do { vhost_disable_notify(dev, vq); n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); while (n >= 0 && n != vq->num) { struct vhost_node *receiver = net_get_receiver(w); if(receiver) { if((t = transmission_alloc())) { BUG_ON(copy_from_user(t->buf, vq->iov[1].iov_base, vq->iov[1].iov_len)); t->buf_sz = vq->iov[1].iov_len; queue_push(&receiver->rxq, t); // ToDo: kick receiver's handle_rx // ToDo: populate TX status } else { pr_warn(&quot...
2012 Mar 18
3
vhost question
...[WLAN_VQ_TX]); struct vhost_dev *dev = &w->vdev; mutex_lock(&vq->mutex); do { vhost_disable_notify(dev, vq); n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); while (n >= 0 && n != vq->num) { struct vhost_node *receiver = net_get_receiver(w); if(receiver) { if((t = transmission_alloc())) { BUG_ON(copy_from_user(t->buf, vq->iov[1].iov_base, vq->iov[1].iov_len)); t->buf_sz = vq->iov[1].iov_len; queue_push(&receiver->rxq, t); // ToDo: kick receiver's handle_rx // ToDo: populate TX status } else { pr_warn(&quot...