Home
last modified time | relevance | path

Searched refs:rxvq (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-net.c50 VRing *rxvq = &vdev->vrings[VQ_RX]; in virtio_net_init() local
67 vring_notify(rxvq); in virtio_net_init()
97 VRing *rxvq = &vdev->vrings[VQ_RX]; in recv() local
101 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 …]