Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1102592lqp; Fri, 22 Mar 2024 05:55:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu8l97TPn3HOU2kvv5RpJG8ohbUh+pFywVym97kVnp7RITNb4FCVv7Lb00QvBKZlJzd+NnSrfI7ZsUN5hXTkAXzomoaUrDBAfElk7U9A== X-Google-Smtp-Source: AGHT+IFOX8UfoHM8LLi3Dm1b9sxvvfMJ5xZ9o9KTqqEOHsWq8Hk4DyF6PgVDfw3KSfmO87dMHuFp X-Received: by 2002:a05:6870:910e:b0:21e:b2ee:75a4 with SMTP id o14-20020a056870910e00b0021eb2ee75a4mr2279290oae.15.1711112108172; Fri, 22 Mar 2024 05:55:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711112108; cv=pass; d=google.com; s=arc-20160816; b=bArrJGkBwjPVBrVOI327yFOcfVYgbKojZFQcPn/sxt7vBd2asmbAhLOSjXxtCI11FL AqDxgb6SJQBdzhXkt7JR+JGVCAbXGT2puWRgeNU7N4U4q9RD94JCTaFbJw2h354dEIF3 STKjd4DAMGez8NtRAVXNWeP5DeGmeIwK+U1p0gX+IrhAQ3Yp8JthTHZtCQ8SH59POnX+ 70vteuud7ttALHrL9+Ll9m0p74ksmDZK0M3H8aJ5qZhdJlyqBFsLwSZFj6WblQMBTnf0 sD1ypMwzhPm70VNUgEGh8o9w3lgsJ+Aqyz3KbTBnGQoFPy9cvJSXQbO2Cw5u0JRBdV5b 08iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jw4LTOzo6tr+qSgLbFdCaonLc3egP+Dgp59Uj63MfUs=; fh=J6XWuDfXp581ICtwRf1Z8oIGFh5fzaqJ+W+LasDu1YY=; b=rqZ6BJGnnz/79BDEW7O+tkuiHBoxyHzlU987Bp6lZ8iPL2h2dQqA5l3pLmtTQtwxz/ nzj84d0b7D194itgNTX0ppZkUSrhks3+T2aPfdL2By7iMAiFv+ozUXUqGvJZioNA9/MW n7IrqJ3g59QHvcto9mp48JO9isoWzxRPXVVxnTIwbVenHsbgpJxuBSCLl8xvN+WU2SXR Y1tcQgYMvwu0sK27kF95D+BH/zABoOVtvXVDPna40v5F/wYyhxFcRyUNJu5FDqHW/Fs8 Uv/fPPe9UvSfV9v0IXib51gMFTrACU5Znh+X0h+ecC7JCsIvME/spVD1NMeeKHaWof6K IxgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bnT6VQq3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t190-20020a632dc7000000b005e4f1d48cbfsi1972623pgt.816.2024.03.22.05.55.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 05:55:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bnT6VQq3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB183B2545D for ; Fri, 22 Mar 2024 12:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C29944C8F; Fri, 22 Mar 2024 12:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bnT6VQq3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B17772A1BA; Fri, 22 Mar 2024 12:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711111697; cv=none; b=q9vU6+ouLrw5kl6tHKP+g+XpZVURSmCCxLBgOGEy6tCv9HHC9z2NBDWbQYr+bxTy8gOZGwXrx8JpZzU4QtLpIoc2htWRk3kmroL24x2jiKSSkTv5m2nkoAFRGMocpRcY6p+HxfmIPSqcCRGRy4AYuALmO+FuQqr+XRojacl/CUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711111697; c=relaxed/simple; bh=EW1YyO0yfmBcthj5cjy+WTpTjJLjT2GTWuhVw+I+Mf8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pRMpQnOAgySuBHykEedgHrLBQ0gSPQCgS/g8WHg/FhV/3ujoeVnm7UJCBKcYAiHxbcyUTQW8S4jryUR7gZfMz9ixw9xTJphDIVf0sAdaJRq9EXbPTEw9weH3oQG+VqRE2dUYYt1sZ7Oqkdw5aRY3Uz1Ng6J+9NiavJ+J4Op59yg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bnT6VQq3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A482C433C7; Fri, 22 Mar 2024 12:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711111697; bh=EW1YyO0yfmBcthj5cjy+WTpTjJLjT2GTWuhVw+I+Mf8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bnT6VQq3nj5oQk2sWcavk09Fv0Bh2W4VfvDZoBmN5wWS2g5F1P7Z+FBPaUsXPOPuP QmuPSpib7p6TKbtgAENDmRYrMkveuo7hsDYotLe0V+XyuIz6UVbnLkIRZeASuc/h2l EHp3qMTPqtgaRFHyi1wQLQ5PflJ3frpu3MVwCsUFV7VlGyD+u4ga3CUY12XWUT3AQ3 M5fb3W7VunidJQYvwz3iZJaMacnNxSpzwpARl3s7c6tMgWJttzn8hM4YanSI9/+c5V lOUSB6PMBdMp929wvrAFYfT+yYI9gKXHXsWMAdWdeU67gnw9Aj8KkN2XshRilJUTMM nWwrLPbCydXRA== Date: Fri, 22 Mar 2024 12:48:10 +0000 From: Simon Horman To: Lukasz Majewski Cc: netdev@vger.kernel.org, Andrew Lunn , Eric Dumazet , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Oleksij Rempel , Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Paolo Abeni , Ravi Gunasekaran , Wojciech Drewek , Nikita Zhandarovich , Murali Karicheri , Dan Carpenter , Ziyang Xuan , Kristian Overskeid , Matthieu Baerts , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: hsr: Provide RedBox support Message-ID: <20240322124810.GD372561@kernel.org> References: <20240311115644.823829-1-lukma@denx.de> <20240322084244.7d0d17e8@wsk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322084244.7d0d17e8@wsk> On Fri, Mar 22, 2024 at 08:42:44AM +0100, Lukasz Majewski wrote: > Dear Community, > > > Introduce RedBox support (HSR-SAN to be more precise) for HSR > > networks. Following traffic reduction optimizations have been > > implemented: > > - Do not send HSR supervisory frames to Port C (interlink) > > - Do not forward to HSR ring frames addressed to Port C > > - Do not forward to Port C frames from HSR ring > > - Do not send duplicate HSR frame to HSR ring when destination is > > Port C > > > > The corresponding patch to modify iptable2 sources has already been > > sent: > > https://lore.kernel.org/netdev/20240308145729.490863-1-lukma@denx.de/T/ > > > > Testing procedure: > > ------------------ > > The EVB-KSZ9477 has been used for testing on net-next branch > > (SHA1: 709776ea8562). > > > > Ports 4/5 were used for SW managed HSR (hsr1) as first hsr0 for ports > > 1/2 (with HW offloading for ksz9477) was created. Port 3 has been > > used as interlink port (single USB-ETH dongle). > > > > Configuration - RedBox (EVB-KSZ9477): > > ifconfig lan1 down;ifconfig lan2 down > > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 > > version 1 ip link add name hsr1 type hsr slave1 lan4 slave2 lan5 > > interlink lan3 supervision 45 version 1 ifconfig lan4 up;ifconfig > > lan5 up ifconfig lan3 up > > ifconfig hsr1 192.168.0.11 up > > > > Configuration - DAN-H (EVB-KSZ9477): > > > > ifconfig lan1 down;ifconfig lan2 down > > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 > > version 1 ip link add name hsr1 type hsr slave1 lan4 slave2 lan5 > > supervision 45 version 1 ifconfig lan4 up;ifconfig lan5 up > > ifconfig hsr1 192.168.0.12 up > > > > This approach uses only SW based HSR devices (hsr1). > > > > -------------- ----------------- ------------ > > DAN-H Port5 | <------> | Port5 | | > > Port4 | <------> | Port4 Port3 | <---> | PC > > | | (RedBox) | | (USB-ETH) > > EVB-KSZ9477 | | EVB-KSZ9477 | | > > -------------- ----------------- ------------ > > > > Gentle ping for this patch... Hi Lukasz, Unfortunately the timing of this patch submission didn't work out: it was submitted after or otherwise still under review when Linus tagged v6.8 and the merge window for v6.9 started. net-next is closed during the merge window and the usual next step in cases such as this is to rebase and repost once the merge window closes and net-next reopens. That should occur next week. See: https://docs.kernel.org/process/maintainer-netdev.html#git-trees-and-patch-flow