🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19812

Re: [PATCH net-next v2] net: sunplus: also fix the byte order of 1c:50:1e MAC addresses

#19812
From: Andrew Lunn
Date: Fri, 20 Nov 2026 13:00
22 lines
9188 bytes
On Fri, Nov 20, 2026 at 09:39:01AM +0200, Andrew Gaylard wrote:
> The driver reverses a MAC address from the OTP when it finds the
> Sunplus OUI fc:4b:bc at the wrong end. Newer SP7021 chips have
> a different Sunplus OUI (1c:50:1e), possibly stored in the same
> reversed order, which the driver does not recognise. If the reversed
> address has the multicast bit set, the driver rejects it and uses a
> random address; otherwise it uses the reversed address as it is.
> 
> Handle both these OUIs. An address that already starts with either OUI
> is left as is.  On chips that used the reversed address, the interface
> now gets the correct address, so configuration tied to the old address
> (DHCP reservations, udev or networkd rules) will need updating.
> 
> Tested on chips that needed each of these OUIs to be reversed.
> 
> Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
> Signed-off-by: Andrew Gaylard <ag@ffroot.co.za>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <41c7251f-f201-474a-9a8f-1e366fd64c77@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367943-linux-kernel-netdev=dewy.ru
References: <20261120073901.21656-1-ag@ffroot.co.za>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367943-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2] net: sunplus: also fix the byte order of
 1c:50:1e MAC addresses
Date: Fri, 20 Nov 2026 14:00:57 +0100
Organization: Usenet Network
Message-ID: <41c7251f-f201-474a-9a8f-1e366fd64c77@lunn.ch>
References: <20261120073901.21656-1-ag@ffroot.co.za>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3163417"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kzcegMogDi12rjJK2LGbPu6R2Lo= sha256:A9ftTZCZJZ73iMElmZ4taSzw75Wnr2J7zCXyYpMe0wc=
	sha1:13zZ12nq7nQXKWtq+YTdCSZKKLk= sha256:Z5j72z5Z8lDrrlFE1x5BCVBXNSTUJU1W0q5m/oJOslk=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 59CC31159A3; Fri, 20 Nov 2026 16:01:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GXv6YF2DKDwt;
	Fri, 20 Nov 2026 16:01:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-367943-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 7DEF611597C; Fri, 20 Nov 2026 16:01:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 36E9D626092; Fri, 20 Nov 2026 13:01:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795179676;
	b=nIM1FCJBWMS+1H1UZi+BeuHN7vBMeppKSt0q7QK30w8sKL7q7kFOpumQ/4bygDVSrlL0
	 HujsX1jQ+3B7Nqgt/fcxnTy0OwZYKaG3r3QmSqP8kQIJGllSYwcLwrVb/9VQu2p2EFQYe
	 OXh4fo9xVYT1tMnAkhX5SaiGh2OeDEjKC0yBf/fl2WrNsmg8QqffL7jXKHrtdGzgy+Ur6
	 wcIjHGdMQhjNoE+JZadYVqT8TA43j4iYtZewrhwXhAE7o94y3b/u/qXXtNhyYp1EBVoC0
	 KabxX8xKMsmpAi6xqir61f7cwp4pG2vqUWVBix89tKqu/rp/H4F2nEsduzTkfZhgwwQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795179676;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=GRDyBWMO0iFPzHQxYTxXh7iJWh7mjq8TmKnnHRVSqRk=;
	b=TZurHxub17eQRuN5HunLHscKkfgKUyAC3ncu9WKNnSi6YndQCciffZSJV8NeVjEPvwQO
	 Mfru1o3nM/oXwk4wY/RtxevfbAV8VEczHGOYdp1DYrp/8hLeNrH6XagYu8CYJe1a4+LWL
	 n4m8Pd9ArsNODnNIoyiFO+87oaYnG3zNb28nedS9jT5IxZ8ipPzBz66Fb14wL/kvFortw
	 U3VprzajloMRJPzexABB/bmWazBfSZjUi4xnaY8Tq3p4tHVQIR00kGl5eRG7EGHP3NzJL
	 BRf/p+YLbpaKHWtMjfGa8L68nwoAF6tWkJ3lkUQ/1WRQRiGRvGwmcxHUDue4gxrbBng==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DN0EmNg0;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE70606A333;
	Fri, 20 Nov 2026 13:01:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DN0EmNg0
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795179670;
	b=DBL/sqLuoIMN5ZkgcZ60PRek2E2naAodeLcdMOljpcDU33nVC+wbWENwR4Ku+Fs87vae
	 aNd0Lv6bNvGbWUYk2JIBYnMVmIB/uJholZyRdJf+uAyXuSW/hrd5MG9rpsaaUGzk/Fr8o
	 wiEoRQG6SE2NVPexLYaloB4TNRsAy5UK7yLV+KezWAfIAZKLGv+tURLD3u+5QugddRndn
	 2XZbZvTCdVvRcwXYcB6qyuF8qpochrtyyt1miFLsistAKkGXKurrWUtM5zCpWdFA7Kt7J
	 Xlzicl0EHQ0we8ISbc5MpDE3Z0PjgvmF26Jc3RGbIPteqO5jl46TWTWoQZLzK4/BkAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795179670;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=GRDyBWMO0iFPzHQxYTxXh7iJWh7mjq8TmKnnHRVSqRk=;
	b=OAyj4cWju8FlFn4e0j4WIs98Rz0YV7mMzZa7nEOBKjnwQyTPvIfsu5UhXDzZi7dPkT4i
	 laTJ90nDtxpEWgsTMy/jIcaW/7Ww2alc65xW0v0o36j8O0KJyM2l/H3jB2/IhPuBsLRaZ
	 O3D5vX+x9WNvyWNwdIRFdc0e+mKG7NnVrJ7GDvwMfPZwi5gGwAE1dcPNq/N2XMtySCezc
	 WtLywCb/ZlLQ5dEVEqcyK7Y2rrwb4dBF3gandid6X4ZMUbUpjA0jQ7jlGy4QLmcYFYN6S
	 yGazaM8NQYms9lJrSKAoTMKVqN4WKQET3V6XFgiqJ0qypqDEKQspwl75mUF4x5CqSiQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DN0EmNg0;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85242606A320;
	Fri, 20 Nov 2026 13:01:10 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85242606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-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=GRDyBWMO0iFPzHQxYTxXh7iJWh7mjq8TmKnnHRVSqRk=; b=DN0EmNg0hi241pGeZIUEwC3chZ
	d9xqtqp4XFdt/lRY88xO//glMrtum3jcnQlHqcMNufLNFIfZd7x5n5ACAgRqgGX/SojAcXki+QOKH
	h08EDwpke6xdotZVeKPfz16RTGLpfVUTFqmWLl1vVJqFh62sDnCOrGfEXRtk563HI3rc=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xUOEb-000IFT-BI; Fri, 20 Nov 2026 14:00:57 +0100
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Daniel Machon <daniel.machon@microchip.com>, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261120073901.21656-1-ag@ffroot.co.za>