[Top][All Lists]
[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
- [Qemu-devel] [PATCH RFC 1/4] net/dump: Make pcap structures public, (continued)
- [Qemu-devel] [PATCH RFC 1/4] net/dump: Make pcap structures public, Miguel Di Ciurcio Filho, 2010/07/15
- [Qemu-devel] [PATCH RFC 2/4] net: Introduce NetClientDump and auxiliary functions, Miguel Di Ciurcio Filho, 2010/07/15
- [Qemu-devel] [PATCH RFC 3/4] net/tap: Suggested support for NetClientDump, Miguel Di Ciurcio Filho, 2010/07/15
- [Qemu-devel] [PATCH RFC 4/4] net/slirp: Suggested support for NetClientDump, Miguel Di Ciurcio Filho, 2010/07/15
- [Qemu-devel] Re: [PATCH RFC 0/4] Dumping traffic when using netdev devices, Jan Kiszka, 2010/07/16
- [Qemu-devel] Re: [PATCH RFC 0/4] Dumping traffic when using netdev devices, Anthony Liguori, 2010/07/16
- [Qemu-devel] Re: [PATCH RFC 0/4] Dumping traffic when using netdev devices, Jan Kiszka, 2010/07/16