Article View: linux.kernel.netdev
Article #19708Re: [PATCH net-next v10 5/8] hsr: Use the port and header information in hsr_forward_skb()
From: Sebastian Andrzej Siewior
Date: Fri, 20 Nov 2026 09:06
Date: Fri, 20 Nov 2026 09:06
24 lines
10427 bytes
10427 bytes
On 2026-11-10 14:23:37 [+0100], Daniel Machon wrote: > Hi Sebastian, Hi Daniel, > > --- a/net/hsr/hsr_forward.c > > +++ b/net/hsr/hsr_forward.c > > @@ -570,6 +571,19 @@ static void hsr_forward_do(struct hsr_frame_info *frame) > > if ((port->dev->features & NETIF_F_HW_HSR_DUP) && sent) > > continue; > > > > + /* If this frame has a specific outgoing port specified (by the > > + * sender) then send it on this port only. > > + */ > > + if (frame->req_tx_port != HSR_PT_NONE && frame->req_tx_port != port->type) > > + continue; > > This could easily be wrapped at 80 to avoid the warning. okay. I'm going to keep sneaky clean up and avoid the two 80s warnings. > /Daniel Sebastian
Technical Details
Message-ID:
<20261120090658.6rZGUWMm@linutronix.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367806-linux-kernel-netdev=dewy.ruReferences:
<20261104-hsr_ptp-v10-0-2c4a38ad973c@linutronix.de> <20261104-hsr_ptp-v10-5-2c4a38ad973c@linutronix.de> <20261110132337.2h42rt4xh5h4dc3x@DEN-DL-M70577>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367806-linux-kernel-netdev=dewy.ru From: bigeasy@linutronix.de (Sebastian Andrzej Siewior) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v10 5/8] hsr: Use the port and header information in hsr_forward_skb() Date: Fri, 20 Nov 2026 10:06:58 +0100 Organization: Usenet Network Message-ID: <20261120090658.6rZGUWMm@linutronix.de> References: <20261104-hsr_ptp-v10-0-2c4a38ad973c@linutronix.de> <20261104-hsr_ptp-v10-5-2c4a38ad973c@linutronix.de> <20261110132337.2h42rt4xh5h4dc3x@DEN-DL-M70577> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Injection-Info: usenet.network; logging-data="3114664"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:iLcXfLwVNSvL+tApYf+Lb/RKrnY= sha256:AhunBkM4xqG9palQjtfMU4gs1KVj7dd4kj3r02/M/FM= sha1:4QVcpNQTG/FOz/T2xr+u0dHgCDc= sha256:2g5zeLinpjjpFGoB3AMHTyBiNP34biMFZL/5HIqCO9E= 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 CE8CC11591E; Fri, 20 Nov 2026 12:07:26 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=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=3Qyr6mnb; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=aOrLKKz7 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 UNC_PhpFzHYP; Fri, 20 Nov 2026 12:07: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-367806-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 145F011590F; Fri, 20 Nov 2026 12:07:06 +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 87D533E303; Fri, 20 Nov 2026 09:07:04 +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=1795165624; b=a7eJUfRfQ7+lSq/fuKnrJwZS3zlqyCBNBzAzlyCgAxDs3gt9JGnntWoookRfk3HT5fK7 hhA0p9pOlISJZ+YVNV58GFCMYH86r7/70dh+w6luGJU8BV0v7eBohEBhcUGDjf/BMejor gmsGaBgb8dqWWfApkMlaU3lfdlgQpbIdsy18zkp8yFlKP0rWvnlzOgj9HTakdaMTGV4Lv 3U5+X4Dsm033RzbyVwTGgm+Cy3kqOZPTJTRoUZrDhj+hufBCwBshGantOA4lb1+x+EVe4 d/uoWfaH7uL5IGu1iJJW8+UTf4vIZxsAirpmFj8f9X6eHtlMNOdh48LRr+TlZpfzPAQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795165624; 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:In-Reply-To; bh=5iBovdVyASR72HwzqKbVi5bHAsPwTQzwOFXgFroJSN0=; b=3qEqYcVihpJZsONye3Q1fRMFICyC1la/CqTfrhjQNp6olnrwZsBnFLqnc/FVuxC4cU9O VTKpN9Kov7T+KQIhOLY0yfP5KyxX/pJPpNO5iVNGH5Gxhdo/jERiYYcIDqljPeJ/DDjEe TAhSbJaXOPT81C97gcok5knwX2nEFnaBNBb0lMUw/gYq+dL8iKMjiSAkunu4m9OA7kXYc bf1YqewTvQD1rjlOIw0lcqTwo1s4bf90raNZ7vvvnQ10JaRVPC+jv1vZk/LIc5m90UOEJ zmj8NhEThf+jL5hckakI0kRE1Z4cwqkK/Vijzhdq6Ix23mJzC3fuPoG2quZsq8P/Vjg== 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=3Qyr6mnb; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=aOrLKKz7; 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 3FED1606A332; Fri, 20 Nov 2026 09:07:04 +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=3Qyr6mnb; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=aOrLKKz7 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=1795165623; b=Olz8Gl4Nk2vKupWR2rs8rZunN+QW5+2fgzMbBmBoj5BBiArltv99AEAGshPeqN+a0P5t /GuvCCDqrJaKa408n6qj0i6j6/9kXvvjpWlGgnv+c0cGlsjHG8wWcc2WYurcFW9dEQJ8B izgc/SoIsHr0qK89ouyUB+BsWCWMaVStm4H+HBHMyAu8i/xMxNtkam8xvNWrP8bxESZsI tzRyCJEBjjn5gt0j2hkMbqwSJFwtJOXHdPdDBiVvOsX3FnOGy1Q+wv7iAFAO+fnAIS4TQ lJ0RPxqJk0NCRzXDnPqMyrDjhqbq5IBuERLwdMdoJurOc1S/LGNloce/0/GAkxaVxBQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795165623; h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=5iBovdVyASR72HwzqKbVi5bHAsPwTQzwOFXgFroJSN0=; b=fvgAhYg3PWtQ28ji4MEExr7evXOmj/+/ovAy1AmGJv29sRluCpa7t9ibI2H4uZijddfu PwiPcK2AEcEw+AePI2Sis+U5suvWqQu2gFzm60oG6LngQnOPb3W/7q/19HTIvrzBYmaDq 5rg7m1aJkuZIqjgLhWL+FWD4oLwQW77LJzIvRHEHlWEOztDr9d4Vw7AT/K5mpPVlYgHt/ FBE79MXdjjV5P3AVotY+K4WFOoQOtQ6UUTpiSpPSEgqhrhRo+T7SLbO74zBPO6maNIPGI 4mEuGW61b54CGo7fuvgj5kTtetODv9iCbzCclly9kIRz6453bwkZ4wasPUkJXmZ+gZA== 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=3Qyr6mnb; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=aOrLKKz7; 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 E3C93606A320 for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 09:07:02 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E3C93606A320 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=1795165620; 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: in-reply-to:in-reply-to:references:references; bh=5iBovdVyASR72HwzqKbVi5bHAsPwTQzwOFXgFroJSN0=; b=3Qyr6mnbLzo0oqVssHc+WyB0GdrbBixxLtv4KYGx3iEr+X1uXflRxSTDdIbjk04MDzAoRZ 2oc1bOw6MKQvlrhKWmlWXglSJAyUtnQr1y5KqnTvnHP3jTJhTKpBf98LkDCOZRZ3N5lt/H ExmQ6sPPKmbsYe9lZc2Zh4JYfAc5bDqDZIZfje7rgQf/6xwwurrh0JaespZiC6Oylgc9R0 qqL+MYHeJpKxwOg28VxbWT3MFfhnMw2BPa+NmPO7NnpKMKOf9WW548zINdPy3wF/Q2YFt/ s4Dx3T/IFuMs933dywMbYaocvq13tUs6XE/lph0As9YVgFj51bVzHP5y1/vSDg== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1795165620; 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: in-reply-to:in-reply-to:references:references; bh=5iBovdVyASR72HwzqKbVi5bHAsPwTQzwOFXgFroJSN0=; b=aOrLKKz73w62xBJMAWqPzYglVFhWWwa8LR6e1/Mj9+LQ35rXdskIrmyOoSSo0+A1+lYCTF cS/WUfri1PxqYUAg== X-Cc: netdev@vger.kernel.org, "(JC), Jayachandran" <j-rameshbabu@ti.com>, Andrew Lunn <andrew+netdev@lunn.ch>, Chintan Vankar <c-vankar@ti.com>, Danish Anwar <danishanwar@ti.com>, Daolin Qiu <d-qiu@ti.com>, "David S. Miller" <davem@davemloft.net>, Felix Maurer <fmaurer@redhat.com>, Jakub Kicinski <kuba@kernel.org>, Neelima Muralidharan <neelima@ti.com>, Paolo Abeni <pabeni@redhat.com>, Praneeth Bajjuri <praneeth@ti.com>, Pratheesh Gangadhar TK <pratheesh@ti.com>, Richard Cochran <richardcochran@gmail.com>, Simon Horman <horms@kernel.org>, Vignesh Raghavendra <vigneshr@ti.com>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, Eric Dumazet <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: <20261110132337.2h42rt4xh5h4dc3x@DEN-DL-M70577>