🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #27369

Re: [PATCH net-next 1/2] net: bcmgenet: keep FCS forwarding when exiting Wake-on-LAN

#27369
From: Nicolai Buchwitz
Date: Sat, 05 Dec 2026 12:16
23 lines
9407 bytes
On 5.12.2026 00:00, Florian Fainelli wrote:
> bcmgenet_wol_power_down_cfg() forces CMD_CRC_FWD on so that the
> UniMAC can match magic packets, and bcmgenet_wol_power_up_cfg()
> unconditionally turns it back off and clears priv->crc_fwd_en.
> 
> That is fine as long as the driver never forwards the FCS on its own,
> but a following change makes this depend on NETIF_F_RXFCS. On a
> successful WoL exit bcmgenet_resume() does not re-apply the features,
> so clearing the state here would silently drop the user's setting.
> 
> Derive priv->crc_fwd_en from dev->features when leaving WoL and only
> clear CMD_CRC_FWD when the FCS is not wanted. Since NETIF_F_RXFCS is
> not advertised yet, there is no functional change.
> 
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
Technical Details
Message-ID: <e8f1454b69c0cce6cff29701a5e18cab@tipi-net.de>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377974-linux-kernel-netdev=dewy.ru
References: <20261204230048.3554713-1-florian.fainelli@broadcom.com> <20261204230048.3554713-2-florian.fainelli@broadcom.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-377974-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 1/2] net: bcmgenet: keep FCS forwarding when
 exiting Wake-on-LAN
