Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720110

Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when using PPv2.2

Path csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Antoine Tenart <antoine.tenart@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when using PPv2.2
Date Fri, 25 Aug 2017 16:30:02 +0200
Message-ID <uinMu-5ah-31@gated-at.bofh.it> (permalink)
References <uinCN-556-7@gated-at.bofh.it> <uinCN-556-5@gated-at.bofh.it> <uinCO-556-21@gated-at.bofh.it>
X-Original-To Andrew Lunn <andrew@lunn.ch>
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50"
Content-Disposition inline
User-Agent Mutt/1.8.3 (2017-05-23)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 71
Organization linux.* mail to news gateway
X-Original-Cc Antoine Tenart <antoine.tenart@free-electrons.com>, davem@davemloft.net, thomas.petazzoni@free-electrons.com, gregory.clement@free-electrons.com, nadavh@marvell.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, mw@semihalf.com, stefanc@marvell.com, netdev@vger.kernel.org
X-Original-Date Fri, 25 Aug 2017 16:29:28 +0200
X-Original-Message-ID <20170825142928.GB31512@kwain>
X-Original-References <20170825141420.14027-1-antoine.tenart@free-electrons.com> <20170825141420.14027-2-antoine.tenart@free-electrons.com> <20170825141939.GB30922@lunn.ch>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1720110

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Andrew,

On Fri, Aug 25, 2017 at 04:19:39PM +0200, Andrew Lunn wrote:
> On Fri, Aug 25, 2017 at 04:14:17PM +0200, Antoine Tenart wrote:
> > The mac address is only retrieved from h/w when using PPv2.1. Otherwise
> > the variable holding it is still checked and used if it contains a valid
> > value. As the variable isn't initialized to an invalid mac address
> > value, we end up with random mac addresses which can be the same for all
> > the ports handled by this PPv2 driver.
> > 
> > Fixes this by initializing the h/w mac address variable to {0}, which is
> > an invalid mac address value. This way the random assignation fallback
> > is called and all ports end up with their own addresses.
> > 
> > Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
> > Fixes: 2697582144dd ("net: mvpp2: handle misc PPv2.1/PPv2.2 differences")
> 
> Is this patch alone sufficient to fix the problem?

Yes it is.

> Ideally, you want a minimal patch for stable, i.e. -net, and a fuller
> fix can go into net-next.

That was my intention (providing a minimal patch for stable), and I
asked about this approach in the v1. Dave told me to resend the series
to net. Maybe my questions weren't clear enough.

So probably the best way to handle this would have been to send 1/4 to
net and 2-4/4 to net-next (but then there's a dependency between the two
series).

Let's wait for Dave's answer, I'll respin if needed so that it's easy
for him to apply it.

Thanks!
Antoine

-- 
Antoine Ténart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net v2 1/4] net: mvpp2: fix the mac address used when using PPv2.2 Antoine Tenart <antoine.tenart@free-electrons.com> - 2017-08-25 16:20 +0200
  Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when  using PPv2.2 Andrew Lunn <andrew@lunn.ch> - 2017-08-25 16:20 +0200
    Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when  using PPv2.2 Antoine Tenart <antoine.tenart@free-electrons.com> - 2017-08-25 16:30 +0200
      Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when  using PPv2.2 Andrew Lunn <andrew@lunn.ch> - 2017-08-25 17:50 +0200
        Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when  using PPv2.2 Antoine Tenart <antoine.tenart@free-electrons.com> - 2017-08-25 18:00 +0200
  Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when  using PPv2.2 David Miller <davem@davemloft.net> - 2017-08-28 20:30 +0200

csiph-web