Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/vhost/
Dnet.c176 static int vhost_net_buf_produce(struct vhost_net_virtqueue *nvq) in vhost_net_buf_produce() argument
178 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_produce()
181 rxq->tail = ptr_ring_consume_batched(nvq->rx_ring, rxq->queue, in vhost_net_buf_produce()
186 static void vhost_net_buf_unproduce(struct vhost_net_virtqueue *nvq) in vhost_net_buf_unproduce() argument
188 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_unproduce()
190 if (nvq->rx_ring && !vhost_net_buf_is_empty(rxq)) { in vhost_net_buf_unproduce()
191 ptr_ring_unconsume(nvq->rx_ring, rxq->queue + rxq->head, in vhost_net_buf_unproduce()
209 static int vhost_net_buf_peek(struct vhost_net_virtqueue *nvq) in vhost_net_buf_peek() argument
211 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_peek()
216 if (!vhost_net_buf_produce(nvq)) in vhost_net_buf_peek()
[all …]