🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21897

Re: [PATCH net-next v11 5/8] hsr: Use the port and header information in hsr_forward_skb()

#21897
From: Sebastian Andrzej Siewior
Date: Tue, 24 Nov 2026 15:19
45 lines
11398 bytes
On 2026-11-24 11:25:43 [+0000], netdev-bot+sashiko@kernel.org wrote:
> 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 commit message says the new path "is only used in the pure
>   software version" and that NETIF_F_HW_* offload "need[s] to be…
> - [Low] The has_hsr_header semantics added by this patch are implemented
>   for HSR only, not PRP.
> 
…
> [Severity: Medium]
> 
> The commit message says:
> 
>   This is only used in the pure software version. Hardware with any kind
>   of NETIF_F_HW_* offload support need to be addressed separately.
> 
> Does anything in the code actually limit this to software?
> hsr_dev_xmit() accepts the inline header for ETH_P_1588 frames on any HSR
> device. Neither the req_tx_port filter nor the has_hsr_header shortcut
> here checks port->dev->features.
> 
> When a slave has NETIF_F_HW_HSR_DUP (ksz9477 and xrs700x through DSA),
> software sends one clone to the requested port only. However,
> dsa_xmit_port_mask() in net/dsa/tag.h ORs every HSR member port into the
> TX mask:
> 
>     if (IS_ENABLED(CONFIG_HSR) &&
>         unlikely(dev->features & NETIF_F_HW_HSR_DUP)) {
>         ...
>         dsa_hsr_foreach_port(other_dp, dp->ds, hsr_dev)
>             mask |= BIT(other_dp->index);
>     }
> 
> icssg also switches to PRUETH_UNDIRECTED_PKT_DST_TAG in that mode.
> Wouldn't a PTP frame meant for one ring port then go out on both?

Yes, this has been mentioned earlier. Nothing limits this to be
software only. For now this is software only and the next step will be
to take hardware acceleration into account.
It wasn't working before this series so it is not a regression.

…

Sebastian
Technical Details
Message-ID: <20261124151904.QEfjoeC9@linutronix.de>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370506-linux-kernel-netdev=dewy.ru
References: <20261120-hsr_ptp-v11-5-264c88f4f1d0@linutronix.de> <179551954393.3135.14245872279309105973@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370506-linux-kernel-netdev=dewy.ru
From: bigeasy@linutronix.de (Sebastian Andrzej Siewior)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v11 5/8] hsr: Use the port and header
 information in hsr_forward_skb()
