On 06/08/2010 09:37 AM, Paul Brook wrote:
I see three possible options to handle this.

    (1) Write a hub (or morph the current vlan code into this).  Then
        you can do something like:

              qemu -netdev socket,id=p1 \
                   -netdev user,id=p2   \
                   -netdev dump,id=p3 \
                   -switch peer=p1,peer=p2,monitor=p3,port=p4 \
                   -device $nic,netdev=p4

    (2) Implement the same as external daemon which can be combined with
        -netdev socket.

    (3) Just point people who need this to the various virtual switch
        projects (vde, ...) they can use and drop vlan.
(2) is just a special case of (3), where we decide that the existing
implementations suck and go write our own.

To the extent that (1) is valuable, I think it's the best approach. I'd vote for officially deprecating vlans for 0.13 and then seeing how much people complain. If no one complains too much, then let's not bother introducing -switch.

Regards,

Anthony Liguori

Paul


Reply via email to