Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 A5BC279F8 for ; Thu, 31 Aug 2023 11:35:23 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3B1CFF for ; Thu, 31 Aug 2023 04:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693481718; 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=La0/Hh+TRze+Vb0q9LsgA7s23V5L37y71l1wEuOHLns=; b=NaRLwIzupXBJ/p3+axo3UHVMQ64aMrYlfeyPJCYHEr8klypnXGAuNd/7gdtnCJBNBz4fXK a80nSU6a6ajN31g/vaBVeLtMgBpDushL74DrHTgBZK3fCFDLhJ1ImdhJHUzb47xJ8YhKWG WqxClBS0NdiZnNNvTKUkViCb62xTONw= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-_SkHOR7bM-2pl-QLt-1bEw-1; Thu, 31 Aug 2023 07:35:17 -0400 X-MC-Unique: _SkHOR7bM-2pl-QLt-1bEw-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2b9cca3c395so2754021fa.1 for ; Thu, 31 Aug 2023 04:35:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693481715; x=1694086515; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=La0/Hh+TRze+Vb0q9LsgA7s23V5L37y71l1wEuOHLns=; b=cM+XR6X5UYc+VVze9CGEdrRr4u5Hd82UrSq9zoDSkRu9lHJQPrwUVlWWDIHLpHQO9w DLERrd2t3mTrIA9T0bOe7PgtfQMd0ohg0SBe8B0026m6vqQ3ENVSQpx8LKVYdzZnPLCH ZHWg+rEeTdZ2E7gsE5j71g3cKnwE3kksAozkVrn3oTMGJGW5x4KNAF9pcn2a890oF5zV oHQabzlST1G7gafuN17FRzsH74DV2sate4uHJH7oTTX+1VGnL9AG4WrGZqZBBdkdySQK 9HCXzzTtdtymD4REpXeW47Orv+N6LBdJDeKmfHLDw8jwclP8eenC0cPV0iHD722F9Vyc kYrA== X-Gm-Message-State: AOJu0Yxy3/QkPoALva2gAw4oHw/IZd3CrvuKyNXNrG9FMAwc0DxJSSzl FDJsixYoDvdA9wQNGLh3u6ZdYUBjL65nZjdVjJbFa3Z1ofbae92xvv3L+rNsRprZ3SU8JIVSy4e OHjPt3dyIdTmDPeKz X-Received: by 2002:a05:651c:1256:b0:2b9:54bd:caed with SMTP id h22-20020a05651c125600b002b954bdcaedmr3544615ljh.1.1693481715594; Thu, 31 Aug 2023 04:35:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEy3FYJX5luMRBPc3d0+cP01B48hkyJoTaRTZEr1XfwDPFrLtu3gar1njfVMOw9Y1lh+onO3g== X-Received: by 2002:a05:651c:1256:b0:2b9:54bd:caed with SMTP id h22-20020a05651c125600b002b954bdcaedmr3544605ljh.1.1693481715252; Thu, 31 Aug 2023 04:35:15 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-255-219.dyn.eolo.it. [146.241.255.219]) by smtp.gmail.com with ESMTPSA id a25-20020a1709064a5900b009a2202bfce5sm655485ejv.118.2023.08.31.04.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 04:35:14 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 0/4] net: dsa: hsr: Enable HSR HW offloading for KSZ9477 From: Paolo Abeni To: Lukasz Majewski , Eric Dumazet , Andrew Lunn , davem@davemloft.net, Woojung Huh , Vladimir Oltean Cc: Tristram.Ha@microchip.com, Florian Fainelli , Jakub Kicinski , UNGLinuxDriver@microchip.com, George McCollister , Oleksij Rempel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 31 Aug 2023 13:35:13 +0200 In-Reply-To: <20230831111827.548118-1-lukma@denx.de> References: <20230831111827.548118-1-lukma@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On Thu, 2023-08-31 at 13:18 +0200, Lukasz Majewski wrote: > This patch series provides support for HSR HW offloading in KSZ9477 > switch IC. >=20 > To test this feature: > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 ver= sion 1 > ifconfig lan1 up;ifconfig lan2 up > ifconfig hsr0 192.168.0.1 up >=20 > To remove HSR network device: > ip link del hsr0 >=20 > Test HW: > Two KSZ9477-EVB boards with HSR ports set to "Port1" and "Port2". >=20 > Performance SW used: > nuttcp -S --nofork > nuttcp -vv -T 60 -r 192.168.0.2 > nuttcp -vv -T 60 -t 192.168.0.2 >=20 > Code: v6.5-rc7 Linux repository > Tested HSR v0 and v1 > Results: > With KSZ9477 offloading support added: RX: 100 Mbps TX: 98 Mbps > With no offloading RX: 63 Mbps TX: 63 Mbps >=20 >=20 > Lukasz Majewski (4): > net: dsa: Extend the ksz_device structure to hold info about HSR ports > net: dsa: Extend ksz9477 TAG setup to support HSR frames duplication > net: dsa: hsr: Enable in KSZ9477 switch HW HSR offloading > net: dsa: hsr: Provide generic HSR ksz_hsr_{join|leave} functions >=20 > drivers/net/dsa/microchip/ksz9477.c | 96 ++++++++++++++++++++++++++ > drivers/net/dsa/microchip/ksz9477.h | 4 ++ > drivers/net/dsa/microchip/ksz_common.c | 81 ++++++++++++++++++++++ > drivers/net/dsa/microchip/ksz_common.h | 3 + > include/linux/dsa/ksz_common.h | 1 + > net/dsa/tag_ksz.c | 5 ++ > 6 files changed, 190 insertions(+) >=20 I'm sorry, it looks like I was not clear previously. --- ## Form letter - net-next-closed The merge window for v6.6 has begun and therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only. Please repost when net-next reopens after Sept 11th. RFC patches sent for review only are obviously welcome at any time. See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#develop= ment-cycle --=20 pw-bot: defer