Date: Tue, 24 Nov 2026 16:19:04 +0100
Organization: Usenet Network
Message-ID: <20261124151904.QEfjoeC9@linutronix.de>
References: <20261120-hsr_ptp-v11-5-264c88f4f1d0@linutronix.de>
 <179551954393.3135.14245872279309105973@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4167703"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qV30lorrxUse1sgm9L/osMdD8lc= sha256:JoAvFJ1CWFygl/l5xzxxOhoYMrE2xLSGWd7RuZxFjBo=
	sha1:DD+Ac0wL6cxFDFY/gPsDu9NjMi8= sha256:kOwX52Ew3ZhAsjzzk3ssmmir1J8IPLhmTDaDiKo1Cao=
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 A1823125E1E; Tue, 24 Nov 2026 18:19:31 +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=cGNoremp; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=fQG/l3Vs
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 vMBJuD7LDYmQ;
	Tue, 24 Nov 2026 18:19:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370506-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 6BF64125E1C; Tue, 24 Nov 2026 18:19:11 +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 E5A0E382CE; Tue, 24 Nov 2026 15:19:09 +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=1795533549;
	b=tdsF4i1dtyPY0ZthUtvhN80ZI7it/awd7wHDXgFmatcgJQ3px8do/KI0veIOf2Mz43wh
	 9jTzBfHLq7wBQm0SdHTxqRY23BuRK10uZ87DPXVjeVEmfeas6HMGZr8hM+j9y8AG9bXtY
	 0VCLu9P7OgqCYyJJAdgs2jdUrne3nUv7Obs2y65TAryVSfaxvXzYiMF9dwNpxqTWo3eEa
	 yXPjkPP1cwE5jbK5RIKfmj3NNqDvFozTvi0NDMjZ3cD3kHbBEPmxUzK8XJFvskbqnIUnl
	 Xae+GT1NAk0AVA+N4gvePSve32nteoGzDqw0WBSgaAhtxX4MPHJNWyPuuf03pxQVc6Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795533549;
	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=6oWnfXqgTuQPp52o8Doeg6T054YN4mh37i5AiGViOQk=;
	b=wr518Wxmb7TdXSYAsnPPjIbLZWwxjMrbqVhruoDHclCBtjxKJ2YkDtn5nohwkDtQzVR0
	 fS8kmdM2/Jl/QKX9wetwZ/yQQsSIT1exPD3coLX4Uvo3VQV1omwpK6jHdsh210YpdnhQo
	 fNImIC2HIDdN7e+B7E4ENPz0ODDAkHTmUsCyABWMCe65h0BzhY8YPRYJ0+LzJw07zi7WR
	 ztjRSL8vUAzJUKdgkuq7bCnIHvqzXNSlSodUxS3imxxW0LsKgpvTPEIEmtTX6Jzxg2uDl
	 bC8WZRb00z/KvMBG8HQZrO+JTfRTmUVCy8ROTYWl0X6EET2pzSQ5itmctEx2R62jZNQ==
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=cGNoremp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="fQG/l3Vs";
	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 BDDA2606A32A;
	Tue, 24 Nov 2026 15:19:09 +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=cGNoremp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=fQG/l3Vs
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=1795533548;
	b=T/ofw5zIVxxQUDt/bKTtUGtiRztCtmVQzLmQRbzhLSnjEMGWx8R9Gvrw0XM5INteRa9b
	 Z0iucHujAekXF4MNcpvnbdvxUNsX04075J4Dt47b2KRu4V1j9tP5Wq8NW4G95rcITeVxc
	 O2BOeSRyLHZsOuUXz6qBWbf1X/+aSiuH2ges1OIBQmFoOHRsUKI1SWBN3yxrUg78QWhKR
	 b4ggZIjjkxeIVnnaIb7dVckIkWuvcYbEFvOTTLtJvQQ06c2JHqsd5vRTu4N2KxSLks/aJ
	 QJyl6KXO1u182ttXKv5GaAOqtkBDdKGDv/yZLsq3C64GgdcYHXwnuwo59RIBX1w242Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795533548;
	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=6oWnfXqgTuQPp52o8Doeg6T054YN4mh37i5AiGViOQk=;
	b=2xuv/aeF/12AAZ8iG3rAt1605wIA+ZVa56vO5OaM/oad5MwRws63y2CVNOC6Ztwic2ny
	 IUeYv55XTFFU2jTOrFKNw8ZlVkp5FcbOTP00iu0DuXSZz4f3QFp/Ovw70vEews3TgDg5q
	 Da0VYjthfybuzvWLb4beuSNjQke1UA/f/myrMtaxyNMWCDDRcMQmiGoferfVdu9xvhwyX
	 6oYKKj8m7t61qjIPNTGrJ3ACSq32DfynCFsRchnXDWkpW7WYUYi3HiLctCbUDh+7ih/7J
	 G/0SctvfyoAJGHxG9UwEl/j3n+4MHh2kXyyYbcLTauNJc84k1IA/M4rgNXfFBvzMwEQ==
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=cGNoremp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="fQG/l3Vs";
	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 6BEA4606A31E
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 15:19:08 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BEA4606A31E
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=1795533546;
	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=6oWnfXqgTuQPp52o8Doeg6T054YN4mh37i5AiGViOQk=;
	b=cGNorempfMYw+M3WsE5ne4HlyNjCZot6B8JV1+Y3uHXbLvIMZTn5AETcK5z3zENcLnqSpP
	takfEEglhyU4ridmtZUJCgBUwK741z1uHILjoWkv6cl8ZXCWsFbgr8zdK/vG1kpa4hcHH9
	2cgm42O4HMfpWw5HUH8TizWrE20BooUpfvFZsICm+2PbJfYoQ5v+7fp/kusSwYn9bPxneC
	efytAu/HYtbHvaKkkxPdxSebf0w0j/aiEOpNuz7kZDX1Yc43h5/SKq1D1RV+Zk8SxJ/Wb5
	Pqhqpq7xRHWuykWpyj5OvnL5zUYN0oYQ3oUyOsR0GO4dEmAv1/1UYS2A8ykZEA==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1795533546;
	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=6oWnfXqgTuQPp52o8Doeg6T054YN4mh37i5AiGViOQk=;
	b=fQG/l3VsiwMXcD0hx/o7b3RCkLyaI04VgEJKq4aHyBP3xQOksslTHmileiVI0xc1XU3oWL
	PhxN0xFrw89E5QAA==
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: <179551954393.3135.14245872279309105973@kernel.org>