[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 13/14] net: stream: move to QIO
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v8 13/14] net: stream: move to QIO |
Date: |
Thu, 22 Sep 2022 11:40:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Laurent Vivier <lvivier@redhat.com> writes:
> On 9/21/22 16:58, Markus Armbruster wrote:
>> Laurent Vivier <lvivier@redhat.com> writes:
>>
>>> Use QIOChannel, QIOChannelSocket and QIONetListener.
>>>
>>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>>> ---
>> [...]
>>
>>> diff --git a/qemu-options.hx b/qemu-options.hx
>>> index ee2436ae14a7..a0b5b70c80cb 100644
>>> --- a/qemu-options.hx
>>> +++ b/qemu-options.hx
>>> @@ -2732,8 +2732,8 @@ DEF("netdev", HAS_ARG, QEMU_OPTION_netdev,
>>> "-netdev socket,id=str[,fd=h][,udp=host:port][,localaddr=host:port]\n"
>>> " configure a network backend to connect to another
>>> network\n"
>>> " using an UDP tunnel\n"
>>> - "-netdev
>>> stream,id=str[,server=on|off],addr.type=inet,addr.host=host,addr.port=port\n"
>>> - "-netdev stream,id=str[,server=on|off],addr.type=unix,addr.path=path\n"
>>> + "-netdev
>>> stream,id=str[,server=on|off],addr.type=inet,addr.host=host,addr.port=port[,to=maxport][,numeric=on|off][,keep-alive=on|off][,mptcp=on|off][,addr.ipv4=on|off][,addr.ipv6=on|off]\n"
>>> + "-netdev
>>> stream,id=str[,server=on|off],addr.type=unix,addr.path=path[,abstract=on|off][,tight=on|off]\n"
>>> "-netdev stream,id=str[,server=on|off],addr.type=fd,addr.str=h\n"
>>> " configure a network backend to connect to another
>>> network\n"
>>> " using a socket connection in stream mode.\n"
>> The commit message didn't prepare me for this change. Could you
>> explain?
>>
>
> You're right, I should explain:
>
> moving to QIOChannel allows net/stream to use the all the available
> parameters provided by SocketAddress. They were not listed here before
> because they were not supported, and as
> they are supported now I have added them in the list.
Fine addition to the commit message. Suggest to amend its subject like
net stream: move to QIO to enable additional parameters
or
net stream: move to QIO, enabling additional parameters
- [PATCH v8 00/14] qapi: net: add unix socket type support to netdev backend, Laurent Vivier, 2022/09/13
- [PATCH v8 05/14] qapi: net: add stream and dgram netdevs, Laurent Vivier, 2022/09/13
- [PATCH v8 10/14] net: dgram: add unix socket, Laurent Vivier, 2022/09/13
- [PATCH v8 09/14] net: dgram: move mcast specific code from net_socket_fd_init_dgram(), Laurent Vivier, 2022/09/13
- [PATCH v8 14/14] tests/qtest: netdev: test stream and dgram backends, Laurent Vivier, 2022/09/13
- [PATCH v8 08/14] net: dgram: make dgram_dst generic, Laurent Vivier, 2022/09/13
- [PATCH v8 13/14] net: stream: move to QIO, Laurent Vivier, 2022/09/13
- [PATCH v8 11/14] qemu-sockets: move and rename SocketAddress_to_str(), Laurent Vivier, 2022/09/13
- [PATCH v8 07/14] net: stream: add unix socket, Laurent Vivier, 2022/09/13
- [PATCH v8 01/14] net: introduce convert_host_port(), Laurent Vivier, 2022/09/13
- [PATCH v8 03/14] net: simplify net_client_parse() error management, Laurent Vivier, 2022/09/13