On 09/21/2010 04:18 AM, Michael S. Tsirkin wrote:
No, netdev_del should remove the VLANClientState from the
non_vlan_clients list.

It's no longer enumerable and it's no longer lookup-able.

The only reason it stays around it so that the device doesn't have a
reference to a free pointer.  The only field that's ever looked at
is is_deleted which is used by every function to turn around and
implement a nop.

The VLANClientState is a hollow shell of it's former glorious self.
The remainder of it's (hopefully short) life is merely so that we
can avoid touching every device to teach them about disconnecting
backends.
We'll have to tell them link is down, won't we?

Yes, that would be a nice touch.

Regards,

Anthony Liguori


Reply via email to