🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21889

Re: [PATCH net-next v11 4/8] hsr: Drop received PTP packets

#21889
From: Sebastian Andrzej Siewior
Date: Tue, 24 Nov 2026 15:10
37 lines
11087 bytes
On 2026-11-24 11:25:41 [+0000], netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
…
> [Severity: Low]
> This check does not look at port->type, so it also covers
> HSR_PT_INTERLINK. It also runs before both hsr_forward_skb() calls below.
> 
> Is it intended that a RedBox stops bridging PTP between its interlink/SAN
> side and the ring? A node that forwards in software also stops relaying
> PTP around the ring, and PTP no longer reaches hsr0. There is no way to
> opt out of this.
> 
> If this is intended, could the commit message mention the interlink and
> RedBox case explicitly?

I haven't look at Redbox handling in this case but it needs to receive
the PTP packet on the original interface with the timestamp and do the
usual magic while forwarding them on the HSR port. Should PTP packets
appear on redbox' network then they should be dropped instead of getting
passed on to the ring.
So nothing changes.

> The commit message also says:
> 
>   For the PRP configuration it is the ether type, for HSR configuration it
>   is the encapsulated protocol, that is checked.
> 
> In HSR mode, frames from the interlink port and from ports with
> NETIF_F_HW_HSR_TAG_RM are untagged. They take the else branch and are
> matched on the plain ethertype. The code handles them correctly, but the
> description is slightly imprecise.

Sebastian
Technical Details
Message-ID: <20261124151008.L8_t_dzd@linutronix.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370495-linux-kernel-netdev=dewy.ru
References: <20261120-hsr_ptp-v11-4-264c88f4f1d0@linutronix.de> <179551954166.3135.8484737548969907135@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370495-linux-kernel-netdev=dewy.ru
From: bigeasy@linutronix.de (Sebastian Andrzej Siewior)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v11 4/8] hsr: Drop received PTP packets
Date: Tue, 24 Nov 2026 16:10:08 +0100
Organization: Usenet Network
Message-ID: <20261124151008.L8_t_dzd@linutronix.de>
References: <20261120-hsr_ptp-v11-4-264c88f4f1d0@linutronix.de>
 <179551954166.3135.8484737548969907135@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4166412"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4UB0ZfEqQfSwV3RBpz529ocB8R8= sha256:MOc4fenu2rmbaVAhoR21+lND1D/t4HJJC8RGL2WcMOA=
	sha1:6KwT77lQAAZY36L3nrcPCY8/gYA= sha256:Rak1bUId1k15ofyOX+xgvLW8BHmqS3/Hf8jZKjNI6iA=
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 53E20125E1C; Tue, 24 Nov 2026 18:10:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=linutronix.de header.b=JqKkLzT3; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=xG8IPDAi
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 XWrYHRF9rE1J;
	Tue, 24 Nov 2026 18:10:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370495-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 265DD125E18; Tue, 24 Nov 2026 18:10:18 +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 3880A37C5C; Tue, 24 Nov 2026 15:10:15 +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=1795533015;
	b=MXm6Y4VIAHStrHWY2sOym6n6zuG6kXblfbcptOTZavt5zi9AZpk2abF3mHKOCw4nFifU
	 52dj8ZiGCHCmnVD0L/JiisWVcdDGyIuka9NtdIATnMyU5G98Vg+lOkxjFFc+U0SZLuERW
	 AHzinEeGiZUVeqZNJniddKahS6NVAy/8IvPtpEsN9Wb48PCM+5OOKbqdfcu8uBI3ufabE
	 a9P7Ie2ukcVBWbUA/56tIbaiz9jT8ohhqOBPjVecOMpvrLCkzwsPFTcvpxvwWFbIhn/kq
	 7yf0CBreoxpE+CFHt1vymGr9rv7EjwKSVINEs2vrVtZx1NpuA7Plj51fen+WupffYlQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795533015;
	h=X-Original-To:Received:DMARC-Filter:Date:DKIM-Signature:
	 DKIM-Signature: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=LUYshsaIeLQ3CbznfBj09T9GwFdN2mRZXw2njbxpUUk=;
	b=YQ7dpQks7VeDp7V8BkG1oAYBWFVK2ogwU+xAouBLDwTVud9GVlrWWZwwqijMs0FQrbxR
	 T84ENxmydf54xeD3Aktl06mi+IOgkzxxFLDb2YxC5w9zBkbNQPkwfgTFCpg8N1OKJ+Hgf
	 fZ1W/0eqMLy8QuEF5Zp3s/GzRLduvfxK/YZ37roT/D3SSTihm5Ff8H7yFutqHpWkiYOXR
	 Hzk4G21LTJzlmVqKAg/LCOGdYAsOk2jeR81zw6fmrhvcVA0L3b9Yx9IOU2lHRMzt+IFsx
	 IcBx22udAJh37SwJTAh+6PDadrV6aa03gqmj+qNs+n1n3Jm2TC8h0WMvD6+rsqQIcvw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=JqKkLzT3;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=xG8IPDAi;
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.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 0853A606A326;
	Tue, 24 Nov 2026 15:10:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=JqKkLzT3;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=xG8IPDAi
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795533014;
	b=lsD79FF0qa+4yo/tw+QG+n6xmg5rOMeVJNUC5wkgGUV27vgUIVz56SaqlBLTooydRW/2
	 E8kVaXUnAjbmRIGczoVGtmG01cD8uKTvwqQNYnxBaq+jsV5Xr1aRVac9z4GPNRZxveDxz
	 e7LANWz7Er1ehU/MbMDtBBMUKlwZrUAIRlhYt81kaJcantQWcrKSM3+bD9IrG6LP0ieGK
	 NHYGkGHD6bg3/C87xZc3cDwiREP6M1NRMiLXdVoH9pzDO0G3GuDnA3GEbNuqfqf+Enwp3
	 aApsw8K2TtY+NBD1jE8XfRK2dzSuNT2qIPdpGQWlLPKP3TAGOWxpD3r0Czp2f0Ffopg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795533014;
	h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=LUYshsaIeLQ3CbznfBj09T9GwFdN2mRZXw2njbxpUUk=;
	b=Co0bmufYdMmGwNpGwfBNVyoEO4DW7x0Ouue76cq3vhTGX0s55OOVGfzYi5pjzxPZbhV1
	 HBzh6wn5+SkkFAKz2enfdIuflQwQhpX0aRdAzVmLhlWG2aZEso7lz78egCZDR9ySzT0P5
	 ivOV4EUelwrkqmxLGXijFdCIEj7DFOoCyGQvMD46lbEyECSNUmUGqaiaEJmie8HlSd9ob
	 QFjVREZBRLK9vY2Yso6ScfqHCr/4PTqKFsF7w4HZyz4bAl/OyHF94YQcKbJ15HcXSXadt
	 YwgwOISz+uRIjgzgEh+Y/uqi3icVAVs7JSU87fNBivwgCYKBAigc9MrEHwpmVQ/DjjQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.de;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=JqKkLzT3;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=xG8IPDAi;
	arc=none smtp.remote-ip=193.142.43.55
