Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp149402lqp; Wed, 20 Mar 2024 17:13:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWB1SX88EkmZg2a5gSjc0uQi7e/QRQ8lKHqORP32h9Vv3PEiakexZdU0q1edZT5z1YnzRpJNk/zTMYQJEnpxfuWy2djwGzmW/tVTQBbJg== X-Google-Smtp-Source: AGHT+IFPnlx2FDueMvixgBN5BMDefrx8y453mSephdApqBRDp7GpjXJu/f/BBH0NpgI5KdBXxZUM X-Received: by 2002:a05:6402:1512:b0:56a:2c28:dd86 with SMTP id f18-20020a056402151200b0056a2c28dd86mr6476565edw.23.1710980013783; Wed, 20 Mar 2024 17:13:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710980013; cv=pass; d=google.com; s=arc-20160816; b=brKliGIGwynMXeJmkd/fyhzBs0FBVnBe7APOADpBgacjrqoJp/jCuxQUf6G/c0/i7O MI749kesB4t1t8Rvnnj0G+SPkR+YmMpB1pkW1LWj7NLcQPJlBeJCK25bt/RB15y8jdLy SatpqCOO4oSGBnoUPj/1SwoXADYlg04dmDoEORyQyfrqfBDbfj1ZSMFDjQRPCsl9lJRo TG/D9GyE9IkHIuH5cSudeCh/ze/y+YuJxXnHS+qgEUaRnhBejtbXDRzsatG6j2crjyBn YiI3+spfA0wRRS8Yivu2ZQmcY57yE9cWidoof4ag/jUXlTM/9cK1w9wPnoL6EhNRgC63 666A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gv/K5XLmRYXt/pW1HUc3KeLmTK/ySVp7kwxWVc+y47c=; fh=dK5q1+5K3h6mWoDEa7jl8dYP3xDFhMYF5vZ9uVV0gSI=; b=k6eA3VYonxQhDIKN6C0hHx2RwTHeeNIW2551e52KKG7kAzptEUan3VM16IlOIrxhcX mxFwdIqyROIDxMGC2UnxRGZyax7io0NxQKawPi9FX44vfasfqJ5QxdDCcR4HceoeFldH 4wiWys3vOFafOtVmNaCqrjyknUvrO/kJYsENiZsUQmz3abaRbGV6Kq2tfTEkzvu8wYvC 4P3kaJRP9+a3Oprss2XisGAZieyaW5toyTNtT32Lk+PNhMl0Zzn/osMZzEiGFXEtItXt +z9y58/5hE6muOQtl9gm/p1fBXKgQw9GMn1D75ZvXUuKLmKpicy18cBCItrKtNrynTAw rwaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fOYpeqKe; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-109512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n8-20020a056402434800b005687e9a08edsi7052454edc.341.2024.03.20.17.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 17:13:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fOYpeqKe; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-109512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6A9761F20FC5 for ; Thu, 21 Mar 2024 00:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B52E417CD; Thu, 21 Mar 2024 00:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="fOYpeqKe" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D44D181; Thu, 21 Mar 2024 00:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710980004; cv=none; b=AgV+T7Ih9Gm71trdAvQ0g6ebyw6KQvNU8Xka+XfyhIOBVGInKJwOmYsILqzTRQsUxjY+m9Ptd8tEiLTA6z+VgIvsxgXHCJ/ohzJ+tofv54V5Lsckl4vJalf4BudtGSDS59HkVJ05md3wiOkeq0DoVMPSKVtwqPPCqsoYsZqgsBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710980004; c=relaxed/simple; bh=idt34RCsmjQa9sg1HF413GfcyPC/eDnTis7MJWPyj5g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PycABMlEW1zZCkBZowjviwuN44y37MQNsl7x5TIAxjh/wPcUVNpPto6Cg5jyVOokJMJpS0Mbo6sC64scfOijGz8CcFzLXqGFhSXp9SK1S06tcPwz/R8v7uOzP6X0i4ZKgyg1uzVKaARhjbO1aknnLrdtb/LoDyHPnXZaTffH4qQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=fOYpeqKe; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=gv/K5XLmRYXt/pW1HUc3KeLmTK/ySVp7kwxWVc+y47c=; b=fOYpeqKetM3L0Xo5Efv6ZGCPO/ mfkTT387NHowiUY3ZFCMinZYn8lf1Wq0AN6ghtcZYekBTkJ7GKyhXC6s8U0on1Z30IxwKtuOtZz6L 4D5APpuj/IR0xP2YRY0CZcWFwq98rjbvt9QGoBQqqk0wp0QBV0UYF7tRi2MZDW2eDwOw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rn63R-00ApGM-4B; Thu, 21 Mar 2024 01:13:09 +0100 Date: Thu, 21 Mar 2024 01:13:09 +0100 From: Andrew Lunn To: Elad Nachman Cc: taras.chornyi@plvision.eu, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kory.maincent@bootlin.com, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, przemyslaw.kitszel@intel.com, dkirjanov@suse.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] net: marvell: prestera: force good base mac Message-ID: References: <20240320172008.2989693-1-enachman@marvell.com> <20240320172008.2989693-5-enachman@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240320172008.2989693-5-enachman@marvell.com> On Wed, Mar 20, 2024 at 07:20:07PM +0200, Elad Nachman wrote: > From: Elad Nachman > > The switching ASIC router HW unit MAC Source Address is configured with > 40-bits of MAC base address in its registers (done in the firmware code), > requiring all ports doing L3 routing in HW to have the same upper 40-bit > MAC address. > > Since each switchport MAC address uses the switch base mac address and > then adds the physical port number to it, Force the last byte of the > switch base mac address to be at most 127, so when adding to it, we > will not wrap around the previous (more significant) mac address byte, > resulting in a warning message. > > Fixes: 501ef3066c89 ("net: marvell: prestera: Add driver for Prestera family ASIC devices") > Signed-off-by: Elad Nachman Reviewed-by: Andrew Lunn Andrew