🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26405

Re: [PATCH net-next v13 3/8] hsr: Add a magic header for sending PTP packets

#26405
From: Sebastian Andrzej Siewior
Date: Thu, 03 Dec 2026 13:41
32 lines
10921 bytes
On 2026-12-01 17:35:30 [+0100], To netdev-bot+sashiko@kernel.org wrote:
> > req_tx_port is compared against HSR_PT_SLAVE_A and HSR_PT_SLAVE_B, which
> > come from the internal enum hsr_port_type. The exported
> > HSR_INLINE_HDR_PORT_A and HSR_INLINE_HDR_PORT_B are never used, and no
> > BUILD_BUG_ON ties the two sets of values together. Reordering the internal
> > enum would silently change the ABI. Would it be better to validate against
> > the UAPI constants and map them to the internal values?
> 
> Hmm. The ABI is fix/ exported via uapi. The reorder would break the
> parsing here. I would prefer the HSR_PT_SLAVE_A+B constants and the
> BUILD_BUG_ON() to link it.
> Is this something I should resend the whole series and send a follow-up
> later?
On the other hand, let me fix this and

…
> > Two smaller points: hsr_device.c includes <uapi/linux/hsr_ptp.h> instead of
> > <linux/hsr_ptp.h>, and there is no Documentation/ text for the new ABI.
> 
> I am not aware that uapi/ header must not be included in kernel code.
> Yes, no other documentation.

include the non-uapi header and then add a delay for the link up in
testing and then it should be it.

Sebastian

pw-bot: cr
Technical Details
Message-ID: <20261203134122.WCqHw5L_@linutronix.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376641-linux-kernel-netdev=dewy.ru
References: <20261130-hsr_ptp-v13-3-598326208fc5@linutronix.de> <179611532644.3146.17870747976027282649@kernel.org> <20261201163528.clIypeY6@linutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376641-linux-kernel-netdev=dewy.ru
From: bigeasy@linutronix.de (Sebastian Andrzej Siewior)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v13 3/8] hsr: Add a magic header for sending PTP
 packets
