Re: [ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2013-01-03 Thread Ben Pfaff
On Thu, Jan 03, 2013 at 04:45:14PM -0800, Ethan Jackson wrote: > > This will cause the Ethernet address of vports to change randomly > > whenever ovs-vswitchd is restarted. I don't know whether that is > > important. > > I don't think this is a problem. The ethernet addresses are really only > u

Re: [ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2013-01-03 Thread Ethan Jackson
> This will cause the Ethernet address of vports to change randomly > whenever ovs-vswitchd is restarted. I don't know whether that is > important. > I don't think this is a problem. The ethernet addresses are really only used in protocols (e.g. CFM) which will be pretty disrupted on restart any

Re: [ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2013-01-03 Thread Ethan Jackson
> I didn't notice this before but using sizeof mac here (and in the get > function) is actually going to result in copying a pointer's worth of > data so I think you want to explicitly use ETH_ADDR_LEN. > Good catch, changed. Ethan ___ dev mailing list

Re: [ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2012-12-27 Thread Ben Pfaff
On Wed, Dec 26, 2012 at 05:16:46PM -0800, Ethan Jackson wrote: > Letting netdev-vport manage ethernet addresses itself instead of > relying on the datapath has several advantages. It simplifies the > code, is significantly more efficient, and will work when there is > no longer a one to one mappin

Re: [ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2012-12-27 Thread Jesse Gross
On Wed, Dec 26, 2012 at 8:16 PM, Ethan Jackson wrote: > diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c > index acf7d18..a95e09e 100644 > --- a/lib/netdev-vport.c > +++ b/lib/netdev-vport.c > netdev_vport_set_etheraddr(struct netdev *netdev, > const uint8_t mac[ET

[ovs-dev] [PATCH 6/6] netdev-vport: Manage ethernet addresses in userspace.

2012-12-26 Thread Ethan Jackson
Letting netdev-vport manage ethernet addresses itself instead of relying on the datapath has several advantages. It simplifies the code, is significantly more efficient, and will work when there is no longer a one to one mapping from netdev-vports to datapath vports. Signed-off-by: Ethan Jackson