WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] vif tx drops

To: brianw@xxxxxxxxxxxx
Subject: Re: [Xen-devel] vif tx drops
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 14 Oct 2004 09:21:16 +0100
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, David Becker <becker@xxxxxxxxxxx>, Xen Devel Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 14 Oct 2004 09:30:23 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Wed, 13 Oct 2004 22:07:57 CDT." <1097723277.30147.96.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
One option is to have the backend interfaces pick their MAC addresses
from a well-known range: e.g., AA:00:FF:00:00:00 + <vif id>.
These wouldn't need to be unique -- they'd never be seen 'on the
wire'.

The random MAC allocator would never pick a MAC in that range, and
xend could ensure that manually-selected MACs never fall in that
range and print an error if they did.

It's a shame that the backend needs a MAC different from the frontend
-- but if it doesn't then the bridge code complains. :-(

 -- Keir

> I temporarilly solved this by converting the IP to hexidecimal and
> setting the first 2 bytes of the mac to DE:AD. Unfortunately xen
> increments the 3rd if you set the mac. We need a way to set the mac on
> both ends of the vif device. 
> 
> Maybe we can have things this way. options...
> a: set the mac on one end and have a standard "increment" bit somewhere
> higher up(say first byte).
> b: set the macs on both ends
> c: set a specific range of macs to use
> 
> Either way xen really should test (not certain how exactly) to see if
> it's already in existence prior to using a mac that is dynamicly set.
> Not testing is playing russian roulette IMHO (as some including myself
> have found out already).
> 
> Opinions?
> 
> On Wed, 2004-10-13 at 15:17, Keir Fraser wrote:
> > > 
> > > " This is *definitely* worth checking
> > > " out at this point, and can be fixed by picking your own MAC addresses.
> > > 
> > > Yep.  How big a space do you randomize for mac addrs?
> > > 
> > > # grep -i AA:00:00:24:22:F3 a
> > > batch009 (172.16.12.19) at AA:00:00:24:22:F3 [ether] on eth0
> > > batch075 (172.16.12.85) at AA:00:00:24:22:F3 [ether] on eth0
> > > 
> > 
> > I think AA:00:00:00:00:00 - AA:00:00:7F:FF:FF (i.e., 8 million
> > addresses). But the random-number generator is crap.
> > 
> > You're definitely best off generating your own if creating any decent
> > number of VMs.
> > 
> >  -- Keir
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>