X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE978606A323
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 15:10:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE978606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020; t=1795533010;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=LUYshsaIeLQ3CbznfBj09T9GwFdN2mRZXw2njbxpUUk=;
	b=JqKkLzT30zIlcCk8WL0pwUc4ZIu5eBNZARQwtsEFD4JHN6CGRkQl2p8NwTPpUI3tNAUGTN
	gi4Bzo0CuRC63a6IXsv18XgaVt9ShWW08DOgrY03WahWh3Qnu93WcdRVH/nFiHzrh6PJU5
	liyrXxzJ1mQ2d88lwJfoOmFDEznun/nBMKkOfO6UVhdfQAPvcGzFKOPdAhThJm4rHvFLjs
	AjA9stwO+UM9mOUNj0JiRaCqZ7v/kn/1g3ggfbmGl3COtRgevWv51TBMI1trYi9D4a3yCI
	t6rRBGocEEq9SN6209mlo9A/KoFmMaeRI7WtH+JsLvORDChy267vHfumjFSSUg==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1795533010;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=LUYshsaIeLQ3CbznfBj09T9GwFdN2mRZXw2njbxpUUk=;
	b=xG8IPDAii66pPF2m0xO3euGz/XzJLrHHkIOiLIYgQH8pmW3AFDNLkqmiz2iXIkt8OL78Qy
	4LB2a1GcPbkfa/CQ==
X-Cc: netdev@vger.kernel.org, j-rameshbabu@ti.com, andrew+netdev@lunn.ch,
	danishanwar@ti.com, d-qiu@ti.com, davem@davemloft.net,
	fmaurer@redhat.com, kuba@kernel.org, neelima@ti.com,
	pabeni@redhat.com, praneeth@ti.com, pratheesh@ti.com,
	richardcochran@gmail.com, horms@kernel.org, vigneshr@ti.com,
	willemdebruijn.kernel@gmail.com, daniel.machon@microchip.com,
	edumazet@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: <179551954166.3135.8484737548969907135@kernel.org>