🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23399

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

#23399
From: Sebastian Andrzej Siewior
Date: Fri, 27 Nov 2026 07:53
52 lines
11725 bytes
On 2026-11-26 14:40:36 [+0000], netdev-bot+sashiko@kernel.org wrote:
> Critical: 0 · High: 0 · Medium: 1 · Low: 1
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
…
> 
> - [Medium] The new PTP filter in hsr_handle_frame() (net/hsr/hsr_slave.c,
>   lines 79-87) drops every received PTP frame before hsr_forward_skb()…
> - [Low] The new deliberate PTP discard in hsr_handle_frame()
>   (net/hsr/hsr_slave.c, lines 83/86) jumps to finish_free_consume.
> 
…
> [Severity: Medium]
> This check runs before hsr_forward_skb() and applies to every port type,
> including HSR_PT_INTERLINK. Doesn't that do more than stop PTP delivery
> to hsr0? It looks like it also stops the kernel from relaying PTP frames
> on to the other ring port and across the RedBox interlink.

Yes. Yes the redbox must take extra steps to account for the delay in
forwarding. Dropping here is fine.

…
> Take a ring M - X - Y - Z - M where X, Y and Z are plain software HSR
> nodes with no ptp4l running. X and Z would now both discard M's
> Sync/Follow_Up/Delay messages, so Y never sees PTP at all. Before this
> change, Y received PTP through the kernel relay, with uncompensated
> forwarding delay.

Yes and that is not going to work.

> SANs behind a RedBox would also lose PTP to and from the ring. The
> "two copies" argument in the changelog doesn't seem to apply to the
> interlink, which only ever has one copy. Any existing ptp4l bound to hsr0
> would also stop receiving PTP.
> 
> The drop is unconditional, and there's no sysctl or netlink option to
> turn it off. Is it intended that every software HSR node in a PTP ring
> must now run a userspace transparent or boundary clock on its slave
> interfaces?
> 
> If so, could the commit message say that this removes ring relaying and
> RedBox interlink bridging of PTP, and not only delivery to the hsr
> device?

This setup mentioned (or HSR in general) was never working because of
not accounted forwarding delay. It avoids forwarding for all L2-PTP
messages within HSR context.

