[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 17/17] net: stream: add QAPI events to report connection
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v14 17/17] net: stream: add QAPI events to report connection state |
Date: |
Mon, 24 Oct 2022 13:00:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Laurent Vivier <lvivier@redhat.com> writes:
> The netdev reports NETDEV_STREAM_CONNECTED event when the backend
> is connected, and NETDEV_STREAM_DISCONNECTED when it is disconnected.
>
> The NETDEV_STREAM_CONNECTED event includes the destination address.
>
> This allows a system manager like libvirt to detect when the server
> fails.
>
> For instance with passt:
>
> { 'execute': 'qmp_capabilities' }
> { "return": { } }
> { "timestamp": { "seconds": 1666341395, "microseconds": 505347 },
> "event": "NETDEV_STREAM_CONNECTED",
> "data": { "netdev-id": "netdev0",
> "addr": { "path": "/tmp/passt_1.socket", "type": "unix" } } }
>
> [killing passt here]
>
> { "timestamp": { "seconds": 1666341430, "microseconds": 968694 },
> "event": "NETDEV_STREAM_DISCONNECTED",
> "data": { "netdev-id": "netdev0" } }
>
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> Acked-by: Michael S. Tsirkin <mst@redhat.com>
QAPI schema
Acked-by: Markus Armbruster <armbru@redhat.com>
- Re: [PATCH v14 13/17] qemu-sockets: move and rename SocketAddress_to_str(), (continued)
[PATCH v14 17/17] net: stream: add QAPI events to report connection state, Laurent Vivier, 2022/10/21
- Re: [PATCH v14 17/17] net: stream: add QAPI events to report connection state,
Markus Armbruster <=
[PATCH v14 10/17] net: dgram: make dgram_dst generic, Laurent Vivier, 2022/10/21
[PATCH v14 03/17] net: simplify net_client_parse() error management, Laurent Vivier, 2022/10/21
[PATCH v14 06/17] qapi: net: add stream and dgram netdevs, Laurent Vivier, 2022/10/21
[PATCH v14 14/17] qemu-sockets: update socket_uri() and socket_parse() to be consistent, Laurent Vivier, 2022/10/21
[PATCH v14 05/17] net: introduce qemu_set_info_str() function, Laurent Vivier, 2022/10/21
[PATCH v14 16/17] tests/qtest: netdev: test stream and dgram backends, Laurent Vivier, 2022/10/21
[PATCH v14 11/17] net: dgram: move mcast specific code from net_socket_fd_init_dgram(), Laurent Vivier, 2022/10/21
[PATCH v14 12/17] net: dgram: add unix socket, Laurent Vivier, 2022/10/21