[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 5/8] net: Remove the deprecated way of dumpin
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH v2 5/8] net: Remove the deprecated way of dumping network packets |
Date: |
Wed, 21 Feb 2018 01:20:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 20.02.2018 23:35, Eric Blake wrote:
> On 02/20/2018 11:40 AM, Thomas Huth wrote:
>> "-net dump" has been marked as deprecated since QEMU v2.10, since it
>> only works with the deprecated 'vlan' parameter (or hubs). Network
>> dumping should be done with "-object filter-dump" nowadays instead.
>> Since nobody complained so far about the deprecation message, let's
>> finally get rid of "-net dump" now.
>>
>> Reviewed-by: Paolo Bonzini <address@hidden>
>> Reviewed-by: Eric Blake <address@hidden>
>> Signed-off-by: Thomas Huth <address@hidden>
>> ---
>
>> +++ b/qapi/net.json
>> @@ -39,8 +39,10 @@
>> #
>> # Add a network backend.
>> #
>> -# @type: the type of network backend. Current valid values are
>> 'user', 'tap',
>> -# 'vde', 'socket', 'dump' and 'bridge'
>> +# @type: the type of network backend. Possible values in version
>> +# 2.11: 'user', 'tap', 'vde', 'socket', 'hubport', 'bridge',
>> +# 'dump', 'l2tpv3', 'netmap', 'vhost-user'
>> +# 2.12: 'dump' dropped
>> #
>
> That's a bit fuzzy, especially since the command has been around since
> 0.14. It might be easier to word it as:
>
> @type: the type of network backend. Possible values are listed in
> NetClientDriver.
That's a really good idea to avoid that we have to maintain the list
multiple times...
> Then defer the actual listing by version...
>
>> @@ -468,7 +453,7 @@
>> # Since: 2.7
>> ##
>> { 'enum': 'NetClientDriver',
>> - 'data': [ 'none', 'nic', 'user', 'tap', 'l2tpv3', 'socket', 'vde',
>> 'dump',
>> + 'data': [ 'none', 'nic', 'user', 'tap', 'l2tpv3', 'socket', 'vde',
>> 'bridge', 'hubport', 'netmap', 'vhost-user' ] }
>
> ...to here
... but 'none' and 'nic' are not valid for netdev_add. Well, I guess I
can simply write something like "Possible values are listed in
NetClientDriver (excluding 'none' and 'nic')". I'll send a v3 with that.
Thomas
PS: By the way, now that you've mentioned this, I think "dump" was also
not valid for netdev_add, so the comment was even wrong there.
- [Qemu-devel] [PATCH v2 0/8] Improvements and clean-ups related to -net, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 2/8] net: List available netdevs with "-netdev help", Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 1/8] net: Move error reporting from net_init_client/netdev to the calling site, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 3/8] net: Only show vhost-user in the help text if CONFIG_POSIX is defined, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 4/8] net: Make net_client_init() static, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 6/8] net: Remove the deprecated 'host_net_add' and 'host_net_remove' HMP commands, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 5/8] net: Remove the deprecated way of dumping network packets, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 7/8] net: Add a new convenience option "--nic" to configure default/on-board NICs, Thomas Huth, 2018/02/20
- [Qemu-devel] [PATCH v2 8/8] qemu-doc: Make "-net" less prominent, Thomas Huth, 2018/02/20