From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbdH1S0H (ORCPT ); Mon, 28 Aug 2017 14:26:07 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:45170 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbdH1SZw (ORCPT ); Mon, 28 Aug 2017 14:25:52 -0400 Date: Mon, 28 Aug 2017 11:25:51 -0700 (PDT) Message-Id: <20170828.112551.201104088584393782.davem@davemloft.net> To: antoine.tenart@free-electrons.com Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, 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 Subject: Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when using PPv2.2 From: David Miller In-Reply-To: <20170825141420.14027-2-antoine.tenart@free-electrons.com> References: <20170825141420.14027-1-antoine.tenart@free-electrons.com> <20170825141420.14027-2-antoine.tenart@free-electrons.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 28 Aug 2017 11:25:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antoine Tenart Date: Fri, 25 Aug 2017 16:14:17 +0200 > 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 > Fixes: 2697582144dd ("net: mvpp2: handle misc PPv2.1/PPv2.2 differences") Applied and queued up for -stable, thanks.