Re: [PATCH v4 13/15] virtio-net: support queue reset

2022-09-13 Thread Jason Wang
在 2022/9/12 01:22, Kangjie Xu 写道: From: Xuan Zhuo virtio-net and vhost-kernel implement queue reset. Queued packets in the corresponding queue pair are flushed or purged. For virtio-net, userspace datapath will be disabled later in __virtio_queue_reset(). It will set addr of vring to 0 and

[PATCH v4 13/15] virtio-net: support queue reset

2022-09-11 Thread Kangjie Xu
From: Xuan Zhuo virtio-net and vhost-kernel implement queue reset. Queued packets in the corresponding queue pair are flushed or purged. For virtio-net, userspace datapath will be disabled later in __virtio_queue_reset(). It will set addr of vring to 0 and idx to 0. Thus, virtio_net_receive()