diff options
| author | Kangjie Xu | 2022-10-17 11:25:54 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2022-11-07 19:12:20 +0100 |
| commit | 4fdf69ab691e513280a3b5529de997d95a29f358 (patch) | |
| tree | aa56f76a877a8dd7be69bcf47c33e54cd2d3df1e /cpu.c | |
| parent | vhost-net: vhost-kernel: introduce vhost_net_virtqueue_restart() (diff) | |
| download | qemu-4fdf69ab691e513280a3b5529de997d95a29f358.tar.gz qemu-4fdf69ab691e513280a3b5529de997d95a29f358.tar.xz qemu-4fdf69ab691e513280a3b5529de997d95a29f358.zip | |
virtio-net: introduce flush_or_purge_queued_packets()
Introduce the fucntion flush_or_purge_queued_packets(), it will be
used in device reset and virtqueue reset. Therefore, we extract the
common logic as a new function.
Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com>
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221017092558.111082-12-xuanzhuo@linux.alibaba.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'cpu.c')
0 files changed, 0 insertions, 0 deletions