Sebastian
Technical Details
Message-ID: <20261127075307.azfSRvLz@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-372526-linux-kernel-netdev=dewy.ru
References: <20261125-hsr_ptp-v12-4-9ddd2a73cb90@linutronix.de> <179570403670.3135.12162215727895219598@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-372526-linux-kernel-netdev=dewy.ru
From: bigeasy@linutronix.de (Sebastian Andrzej Siewior)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v12 4/8] hsr: Drop received PTP packets
Date: Fri, 27 Nov 2026 08:53:07 +0100
Organization: Usenet Network
Message-ID: <20261127075307.azfSRvLz@linutronix.de>
References: <20261125-hsr_ptp-v12-4-9ddd2a73cb90@linutronix.de>
 <179570403670.3135.12162215727895219598@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="675631"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7EvZoNb9f6aK5c9wRvAdLQo+T38= sha256:PGm4nwnGB0472i+3L9sAZ+cJpmsOKSo1xCjd0xx9v+Q=
	sha1:87Hhvw0ZEAbtdmt2QKooRBP6nZo= sha256:0WOrKJOUB+8FF1uuJMmWX83TMg4bhuaAPjH5VVo4PQo=
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 7CCEC125F13; Fri, 27 Nov 2026 10:53:41 +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=JTNa22ef; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=r8fETzeH
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 2S8PKEOD7fqt;
	Fri, 27 Nov 2026 10:53:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372526-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 13A98125F10; Fri, 27 Nov 2026 10:53: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 A97A32628B; Fri, 27 Nov 2026 07:53:13 +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=1795765993;
	b=yqrP1eTnmBZiILcry5nLHjriXe+gnBpyDD+M5WfZPRfBZr4au1lu/mj/u1ozac2UJ6kD
	 CYKs0/DzfmXhY6FscbYTd+mW15EOvANnPrcWklD4gfXW+/RvYca/X1KTiXSIUtIhn74Yv
	 mOK948DTINAnyBJTisBQYN2n69GLMAFvihNAWUljrDNUtQQjwfSwYhunhmWNuyYEUq4VI
	 hE6I65FofqHvpTLCGyMgTRuJtv2U556yn1GAovpp91vd7fcKvO9QaneRPLgA3j5wTSb6A
	 HjRghao5rx5dhHWEY4jkyuTXYUTkD0N0xx179czNR9YOFLK7Q/9M1ONYBMs8+spW1Nw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795765993;
	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=1ErWuIz5Ps9Bhgy8ex54TuZBuBIIo5rS7tE2DPIQPTs=;
	b=B5VaZifcHeVanUoQ6QB0E2cSLuF6X14IqYoJMUjse9k7YIj/U3azjMGG4rRwdz7MX7bH
	 lE5vNKrPx9QGmStYtBwikNpv4K6Y07xrWaMPDn75NRJG0OhwoRs2AmK0E21R7Pr3bmYtU
	 nzLdaFfYTcUl5rnuL8kj80iDlu2RROBJv1YX+QRKNc04mjUfFkrq3VDSyx6uBW6EWXFrQ
	 TE5XLF8JKgmlWbp+M8uIoOHG7Z5WwTFazuTqnemY/sF4VcQLMQBLsxopuswZmu/bVszWW
	 IqrjQo7oURsTdJokBM8P7xYDG8QTf6F2uNS5TA3v/pj3kIhDEsY6y46XZYWMsImsLJA==
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=JTNa22ef;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=r8fETzeH;
	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 F0CED606A31E;
	Fri, 27 Nov 2026 07:53:12 +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=JTNa22ef;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=r8fETzeH
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=1795765992;
	b=bGFHRaU5CrkotjWeHMiCTN/vqGcPwD7CXZr51cbU0MzbK/LpPo9/IUKDu5GViQZB7wNi
	 jKFJslsSoNYEzj4KWCWtjgBP9oUvgba+hJab90wxw9CttKIvT/So7Td1cWQW3GViU9170
	 rq+iS0zFOshNfafG+E7cj35+739nibdfSS/Wtj2VBPOIKdP5Q13fLY2z3M+jMdms2Ga4V
	 +HDpnKO0cagFeXHjQd2XHwgZifNLxZ3foWRhEQe/Aynu0X3tOsu9+B6SGBSiA4EbtiZf6
	 JvRvJbYNUBY+2FldiZFEPCjOxRpxAeg04CqTH+8k5+3KFtWHAYy9iqsz6ZInCvPqBTQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795765992;
	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=1ErWuIz5Ps9Bhgy8ex54TuZBuBIIo5rS7tE2DPIQPTs=;
	b=gSsKN5mQKhMyDkbMYWKDubGEYkK46Y4CSlw4iK2zFRXWi4n2M6JW6wPr+aC5glenkc5o
	 zpaBUvC8G/0Kt50QfxvbtZgoJfOul4NoFBjl1b3t9SL2uozTbrImc0NSubuIc9rrtPFlH
	 9OOPzFsIKbXxXedfuzYFDk8EdPnQaSttpYB5hg6EW5IxaLFnuMTwyeI6nPXoo79LpjKaP
	 C47sr8Fp94vpBRp0kuqmSHDriG+3DWnOLxaPzBorN9NUb6i1itRznSIUupNU43KRRZgDF
	 5r3HA6KRH6a8K6JUcqDQb5o49XoaOHQiE8tiCbbojXfZfp1FPq+WqJyNwF07EAHJaLA==
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=JTNa22ef;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=r8fETzeH;
	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 9BE16606A31C
	for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 07:53:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9BE16606A31C
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=1795765989;
	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=1ErWuIz5Ps9Bhgy8ex54TuZBuBIIo5rS7tE2DPIQPTs=;
	b=JTNa22efiUWJH8mdckRoJcHBmddzf8bnARfV5ahYaqFWSk+/7gZJITJVB4X73vRckUPfxc
	RYHM7LfKPPzrHLwnox2HlyNG3JHNXbFE/Qf5mQ0zO8o+EcaxeLrl0WVflvXLWBb37R0tgh
	F8KEN7MGJzH9kkZKLeYoKeA96Nyn0fGmXqHo1FW3uxOM99t8QWGhP0H+YAnh9Hl63edv2h
	RIOlPSgsWihWfClfUkXO7zUFSOYeA5QlK4IPo6aY/qcGcP3r/PrM0QlBiKnM0fkPuxbOUy
	x2hpPoFZwjmyOC3wQzSvLEVD+yj6GtHcjZpCSU8e3FGzb77xt7bFseD4EJD2Ww==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1795765989;
	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=1ErWuIz5Ps9Bhgy8ex54TuZBuBIIo5rS7tE2DPIQPTs=;
	b=r8fETzeHnyd+PpkTZgEyNEKdbQiGMIE4hDXgGOePSH7cMtaqF2pyFGY2H4XQpYHileXEBe
	M3n6uneoEz7LsuCA==
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: <179570403670.3135.12162215727895219598@kernel.org>