diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-06 18:45:01 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-06-17 03:28:02 +0300 |
| commit | 523b018dde3b7650fe5401d0499b30cf2f117515 (patch) | |
| tree | 62ed9049470c328f66deb4986467b7247331561f /hw/net/vhost_net.c | |
| parent | aef8486ede8ba493c3e5a031a7bce1850d1ebbe4 (diff) | |
| download | focaccia-qemu-523b018dde3b7650fe5401d0499b30cf2f117515.tar.gz focaccia-qemu-523b018dde3b7650fe5401d0499b30cf2f117515.zip | |
tests/vhost-user-bridge: workaround stale vring base
This patch is a similar solution to what Yuanhan Liu/Huawei Xie have suggested for DPDK. When vubr quits (killed or crashed), a restart of vubr would get stale vring base from QEMU. That would break the kernel virtio net completely, making it non-work any more, unless a driver reset is done. So, instead of getting the stale vring base from QEMU, Huawei suggested we could get a proper one from used->idx. This works because the queues packets are processed in order. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/vhost_net.c')
0 files changed, 0 insertions, 0 deletions