]> Git Repo - qemu.git/commit
tests/vhost-user-bridge: workaround stale vring base
authorMarc-André Lureau <[email protected]>
Mon, 6 Jun 2016 16:45:01 +0000 (18:45 +0200)
committerMichael S. Tsirkin <[email protected]>
Fri, 17 Jun 2016 00:28:02 +0000 (03:28 +0300)
commit523b018dde3b7650fe5401d0499b30cf2f117515
tree62ed9049470c328f66deb4986467b7247331561f
parentaef8486ede8ba493c3e5a031a7bce1850d1ebbe4
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 <[email protected]>
Tested-by: Yuanhan Liu <[email protected]>
Reviewed-by: Yuanhan Liu <[email protected]>
Reviewed-by: Victor Kaplansky <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
tests/vhost-user-bridge.c
This page took 0.026508 seconds and 4 git commands to generate.