Article View: linux.kernel.netdev
Article #2384Re: [PATCH net-next v8 4/8] hsr: Drop received PTP packets
From: Sebastian Andrzej Siewior
Date: Mon, 12 Oct 2026 14:49
Date: Mon, 12 Oct 2026 14:49
26 lines
7854 bytes
7854 bytes
On 2026-10-06 14:31:17 [+0000], netdev-bot+sashiko@kernel.org wrote: > [Severity: Medium] > The commit message says: > > Drop all received PTP packets. > > Do these checks catch PTP carried over UDP? Both branches only match > ETH_P_1588, which is the Layer 2 mapping. > > PTP over UDP/IPv4 or IPv6 (ports 319/320) has ETH_P_IP or ETH_P_IPV6 in … > UDP PTP behaves the same as it did before this patch, and the IEC 62439-3 > PTP profile for HSR/PRP uses the L2 mapping. Still, the commit message > names only VLAN-tagged packets as out of scope. The new comment also > states the policy for PTP in general. > > Should the commit message and the comment say that only L2 (ETH_P_1588) > PTP is dropped? Or should the UDP case be handled as well? The HSR/PRP specification mentions only L2 therefore the checks focus here on L2. Using HSR and PTP with L3 transport such as UDPv4 is outside the specification (or PTP profile). I don't think it makes sense to mention this or check for this case. Sebastian
Technical Details
Message-ID:
<20261012144903.EysNyyNj@linutronix.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345049-linux-kernel-netdev=dewy.ruReferences:
<20261002-hsr_ptp-v8-4-60dabc07e554@linutronix.de> <179129707723.434549.4053379151333278960@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345049-linux-kernel-netdev=dewy.ru From: bigeasy@linutronix.de (Sebastian Andrzej Siewior) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v8 4/8] hsr: Drop received PTP packets Date: Mon, 12 Oct 2026 16:49:03 +0200 Organization: Usenet Network Message-ID: <20261012144903.EysNyyNj@linutronix.de> References: <20261002-hsr_ptp-v8-4-60dabc07e554@linutronix.de> <179129707723.434549.4053379151333278960@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="1802494"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:F8GKAg76duUtK1/ijMrl5TT2WIY= sha256:Yteoc1fMf7OhjbhW4xTYI3ZbFOa2MeWxF90XRlUAl7k= sha1:MN95jdySI9+6v8BGIQ4tZk3rQPI= sha256:iXbnIOYc1hlG3GTiPw/ssT/W2wISmR0D41048dXFzpc= 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 BA1E710FC22; Mon, 12 Oct 2026 17:58:17 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.751 X-Spam-Status: No, score=-0.751 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, 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=Rv5TGFKM; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=hfX9ML1a 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 IcOvZpPQb2QF; Mon, 12 Oct 2026 17:58:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-345049-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 2C94E10FBE6; Mon, 12 Oct 2026 17:58:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 179B43A468; Mon, 12 Oct 2026 14:49:53 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E71E1493646; Mon, 12 Oct 2026 14:49:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Rv5TGFKM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hfX9ML1a" X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DB53495028 for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 14:49:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791816547; cv=none; b=MooNNjPUWsxH9sa+wjmisYutaqijWxiadzim5sYJ5IWIYRKRtImf5l+R2Z8/nIpUu4FhA5MMrfhNIybnhavH4cyhhwr0ByzeGBhnzMuBiPoXdbuOKFNKIgEDOucvZC0JrvlpHDsuRE2qR/VOclRlZvPamfzP2kV3xaoRDoqByfU= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791816547; c=relaxed/simple; bh=k/DfgNxHeLeRjushtJ02R5xOy6sIudNCqKdMU88UXTI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SoZIFsP66NqpqsgYC0A4gu1usliRkXdH40r3pouzkBa2mgGg9ZTVVvYgr2vqCLeP5z8z/6h6emIdftqDzaFXFPgCX1Hu7IVLsjdiKoE/zaMu9iBeApFnkzovr7SRJTBbP+OsFi1S4pNHOSBvW/tH3uTYt7pF9KuOgW1Qkiz7O7Y= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Rv5TGFKM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hfX9ML1a; arc=none smtp.client-ip=193.142.43.55 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=1791816544; 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=PtN19BT7h7/cVMeeClkGxbfGL90QfBwNXYZoOKbhXtU=; b=Rv5TGFKMxEe0Js+IJSccaR1vr8wt8jxoiRkmH7t8fu6y68m84a+Selwy2dgsvGPxq59bgm tvSOEbgdZeQMnzAU25kty9aUAIut+eakcSuw9BYD7FEON3BSndQjZjEOFpbG1rdnpr08tD snZdii7Miwp2/koEdD9KnznMMAokvHy9mPenp3l8lroFKw+aHQopK/ko/75PBoKiiOftxx d8jYRlPEvwEofTfAes9UmrrfYqHBL2wsFSTnmQtybX4BOq24mZuSo6wfr9Hi+0IfVDGmOV o3aA+DpKkhlY7KfVNyGS22yPe4+tsPnH1M9v7C85SlFWjp++ld+IYYvAu3PhKQ== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1791816544; 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=PtN19BT7h7/cVMeeClkGxbfGL90QfBwNXYZoOKbhXtU=; b=hfX9ML1aiuantVP4zni3I7nxuXOKpPwPuLdCiZHy4J3GB5i3AYLsF8r9/Vsau7MrP+DS5k 6XF1PK8NGCcjgGCg== X-Cc: netdev@vger.kernel.org, j-rameshbabu@ti.com, andrew+netdev@lunn.ch, c-vankar@ti.com, danishanwar@ti.com, d-qiu@ti.com, davem@davemloft.net, edumazet@google.com, 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 X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <179129707723.434549.4053379151333278960@kernel.org>