🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25870

Re: [PATCH net-next v6 2/3] net: cortina: Add CS7542 CPU network datapath

#25870
From: Andrew Lunn
Date: Wed, 02 Dec 2026 16:11
23 lines
9727 bytes
On Wed, Dec 02, 2026 at 05:42:58AM +0300, Fil Dunsky wrote:
> Hi Andrew,
> 
> Thanks for the review. The Cortina NI has one MAC_ADDR0 register for
> octets 0–3 and one MAC_ADDR1 field for octet 4. Each GE port has its own
> CONFIG2.mac_addr6 field at 0x18 + 12 * port. The vendor driver describes
> the resulting address as the source for generated pause frames

Pause frames don't really matter what address they use, they never get
passed the MAC into the network stack. They also use a link local
distination, the source address is ignored by the receiver. So pause
will probably work with any random source address.

> and
> the address for WoL detection.

WoL is going to be messy. Basically, if the user has changed the MAC
address, you cannot report the MAC supporting magic packet. Or you
need to somehow give the user a way to know what address it is
listening for. Maybe just rely on the PHY doing WoL?

	  Andrew
Technical Details
Message-ID: <cd91771e-9117-45c8-8923-039f8af7e6ea@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375922-linux-kernel-netdev=dewy.ru
References: <20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com> <20261202-b4-cs7542-ethernet-v6-2-a8c1905efa9f@gmail.com> <8fc46e0b-0b85-4bad-9c78-58cb5f2dd2d3@lunn.ch> <179617937855.5.11721813140107507027@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375922-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 2/3] net: cortina: Add CS7542 CPU network
 datapath
Date: Wed, 2 Dec 2026 17:11:09 +0100
Organization: Usenet Network
Message-ID: <cd91771e-9117-45c8-8923-039f8af7e6ea@lunn.ch>
References: <20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com>
 <20261202-b4-cs7542-ethernet-v6-2-a8c1905efa9f@gmail.com>
 <8fc46e0b-0b85-4bad-9c78-58cb5f2dd2d3@lunn.ch>
 <179617937855.5.11721813140107507027@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2007176"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Ii0sYEpmT1wYhdpdMUgii6UpIW4= sha256:lNAYW58wGQNQQCVScItkesRwjHztV4RGpMK/iapmBjA=
	sha1:nD8aRzaKEvF2SqmB6EYr7TFc4ig= sha256:kwbid5MjZGwOp6L6rPmbvDn+JkyESGJawUIl1UhOCwY=
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 0B4E61176AA; Wed,  2 Dec 2026 19:11:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 rnD6ZZ7hQWqB;
	Wed,  2 Dec 2026 19:11:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375922-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6979A117682; Wed,  2 Dec 2026 19:11:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 634662A252; Wed,  2 Dec 2026 16:11:25 +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=1796227884;
	b=dwXicB3kkxt9s6upidlaat7oE/wdLu8m3LqoiMHjOq9ECbq14aVa+SK9k0TOnJLF671c
	 R96N/TOU7rhNu0B+GinY89lZ9vahVXPoib6PjRtqonEEt7vHCckgMVbqg9cDD9eoGyrAS
	 SIJKUZkk69on8yV9yGjiCJq2LM3/BM4ko/J4vMp52BVBHmUGUNkWzgKM2KEujtcpnmcJu
	 PS1agcsH+OQKMY45qwbdGRZoUTdGYWljD5zsOaRVLT/aRLaUxFqF/K6Py4X/xKAN4N+hK
	 S4iShBprSMmksdg5+ABwZl73tMy+W05I9Y31r+sy7pT/3zr1GLXtbZmqZxUS/MDdhaA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796227884;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=69IMlxd1yyzCik/ilOvlhVjJOKvIow1TWfSAjqdXKAs=;
	b=pvupdIBXvgpXnOmThuNucuObTbt+baR60GXZHSaF2rxlEXB3AGl1Cc+u9heqZW1gnfSd
	 QK4FT6CylzVBO6E6l4EocTJMiKfhA04xcEIPVVnD0yaCz7/ynvi/JRvGFDkSDMCdXqotZ
	 wYoSSV7S0g6XEmu35uCxV4xFqHM8JEaM3FdX6rGXaLROMk1wCx9/DgXbVouDlBIJ2vakc
	 GWuJ0jcj9MZzZC6iltT+d+zDVFqzugsR9UTzxtAMdLIv5hFzu/Can/LTqUDQGxSMA9b4U
	 9KoHibLJGs36Ujjfz9jS88nIkkobAsgBxa31LTmuaJKhuqr9N/9HZdjphQhqVwPaaMw==
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=SXsGccrT;
	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 BB5B0606A336;
	Wed,  2 Dec 2026 16:11:24 +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=SXsGccrT
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=1796227883;
	b=rt3hbUs1EtdwmHVD2ZJusWEfVFMWGTAMoYI0V+0J5OUg5RESGda0XALnJSWayE5/t0jq
	 4V+epNKABPKVhuGVfgsWpcFNh+J6T5tOOXgRhLhz9aYGZkRrg4voDbB9GeSbTlmwMiUS3
	 RQvj1VQbSQaKFDeNlJyk3+Iv/2YAtNvB88/AWKEZZDkEX/uuwBm61OKtJdQ4LeM/GMCyL
	 zTXl+ZQz0tJXW+K9Sxopjvj2wFf+vSdtUl9kxBZ88jFZfvJ14OjR6HpUX12IOQEk1nuIl
	 Jb5fzWdXJAlOLTBY4DscJUspFD8DaNmyRo/FoPzxoHM17eDIT2PrihZMEVqrvkvQjkw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796227883;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=69IMlxd1yyzCik/ilOvlhVjJOKvIow1TWfSAjqdXKAs=;
	b=AyYxNqsQCRC7GRAlai/RIPpw5sfoSra2w/vU7F6f6e6fCLa8yqSiId8T8GAXIGHk7NmY
	 s7FAPXVMjTG27iGY/6a741Hl97RXzmoJ9ZUxbri9+UvF2x2xAhXC+DoW+LUol65Cx9fjZ
	 6dXSObII9mRxmvGMGFFhbi27T9yCPbvmBdv6aKzpdWJGAjU/Gt+WyTsQpl56YCX4+Xugj
	 cNM0rJu2IVsohE2YbUqX1aKN+8teBh2yvJNqQNkzmcWVx4PBWIUu4eE1iSYf3cZdzLLQP
	 Hzizf9zRtw4pjXzI3+mTU0fTQXiR5HCE/bkOAlUoBGl3WY/5DUbgq/4bVnVcl8YpQ8g==
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=SXsGccrT;
	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 7A604606A31A;
	Wed,  2 Dec 2026 16:11:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7A604606A31A
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-Transfer-Encoding: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=69IMlxd1yyzCik/ilOvlhVjJOKvIow1TWfSAjqdXKAs=; b=SX
	sGccrT/tAM4bT7hazSsgIyqonMWogirMhVJ4XrZfnIeVHm8NeYzJaEDZq4dizwuuh+p9Ml0S8FGQn
	vOYbTvLcq8txyb4IVoHfX54gpgeWsM7UdCm0fsp4o/XUuiZ9PgOQ1wMShBMKdzPiQVHOSNojkmFGQ
	DGM/Wu4nePYJ3k4=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xYmvF-002rHk-20; Wed, 02 Dec 2026 17:11:09 +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>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Linus Walleij <linusw@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Hans Ulli Kroll <ulli.kroll@googlemail.com>,
	Russell King <linux@armlinux.org.uk>, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, 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: <179617937855.5.11721813140107507027@gmail.com>