Searched refs:rxvq (Results 1 – 1 of 1) sorted by relevance
50 VRing *rxvq = &vdev->vrings[VQ_RX]; in virtio_net_init() local67 vring_notify(rxvq); in virtio_net_init()97 VRing *rxvq = &vdev->vrings[VQ_RX]; in recv() local101 if (rx_last_idx == rxvq->used->idx) { in recv()105 len = rxvq->used->ring[rx_last_idx % rxvq->num].len - sizeof(VirtioNetHdr); in recv()110 id = rxvq->used->ring[rx_last_idx % rxvq->num].id % rxvq->num; in recv()111 pkt = (uint8_t *)(rxvq->desc[id].addr + sizeof(VirtioNetHdr)); in recv()115 printf("\nbuf %p: len=%i\n", (void *)rxvq->desc[id].addr, len); in recv()129 rxvq->avail->ring[rxvq->avail->idx % rxvq->num] = id; in recv()130 rxvq->avail->idx = rxvq->avail->idx + 1; in recv()[all …]