🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23400

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

#23400
From: Sebastian Andrzej Siewior
Date: Fri, 27 Nov 2026 07:58
40 lines
11162 bytes
On 2026-11-26 14:40:38 [+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 commit message says the new behaviour "is only used in the
>   pure software version" and that NETIF_F_HW_* offload hardware "need[s]…
> - [Low] The patch makes hsr_fill_frame_info() check
>   frame->has_hsr_header: it sets skb_std = skb, skips…
> 
…
> [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.
> 
> Is this limit enforced anywhere? hsr_dev_xmit() accepts the ETH_P_1588
> inline header without checking hsr->fwd_offloaded or the slave features:
> 
…
> The new req_tx_port filter and the has_hsr_header clone shortcut above
> then apply to every slave. That includes slaves that advertise
> NETIF_F_HW_HSR_DUP or NETIF_F_HW_HSR_TAG_INS.
> 
> For example, TI ICSSG in HSR offload mode does this in
…
> Should the inline header be rejected when the slaves have HSR offload
> features (ksz9477 and xrs700x are similar)? Or should the commit message
> drop the claim that this is software only?

Yes, this was brought up earlier. Hardware supported offloading features
will be look into once the software part is done.
It wasn't working before this series so it is not a regression.

Sebastian
Technical Details
Message-ID: <20261127075858.Kc5KdXY7@linutronix.de>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372527-linux-kernel-netdev=dewy.ru
References: <20261125-hsr_ptp-v12-5-9ddd2a73cb90@linutronix.de> <179570403859.3135.16584243126137502674@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372527-linux-kernel-netdev=dewy.ru
From: bigeasy@linutronix.de (Sebastian Andrzej Siewior)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v12 5/8] hsr: Use the port and header
 information in hsr_forward_skb()
Date: Fri, 27 Nov 2026 08:58:58 +0100
Organization: Usenet Network
Message-ID: <20261127075858.Kc5KdXY7@linutronix.de>
References: <20261125-hsr_ptp-v12-5-9ddd2a73cb90@linutronix.de>
 <179570403859.3135.16584243126137502674@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="676278"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:u2GrkxHpvEXWJTE1QE0meCRHVyE= sha256:UeRjRVnQuF10KmrjYgoi10GrD4sqP9C1ILn+iLjbR7o=
	sha1:kHAmhVw4w0UY8rM3B4y/A7d1QvE= sha256:7RjN1VjT4jrXdCI8E4GlTqLNXXoK0YjBRfPX0EwssFQ=
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 0794A125F13; Fri, 27 Nov 2026 10:59:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 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.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=Y8rrQ9xK; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=BxBxEV8B
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 sOZnPmzXemP5;
	Fri, 27 Nov 2026 10:59:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372527-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 1CB5F125F10; Fri, 27 Nov 2026 10:59:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id BDC6830D45; Fri, 27 Nov 2026 07:59:05 +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=1795766343;
	b=M7E222tMmitKXvw3mE675AuaDlsXJlA3z1hXLkVa+ojV3a758YtTVQWvJ+pKcwlhwnik
	 J6Ou8AWKMxNp00Q+1+MYimOYLb3d1U2Qj0aHEVfLB3jQc4Nl7PyGHo5OM9iESoVfkzjsZ
	 KrI8N4fFOVK6ukXizEJ6oohRl+dvwJYQ95W71lERcR5hd0M/uQx+r5RVtXJ6KXcYkqWi7
	 VDTXUy83H6pmftJ8lY3bJPz2mIVUytyYnlTkg216VlfYrqkmV6/zVr5WKbOoTOjVmSCUF
	 K5pcP/EDJgOzscqCkne3hg1LSILqBD3v/tx8uu5dRxFvBbuduW0azjeyC0LpjEHxKIA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795766343;
	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=CtZbt/tfzmKPSU31UDREqAdG4dDhUUMR0uBNSSV+qXM=;
	b=xLVGU1nks59Ld3tegkqo/Rmqp0hiiXnMQzpntLRbu0Jrawyb+mZr+QWN07XRM0JMWU2v
	 zZpnxkimORzqvta4biXwKyEe6trRoHoeHfcmTY9W8v+6upkMxH6sXEvxElZaTP7yiGLB9
	 Ax5t8qyTU3r0lZDta9gUhg8nU7EY8jEvxGLPkeBXXwYoIpQLrofpzbDP7pLIC/ofS00bp
	 5s9LH+uSp1hW8pZpsaIyxMKR5Dzm1IapzSR2WMaZD+/rE6n9XkcbMlTPSSHEiG76iZTrP
	 WpOOR4U654u7w8VOb3uqk322kMmBvd64yrcK1PeRMjuHGKwKkR5J8LAdhB7K52mGixA==
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=Y8rrQ9xK;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=BxBxEV8B;
	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 4C35C606A327;
	Fri, 27 Nov 2026 07:59:03 +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=Y8rrQ9xK;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=BxBxEV8B
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=1795766342;
	b=nijRRovqefKYFycCtwNiayqmEwm0zoE0YLwBPSto72lcxMvvREdku1QZLx3Ktg02bK9E
	 xmwSHLgMo8yBMDOAQlQ2WQO8x3YotFWHXWzXVjfbsI6g1QJfaDCOHESEQBURXRr2JhGUe
	 W77GHkaMTg5D3FBy370fBLHoyDfjuLN4zAGCeC1PekyHjHQ2/iluWpTSw7pLajfnnsaPE
	 qu5XnkU9wZ7LabTzEYT+BvIMh8OwwzUpzxPFvscmhAEqxKnI6YEohdZf2gOrXogBq7d0I
	 zmlexPWSO6vHlDTuHEVuSdlgRZuOzccTsLZrjNxLf/G1nRv+09+NlzBG0AUzx+iEuPA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795766342;
	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=CtZbt/tfzmKPSU31UDREqAdG4dDhUUMR0uBNSSV+qXM=;
	b=Pw49qCrEr6plk5YVxas5/IPbWOX6VJD8kPnxKbQztSQ/fLWabnfie6dRRKCODBGxQrWZ
	 hOsSnrKtGALRU8iLbMNruBNtp2QSqDZLd088hVL0IcqIWgEFkCXQcxbggQWTpASsXD0FI
	 tRNwmDPZVbeoR8muVoRt3RbHmVQV41wG1ziSV+lLdpW5ttbhg5PFRXn+INhbjZ1KjncUE
	 jPmJQyYRUYKrGIn2d5mSza0DJsrecfs4/ssX60RlcsB4hbJXoUf/nfgkUL5FucYpLgVqh
	 V0/aak8U1y4Sr0Btinkyzu6yfWMGjLByiJX/SdSDOOgx/NEp4SCf15LFbCXe4F8TMsQ==
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=Y8rrQ9xK;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=BxBxEV8B;
	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 EE82D606A31E
	for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 07:59:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE82D606A31E
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=1795766339;
	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=CtZbt/tfzmKPSU31UDREqAdG4dDhUUMR0uBNSSV+qXM=;
	b=Y8rrQ9xK581d9YAq/jwns7vg95VkGJ3NtDY5Y81C+wxReF3IfcmcIr6ZU1cpDgD9Y0AefC
	nmEkfHOWfUhhzQIlW+6Z+dijjdMkrez0fVdXrwC63OSxEvSBHQqmS+gap02N3lOhFmyTd8
	5fd2BueBFlfsIZ/gCw7iK7qafVjuH+1/sKsrHQEowpZlUcGwyV2Sm9SeGSx+u66PI6mmV/
	mCaR5crvfiuHmW9VpOa33ojRDD/4l4bikMLZpSfZbirmUdpMM2It6whtz8vZFqPZi8QvcS
	1xNRZm+Ga9FPsZF7ipSnl8C57cbcOKkBjiX4iils81MqXeFGzp9+s3YNHjpI6g==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1795766339;
	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=CtZbt/tfzmKPSU31UDREqAdG4dDhUUMR0uBNSSV+qXM=;
	b=BxBxEV8Bq8dCocbfjRF4w9qpV/zJzojxYtGQpL5gix+c/qBckao5ny5NlmlMrpyul2Wgd4
	Obj1373Xjf9eu8Aw==
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: <179570403859.3135.16584243126137502674@kernel.org>