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] unable to change mac address on vif interface

To: Nikita <sample.n@xxxxxxxxx>
Subject: Re: [Xen-devel] unable to change mac address on vif interface
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 21 Jan 2011 14:46:55 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 21 Jan 2011 06:47:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimPHtpw8kb9DCzeiBVdCMWeLnnSL4aCsAZUogqO@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <AANLkTimPHtpw8kb9DCzeiBVdCMWeLnnSL4aCsAZUogqO@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2011-01-21 at 14:26 +0000, Nikita wrote:
> In version 3.x it was possible to change the mac address on the vif
> interface in dom0.
> In xen 4.0.1 (SLES distribution) an attempt to change mac address has
> no success. 
> ip link set vifX.X address XX:XX:XX:XX:XX:XX
> RTNETLINK answers: Operation not supported
> 
> 
> Is it bug or feature of xen 4?

Neither, it is a bug/feature of the kernel you are using.

Looking at both the historical Xen kernels and the newer pvops kernels
it appears that netfront has always correctly implemented the necessary
driver hook (->set_mac_address in older kernels and
->ndo_set_mac_address in newer) while netback has never done so.

What domain 0 kernel version are you running? Which version worked?

I suspect using the generic eth_validate_addr and eth_mac_addr
implementations for the ndo_set_mac_address and ndo_validate_addr hooks
respectively in netback too will be sufficient.

Can you cook up a patch?

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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