qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 01/16] net: Add a hub net client


From: Laszlo Ersek
Subject: Re: [Qemu-devel] [PATCH 01/16] net: Add a hub net client
Date: Mon, 23 Jul 2012 14:45:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120714 Thunderbird/10.0.6

Two hairs to split:

On 07/20/12 14:01, Stefan Hajnoczi wrote:

> +static NetHubPort *net_hub_port_new(NetHub *hub, const char *name)
> +{
> +    VLANClientState *nc;
> +    NetHubPort *port;
> +    unsigned int id = hub->num_ports++;

There are projects that don't like to put logic or externally visible
side-effects into initializers. I don't know about qemu.

> diff --git a/qapi-schema.json b/qapi-schema.json
> index bc55ed2..6618eb5 100644
> --- a/qapi-schema.json
> +++ b/qapi-schema.json
> @@ -2094,6 +2094,19 @@
>      '*helper': 'str' } }
>  
>  ##
> +# @NetdevHubPortOptions
> +#
> +# Connect two or more net clients through a software hub.
> +#
> +# @hubid: hub identifier number
> +#
> +# Since 1.2
> +##
> +{ 'type': 'NetdevHubPortOptions',
> +  'data': {
> +    'hubid':     'int' } }

I think this should say 'uint32'.

Thanks,
Laszlo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]