]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: stream: add a new option to automatically reconnect
authorLaurent Vivier <lvivier@redhat.com>
Thu, 19 Jan 2023 10:16:45 +0000 (11:16 +0100)
committerJason Wang <jasowang@redhat.com>
Fri, 17 Feb 2023 05:31:33 +0000 (13:31 +0800)
commit148fbf0d58a6fa9c6881db28fced8c071c3be100
tree3767acc46b7c180c1685ca77b7073dfe899f9168
parent993f71ee3360450c2758964adbdfb13f4d460162
net: stream: add a new option to automatically reconnect

In stream mode, if the server shuts down there is currently
no way to reconnect the client to a new server without removing
the NIC device and the netdev backend (or to reboot).

This patch introduces a reconnect option that specifies a delay
to try to reconnect with the same parameters.

Add a new test in qtest to test the reconnect option and the
connect/disconnect events.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/stream.c
qapi/net.json
qemu-options.hx
tests/qtest/netdev-socket.c