All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Nikita <sample.n@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: unable to change mac address on vif interface
Date: Fri, 21 Jan 2011 14:46:55 +0000	[thread overview]
Message-ID: <1295621215.14780.249.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <AANLkTimPHtpw8kb9DCzeiBVdCMWeLnnSL4aCsAZUogqO@mail.gmail.com>

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.

      reply	other threads:[~2011-01-21 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 14:26 unable to change mac address on vif interface Nikita
2011-01-21 14:46 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1295621215.14780.249.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=sample.n@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.