All of lore.kernel.org
 help / color / mirror / Atom feed
From: 张胜举 <zhangshengju@cmss.chinamobile.com>
To: "'Yuval Shaia'" <yuval.shaia@oracle.com>
Cc: <davem@davemloft.net>, <fgao@48lvckh6395k16k5.yundunddos.com>,
	<vyasevic@redhat.com>, <netdev@vger.kernel.org>
Subject: RE: [net-next] macvlan: propagate the mac address change status for lowerdev
Date: Wed, 14 Jun 2017 23:26:14 +0800	[thread overview]
Message-ID: <000801d2e522$9019e2b0$b04da810$@cmss.chinamobile.com> (raw)
In-Reply-To: <20170613203408.GA3112@yuvallap>

> -----Original Message-----
> From: Yuval Shaia [mailto:yuval.shaia@oracle.com]
> Sent: Wednesday, June 14, 2017 4:34 AM
> To: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
> Cc: davem@davemloft.net; fgao@48lvckh6395k16k5.yundunddos.com;
> vyasevic@redhat.com; netdev@vger.kernel.org
> Subject: Re: [net-next] macvlan: propagate the mac address change status
> for lowerdev
> 
> On Tue, Jun 13, 2017 at 10:45:11PM +0800, Zhang Shengju wrote:
> > The macvlan dev should propagate the return value of mac address
> > change for lower device in the passthru mode, instead of always return
0.
> >
> > Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
> > ---
> >  drivers/net/macvlan.c | 6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index
> > 346ad2f..ade1213 100644
> > --- a/drivers/net/macvlan.c
> > +++ b/drivers/net/macvlan.c
> > @@ -703,10 +703,8 @@ static int macvlan_set_mac_address(struct
> net_device *dev, void *p)
> >  	if (!is_valid_ether_addr(addr->sa_data))
> >  		return -EADDRNOTAVAIL;
> >
> > -	if (vlan->mode == MACVLAN_MODE_PASSTHRU) {
> > -		dev_set_mac_address(vlan->lowerdev, addr);
> > -		return 0;
> > -	}
> > +	if (vlan->mode == MACVLAN_MODE_PASSTHRU)
> > +		return dev_set_mac_address(vlan->lowerdev, addr);
> 
> Do you think the following functions needs this fix as well?
> - alb_set_mac_address
> - bond_alb_handle_active_change
> - bond_enslave
> - __bond_release_one
> - macvlan_set_mac_address
> 
> Yuval
Actually, this patch fixes macvlan part. 
The other part is not so easy to fix in my option, you can try to fix if
possible.

BRs,
ZSJ
> 
> >
> >  	return macvlan_sync_address(dev, addr->sa_data);  }
> > --
> > 1.8.3.1
> >
> >
> >

  reply	other threads:[~2017-06-14 15:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-13 14:45 [net-next] macvlan: propagate the mac address change status for lowerdev Zhang Shengju
2017-06-13 15:53 ` Sergei Shtylyov
2017-06-13 20:34 ` Yuval Shaia
2017-06-14 15:26   ` 张胜举 [this message]
2017-06-14 18:35 ` David Miller

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='000801d2e522$9019e2b0$b04da810$@cmss.chinamobile.com' \
    --to=zhangshengju@cmss.chinamobile.com \
    --cc=davem@davemloft.net \
    --cc=fgao@48lvckh6395k16k5.yundunddos.com \
    --cc=netdev@vger.kernel.org \
    --cc=vyasevic@redhat.com \
    --cc=yuval.shaia@oracle.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.