Date: Sat, 05 Dec 2026 13:16:17 +0100
Organization: Usenet Network
Message-ID: <e8f1454b69c0cce6cff29701a5e18cab@tipi-net.de>
References: <20261204230048.3554713-1-florian.fainelli@broadcom.com>
 <20261204230048.3554713-2-florian.fainelli@broadcom.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3022700"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:l+zcAYxFcuT6QJrrZTqQJrv/l4A= sha256:f4x3mltRBubBoDF++zB/qwvFOLatN/IqiPtJT2NR3eM=
	sha1:079GOriTBnDkztoHE3hWgRs1erQ= sha256:SmCFsJhxFbdUU538seq77dnLYu61I1iTNQ94ahCVEoQ=
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 B5A77117E0F; Sat,  5 Dec 2026 15:16:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.299
X-Spam-Status: No, score=-3.299 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.001,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
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 tI9YkUh2Mrpz;
	Sat,  5 Dec 2026 15:16:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377974-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id B75EC117DED; Sat,  5 Dec 2026 15:16:26 +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 3402C36412; Sat,  5 Dec 2026 12:16:22 +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=1796472982;
	b=bc8rVnun9hlc3yMGypZ5o5746dbdPK+/K+9v6ouV1D+/OfVBFAd4oHn7r4yjms/43cJa
	 oSIdkBaDKcMq38HCRDa9WKwyoQ4C67DDsSq+M48R9zKmjkHV080H1iPMhFwHeMalnZtep
	 PuiBR5XbbYvw/LGphY3EA4ToactOfjsgn6lS71FNFJKSJ7G1JjbJftrM0qvuUJFwcvXIp
	 VtSGMyzRVyuYenOnU4RGyMedvJpS9h1p2rTZdPyWKoYw6ar0h4uXD7xhFpX0xyLERpYMD
	 YnnPyZNp+JZToov9tUxMRIQMnrZYXBXStqK6z/fqEVHPXBbkgG8dgzfNvypWYMYxEBA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796472982;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=XFbATJdHyBHshiVKdPvX8g/OfUO21XZ9LLVilu+K0PE=;
	b=3jV4GV+tlDB5E/aAlVZHaBKSfpVjNceYpy0JVCm8Iy40MXKLIde6YkHIk8Ig99RVJ87m
	 OpH0StwTIdqOmU7en50av+qFXNrp2nWH+nE78uoqC+6F3ubf6qSk1l+dcg68OFhtt7j+p
	 YvFXpf3tEvLraHXHwcSzQoud0u4rnt10bA7a18RPiPv2Ni4s9vJkXFJlmHZ8GO7Z7DLXL
	 AoWi9P3Jqc96bsvyCsw8p54Ge7Zvhz1V7tMIslNm/IVyGhgqUCXc5S42A3Hvlh1T/+cR8
	 CrVeyEjvCtNAKwGPggiezgzGOcs0ZXk48WL+vW6shg0nmcOoar4Q1bfOVc1/n9SKv8w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=x8BypLSN;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 066B2606A33C;
	Sat,  5 Dec 2026 12:16:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=x8BypLSN
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796472981;
	b=wQcdWsHhE/w8dpaIRgisEzewvEqK0c1I/qJXiAeFQhWPMITPGbJYOB0ZelvkT+xDhhnj
	 MJbYMy4EPYu5mXhG013F46ycj6t9rIIXoHLR7btO9NxBShbaJRX9VhJ1FG3/oa1mvkpa+
	 zncV7nLdQpRMciccQVhXJ+56i1k2kbzcM23WKJvf25aop5/qq4IR7SngtAtSArQOS8bvU
	 hOE52mJjb9ZB58CtqufB1NqSJwBynFOriPoWXIfdPry9adwo0Ue+vgLsxCySfQ5+0vpfM
	 +Vv7PZbacEj4KF8Qj2ai0igzzF7ZRyE85/zKZsrf38Iu8Zog0m+Hi8zibWxnAnvWGCQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796472981;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=XFbATJdHyBHshiVKdPvX8g/OfUO21XZ9LLVilu+K0PE=;
	b=eC/Iswbtt/C8HRJymLsytqJHR/kEEsr3EVUsArA8Ch5ug+QpfYIJ5Ug8pb2AWIsj25c+
	 mhjTdF6THxhfc+ZDWT9qyhyYK3aXDAuaobdqSWu/rxqESPIOAe5ZUqsYwIuKS9DXF/SSc
	 0vE/yXiKid/30yUYNYqYBUHDdhDfPrd99Z/ic8mKZ9Rels4E0GMqJyZrYj3YCxnUTOOrE
	 rrdinYTtH37zYe7ZFa1BmznOD/viMdy0E4PlBpHKrvD03AtLFcsDRnAq6XrGq0bUZiuKY
	 SQ3JGimGpBA6vBoRc75RNk28aW+kDLQdelgmUqktstVOplOmiSH4YvquBkd2A/ERTKA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=x8BypLSN;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA6FA606A322
	for <netdev@vger.kernel.org>; Sat,  5 Dec 2026 12:16:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AA6FA606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B4BD2A162F;
	Sat, 05 Dec 2026 13:16:17 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1796472978; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=XFbATJdHyBHshiVKdPvX8g/OfUO21XZ9LLVilu+K0PE=;
	b=x8BypLSN7L3XvCMz+BL/EKnhk1qpDTB6ArYVt+JkOakrmdXw5dQl0YNwffXnwH1Jk3pHzd
	Lf17pyyR4laUiLmIOFoqcdboWwac9ojPhJX10dAtha0GjOUXpU1kC6oxmy6q8FZp1bOK7O
	2VpveEKc8JGP+WGfWVOyhBcP/Tta+ycyW/gg14hf5m1lcJBqtDxMG+2Etn4DUrMZEXpYa0
	x16/WYJhNdzF1IbTKt4lRpPjMoTq59nsSgwjIj+IOMl4ruRhdULRT2JUEVNPQKYGKnjidz
	5hicH/GPqV+Y+SCqq/H5NY9rJ4KxFHuDA+leeCsOoPplCCQwAMxNJCdfb35P1A==
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-Cc: netdev@vger.kernel.org, Doug Berger <opendmb@gmail.com>, Broadcom
 internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, 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>
X-In-Reply-To: <20261204230048.3554713-2-florian.fainelli@broadcom.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3