Date: Thu, 3 Dec 2026 14:41:22 +0100
Organization: Usenet Network
Message-ID: <20261203134122.WCqHw5L_@linutronix.de>
References: <20261130-hsr_ptp-v13-3-598326208fc5@linutronix.de>
 <179611532644.3146.17870747976027282649@kernel.org>
 <20261201163528.clIypeY6@linutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2504904"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EdQkgUdshPUQc8nOhvUwoVDw8T8= sha256:w7ik63xDbM+a8Vi+KPHXxalMFrZAlnMMHu0tMWa4CzQ=
	sha1:YpdyHOUDVi6X82sAs+ilQ1acrmk= sha256:BJTOfBUSkIkRjz/K1GE0tZhxfakIHK2dvzoJvpLsHbw=
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 60E76117969; Thu,  3 Dec 2026 16:41:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.399
X-Spam-Status: No, score=-3.399 tagged_above=-9999 required=6.31
	tests=[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=linutronix.de header.b=Z85mCGuC; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=kc6+HdDc
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 wRjkACkS_PqN;
	Thu,  3 Dec 2026 16:41:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376641-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 77183117961; Thu,  3 Dec 2026 16:41:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id F1A2E6021A8; Thu,  3 Dec 2026 13:41:30 +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=1796305288;
	b=fO0+6cVPddkiTYQWpXO7s+in1JyvbBJm1QVQJbts9adcRNDlQKQuH/XtrxaY2BY/ofjg
	 PpQd5SrvBMnYxnFPMIcMWpKJMVj1SkRCb8gPIHUEPPlMoU3WwFgCf2xp6ijeRIOkgUklg
	 WOVmVs0ofrXYh8lGi+zZJQvvCIdgorCb7IXd5Gndu5UnQTIOBqxTjO0zUyV8Oe378rpOZ
	 fHdJEaAlyOzkMS330vVnss9mxPf8611VH04ZF3u+nooO7N8xw9/KD3TIRzGMpe1tIjXJh
	 uVoAoEzVEO0Qnic1nv/Bn0TfNT+EU+znPoW3yuRnL9oIX27AgY5axspZG6k778Zs/Gg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796305288;
	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=VwLin1UdAZtw2DQZLjCtaFF1WWAdAz7wjsHA0P03TWQ=;
	b=BYdAwPKCpMJrHDVq9C9Kt9kZN7M/HLBdpnCngn/nvw/zxN/cNdkoEzHUXgQroIR3DvOV
	 4QTbC/3REqguGFjcxhyPEl6BiZSWea56Ac97vSoajpwXEivaeOKcRe6qd1nviK//eJqVZ
	 vjxBp/Y+z7SiZJDxB+0274UWuk4F2nCg2R1C09GrCasaLpbnthE8nUObT6Z96q+ga4UKF
	 VDfEMQIWweWSCGtlbJL1iMKknzH7EgMm6D5L+dLs0NcpvgH453xxmWj6La1egAP5eWgKU
	 YojAgBidhRZ+UtfMzSttSR3n9p87TKleguN8cpE0PbbXVnE49CbmCe/uBzB1FhBjogA==
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=Z85mCGuC;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=kc6+HdDc;
	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 CF0D0606A68B;
	Thu,  3 Dec 2026 13:41:28 +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=Z85mCGuC;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=kc6+HdDc
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=1796305288;
	b=CXhZSBqNIiUtU12RpKddEzJ/HWF68yNurGHiy5BH7QDqzatrcFXAAuwSEWLU+9iSiIY6
	 P0QI6lm1SurO47H9NVxEOwxZY96Di/XY7Ffmb6/m/gOGjjWIk1OoCABnX1KWA7Ed2j7W3
	 enc8sZINKDKSUnmnc8OwQxCUNXuCW1BWc7pTgY6X/ZiS1n04gCYancts5z26Tz68iIyvx
	 L4YrXKwHZaw9t7oaubzVp7RiXFb0p3D3ciqJxDQyMeLdgQ0KJNvtMRsidgVMoWGkPklOr
	 miKFnDJ0WbZOihssd/SBx55VOLoRLoRdCsW6VrGmfmaNNQOKqm6Fvgt0oEJZs0sE4ww==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796305288;
	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=VwLin1UdAZtw2DQZLjCtaFF1WWAdAz7wjsHA0P03TWQ=;
	b=qFhgqGEs5KZeMt3bOcs30Y7TKsUtCWFTrFjlBr3RXlvaiHYzV3qa0TOlrr5xxsLw2hGX
	 Hpyu/KGBaI0VA+md8bwjva9pAa9s1wMMxdKmFAWWL/ZqfMYpbz0DD8soS2ajcDqFhArMJ
	 lUeRnnb/6lf0etugshHc60akinW4M64nF5oL5EprknTrG2/JFeYPra7z+3Y46y6SD2ltd
	 grV+5Z2/T7rNUb0g/elRZp691wIUSjSTmKt5dmJSBu1/GRzEBSIZ7wHPJPEMNLc0cPClL
	 3a26+t6Ciyox7KklT7H/ZqmzCfQwm1bDCO/QF3CXrVvPfEXHSvd9cyFcWXE0aQLGdEg==
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=Z85mCGuC;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=kc6+HdDc;
	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 856C7606A698
	for <netdev@vger.kernel.org>; Thu,  3 Dec 2026 13:41:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 856C7606A698
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=1796305284;
	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=VwLin1UdAZtw2DQZLjCtaFF1WWAdAz7wjsHA0P03TWQ=;
	b=Z85mCGuC2Ak4Tl2M+gWK4ah+F7kHNi5nTpUUXhPfRf3UU4tdWq3/TV5m+aULiJFEWuO6rM
	W+bNG5fB13rTp3vWBHzBdy9feaNIJU73K66o2Lo/9l3g6TB/faQlChCA7bJrsHlkYtOpHZ
	hT/UPNnxegpN9vXK5bllLf9kTA1h4+fsiCgNbgBqPn4SEvZ4TkHYM6hrSnB+pzXMMbRxwt
	fO3lVLqEiming3FpofZtr+Go21Jl4rilwq6EuaMywaadYuelHkhQet0X3Sv00fwnfLTH4C
	0t2mCUm5gX9HjewhXx4GhcteTQdJJB3YKz42zleczYtqten4LI4Fyptfk9fIFQ==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1796305284;
	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=VwLin1UdAZtw2DQZLjCtaFF1WWAdAz7wjsHA0P03TWQ=;
	b=kc6+HdDc8HLCd31mPGvQZ3xSF5wTXFoV1VJjiSJKgRSSDVTN+U05VmYN/R1iv5ofLzJMLk
	xuJ/161Hn19bFDAw==
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: <20261201163528.clIypeY6@linutronix.de>