qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH RFC 0/4] Dumping traffic when using netdev


From: Miguel Di Ciurcio Filho
Subject: Re: [Qemu-devel] Re: [PATCH RFC 0/4] Dumping traffic when using netdev devices
Date: Fri, 16 Jul 2010 16:35:24 -0300

On Fri, Jul 16, 2010 at 1:14 PM, Anthony Liguori <address@hidden> wrote:
> On 07/16/2010 10:41 AM, Markus Armbruster wrote:
>>> A less invasive way to do this would be to chain netdev devices.
>>>
>>> Basically:
>>>
>>> -netdev tap,fd=X,id=foo
>>> -netdev dump,file=foo.pcap,netdev=foo,id=bar
>>> -net nic,model=virtio,netdev=bar
>>>
>>
>> Is this really less invasive?  It breaks the simple 1:1 relationship
>> between NIC and network backend.  All the code dealing with
>> VLANClientState member peer needs to be touched.  For instance, this is
>> the code to connect peers, in qemu_new_net_client():
>>
>>         if (peer) {
>>             assert(!peer->peer);
>>             vc->peer = peer;
>>             peer->peer = vc;
>>         }
>>
>
> The peering code should all disappear.  I thought that's the whole point of
> this exercise?
>

My intent was to take small steps towards dropping the vlan code, and
one strong dependency for that is to have some facility equivalent to
dump.

For now I believe a solution as simple as possible would be better.

Regards,

Miguel



reply via email to

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