Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2344163rdh; Tue, 26 Sep 2023 22:44:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEms3OhLnMYy2CL0pNqw7dN1l6QbcSMLu3HTlAjDcHs1Rz9i7amPXELq55v9DDaKUtBIjgP X-Received: by 2002:a05:6a20:3942:b0:159:b4ba:a5bf with SMTP id r2-20020a056a20394200b00159b4baa5bfmr1088977pzg.13.1695793495138; Tue, 26 Sep 2023 22:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695793495; cv=none; d=google.com; s=arc-20160816; b=fOMcML9MeRMx47iRaL3G6cwdCggM/OyVEPAHKHJ008kQ06s3ptpzx/7RL+gGAyurrO CZrVbSySeN2EQG2iZ2hofd6G8SJ/qlRZ33srDRXRhAHh4AJbO4zfjI16qhFF4EywZgee ZwztmquE4f9tone6g42XzWe7GeqRW85TGXi/5F2kucl0OtASWtGWS4S1Q3vAr85WlxO3 CzL4Sq+YMmljD0vPwlt3/YuyUE4TZ3T5znpDGq1D1xFmezp0Tt5ntoJtpNHuj9AD0nXF Jx/PK48mGNqYWHlj8fyzI0WUcKGlBrHGAmLDbmSVLBsHVDwvJ82bcPZ4hK4J5kTO1HD3 jDHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dQJAscD2wySe2863Xyr7yQaPfi/ox1Xy3HuPTVjHqlk=; fh=HKLVqhOuhrqPyBWmsKeG2yNFOUoK3I0Eye1fmm1AuTc=; b=HzidCL9tqXfkW0Xlyl3V9uNu24Adsl5QTrBCwTVCfSG9J8mJ7N76vIEXhmVRFSFBEZ FNGu7tM6VwcYFya2GdvXeEId7ZZrVk2piL7V22UmCxlmsXR4i9HhtWF9i+4/h9bw3F5o Z9vDrm80d5JrUNaJDRFMiPjLYlEAQUS1PxEzzVNMhngf1AnAHLyF/+6gG6EARavamPS9 zCTENfWv0RsjgfQRHHu07ia+obCNZ7bf9zOWX764HfTn3kJlbsV0RoQffi0GG5FSTdeS O2k1Y5e3GCI+eZaiupOVxnghJXZyb4UE3PxQq1c2KV6rbfS7lkpLJB0CXBGEWgj+8pvf ftKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z2oUMMQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lf4-20020a170902fb4400b001b9e9fa3a38si13611976plb.646.2023.09.26.22.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 22:44:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z2oUMMQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 702568194770; Tue, 26 Sep 2023 16:43:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbjIZXnD (ORCPT + 99 others); Tue, 26 Sep 2023 19:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbjIZXlB (ORCPT ); Tue, 26 Sep 2023 19:41:01 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0928F1730; Tue, 26 Sep 2023 15:54:06 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9a648f9d8e3so1298070866b.1; Tue, 26 Sep 2023 15:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695768844; x=1696373644; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dQJAscD2wySe2863Xyr7yQaPfi/ox1Xy3HuPTVjHqlk=; b=Z2oUMMQE67f/LxI/iDM+IZ8WFlMHZ9/IsdkdnrQPbXEP9XOYqz7J8nrYJ5jLpqbUfs 0+FKex7tjH2IApkmYIsoQ3lLxR/AVq1RIYnyKefV1qc7gi0mgHJRNrDTlxVXSui4MIbP G7PXRMQCLem5KhwHN/E3XX+41Cl8tB9v9SfZm0CGeHxNpo79ICgviMDCyhIXUDKLZ59y rW8z/yuDCb/V2VZIWmJtZQ0tQeesoyupmIIJJBQZlzCk2a4ARYaBNtcfBzRneUxrJVQr 03MG8QhWFR+Ajdc3hTEg8pY3VMP69Wfg7C3LocxLqvT7WD/eo0Ps1ibLCXZYti094ecf WUng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695768844; x=1696373644; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dQJAscD2wySe2863Xyr7yQaPfi/ox1Xy3HuPTVjHqlk=; b=qZLYWJktxRfqatimo1LCCveGqMHmItVpXpKbZN67Wr5bMiNEo6NP75G00pmcvkItpc LfGNw0Ai3kbHg2eBlq6aOcmmsl4ot+bU6pM26c5OmABbTULONrn2ptd3jfatNzDiEf3X voYyuFaUf3J4/ZCEFJfL4Iscdm/AlwZELi5eqQhFc3tERFvvyHXs5NOZ+CtLNpeacbCv VjmUJAP/wuXCNyrAalNjbHVJ8fZJz9aBZcfzSDwunT2l4OLrjhRpEIaIEAeoy3r87fo/ c3SswndbqivvDWm8AWLEq+2FX9d8GYOGLUZkrd0qQDdpK6bEecICxlEJVfeF0d8OfKcK zEhw== X-Gm-Message-State: AOJu0Yy79NDIlUN4YTUSE064g1A/fdJhPwF3uOFjuh9vQ/xmnD1BOnG2 uyO3yA+EK8QqENGHl19AU4U= X-Received: by 2002:a17:907:7703:b0:9ae:701a:6efa with SMTP id kw3-20020a170907770300b009ae701a6efamr79673ejc.69.1695768844013; Tue, 26 Sep 2023 15:54:04 -0700 (PDT) Received: from skbuf ([188.25.161.12]) by smtp.gmail.com with ESMTPSA id s14-20020a170906bc4e00b009937dbabbd5sm8347424ejv.220.2023.09.26.15.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 15:54:03 -0700 (PDT) Date: Wed, 27 Sep 2023 01:54:01 +0300 From: Vladimir Oltean To: Lukasz Majewski Cc: Tristram.Ha@microchip.com, Eric Dumazet , Andrew Lunn , davem@davemloft.net, Woojung Huh , Oleksij Rempel , Florian Fainelli , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 net-next 0/5] net: dsa: hsr: Enable HSR HW offloading for KSZ9477 Message-ID: <20230926225401.bganxwmtrgkiz2di@skbuf> References: <20230922133108.2090612-1-lukma@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230922133108.2090612-1-lukma@denx.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 16:43:08 -0700 (PDT) On Fri, Sep 22, 2023 at 03:31:03PM +0200, Lukasz Majewski wrote: > This patch series provides support for HSR HW offloading in KSZ9477 > switch IC. > > To test this feature: > ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 version 1 > ip link set dev lan1 up > ip link set dev lan2 up > ip a add 192.168.0.1/24 dev hsr0 > ip link set dev hsr0 up > > To remove HSR network device: > ip link del hsr0 > > To test if one can adjust MAC address: > ip link set lan2 address 00:01:02:AA:BB:CC > > It is also possible to create another HSR interface, but it will > only support HSR is software - e.g. > ip link add name hsr1 type hsr slave1 lan3 slave2 lan4 supervision 45 version 1 > > Test HW: > Two KSZ9477-EVB boards with HSR ports set to "Port1" and "Port2". > > Performance SW used: > nuttcp -S --nofork > nuttcp -vv -T 60 -r 192.168.0.2 > nuttcp -vv -T 60 -t 192.168.0.2 > > Code: v6.6.0-rc2+ Linux net-next repository > SHA1: 5a1b322cb0b7d0d33a2d13462294dc0f46911172 > > 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 Reviewed-by: Vladimir Oltean Thanks!