[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4A65C592.4060103@Voltaire.com>
Date: Tue, 21 Jul 2009 16:41:38 +0300
From: Or Gerlitz <ogerlitz@...taire.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: "Michael S. Tsirkin" <mst@...hat.com>,
Jamie Lokier <jamie@...reable.org>,
Anthony Liguori <anthony@...emonkey.ws>, qemu-devel@...gnu.org,
Jan Kiszka <jan.kiszka@....de>,
Mark McLoughlin <markmc@...hat.com>,
Dor Laor <dlaor@...hat.com>, netdev@...r.kernel.org
Subject: Re: [Qemu-devel] [PATCH] net: add raw backend - some performance
measurements
Herbert Xu wrote:
> On Tue, Jul 21, 2009 at 03:01:42PM +0300, Michael S. Tsirkin wrote:
>> the thing to check then would be that some kind of misconfiguration
>> does not cause the bridge to flood your packets to multiple interfaces.
> Right, we should make sure that the interfaces are not in promiscous mode
Michael, Herbert,
First, I don't see how flooding can happen in my setup, I have only two interfaces on
the bridge (see below), a tap and a NIC (vlan) and the bridge will never attempt to forward
a packet through the port it was received. Second, the bridge always set all interfaces
attached to it to be in promiscous mode, see the call to dev_set_promiscuity() from br_add_if()
but this doesn't mean it applied flooding, it does mac learning...
Or.
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0030485f9977 no eth1.4009
tap0
The VM mac is de:ab:be:01:01:09 and the remote node mac is 00:30:48:65:a6:2b, you
can see that these two macs were learned by the bridge and hence no flooding is expected.
# brctl showmacs br0
port no mac addr is local? ageing timer
1 00:30:48:5f:99:77 yes 0.00
1 00:30:48:65:a6:2b no 12.50
2 06:f5:76:64:a0:d4 yes 0.00
2 de:ab:be:01:01:09 no 0.00
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists