On Mon, Jul 23, 2012 at 9:07 PM, Laszlo Ersek wrote:
> On 07/20/12 14:01, Stefan Hajnoczi wrote:
>
>> @@ -638,11 +642,17 @@ static void get_vlan(Object *obj, Visitor *v, void
>> *opaque,
>> {
>> DeviceState *dev = DEVICE(obj);
>> Property *prop = opaque;
>> -VLANState **ptr = qdev_
On 07/20/12 14:01, Stefan Hajnoczi wrote:
> @@ -638,11 +642,17 @@ static void get_vlan(Object *obj, Visitor *v, void
> *opaque,
> {
> DeviceState *dev = DEVICE(obj);
> Property *prop = opaque;
> -VLANState **ptr = qdev_get_prop_ptr(dev, prop);
> -int64_t id;
> +VLANClientSt
From: Zhi Yong Wu
Instead of using VLANState use net/hub.h to support the vlan qdev
property. The vlan qdev property becomes an alias for the peer qdev
property but is represented as a VLAN ID number. When a VLAN ID is
selected the device will really peer with a hub port.
Signed-off-by: Zhi Yo