Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4902400rdb; Fri, 15 Sep 2023 16:30:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHypuSvtf84224NgV2gm6ks6y/829slOzDZ9SPypljKs0e8Jb7Q8CzsuPPSwlX9yuQGloK1 X-Received: by 2002:a05:6a21:6d8d:b0:159:c3d5:40bc with SMTP id wl13-20020a056a216d8d00b00159c3d540bcmr3855070pzb.1.1694820640509; Fri, 15 Sep 2023 16:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694820640; cv=none; d=google.com; s=arc-20160816; b=TaK7879NzTxgI6g3N2VotttbT0yX1fru26xsx48pheoAb+6cL2DMOP1V4iYdmNBmTP BSqiJPXjsjBhyLlHkPZifuPJ29RCiCJ1hL74qnvpjNeE7jFQUo0Nw7f0Sx6IqQI8qw/B t/e21V2FBZ1olLTy7dfnHmFeOK5UMP54Rmky1p4eUgvnZnnDjSo+VJOmqlT1CR8c1Liu KE910t/Ohdb6OQdevFS5EJBSO5fB/Cnu6O1dxaqj8q0oNodZ/gVUkFtsnd2yMtVFHdcj B9GNxDXvkMnkYcCyJ5opH/qX5S4eS3rj1HHxeS4HSSFwC8Vi0pPFsUgn03YRMi8OYoMz HzwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=GaCjucgmR2ewr/vach/jiJUHP6lxAeRNjrbpvetIbhs=; fh=O/dXemB3IFoxVe3podKlqcIZWbd6s+CPpG6akqYnvnk=; b=c4mLF4WfZO07nu0oVbZUnVtk4czPgoBX4OP18J0siF600TCxgbwBf0AtFPEctvkBnT P+seVKJcuajhjCv2vqfTm27UTjH9GrftdhMAT1tCxCtHaEGtTXFT1n/P+BPkRNi6r8um 4S1gk7jQmUvuYA8Pt4ujGeex3gP5RsAtvwK0bGp+3/you0O+HHiBEqpMO4rpNBldwwAB /jbG3yhwDLOfL9mxjGYoK/Yiafyz75TdNfosA1GZkfpwMTSavsah4c7vLAPTDRJf2qD1 Av6iZJy0jHTJSPoQTN3ew2B6O+cEuZt7I2ED7XtBoq9BDBMKgSufx8VFTG4BQkQ1tZ59 4txg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=W4ifAGTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id fa25-20020a056a002d1900b0068e2cf2161fsi3992473pfb.155.2023.09.15.16.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 16:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=W4ifAGTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 717A182CAC2A; Thu, 14 Sep 2023 14:18:46 -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 S229593AbjINVSp (ORCPT + 99 others); Thu, 14 Sep 2023 17:18:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjINVSo (ORCPT ); Thu, 14 Sep 2023 17:18:44 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8B426B2; Thu, 14 Sep 2023 14:18:40 -0700 (PDT) Received: from wsk (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 57E1F864F1; Thu, 14 Sep 2023 23:18:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1694726317; bh=GaCjucgmR2ewr/vach/jiJUHP6lxAeRNjrbpvetIbhs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W4ifAGTqsSa9eHpgsVjOY1+CAYl9DanA2tnNIWVs2BvES+m9hqf+S8FbE0sQ9lY++ L1KOLJlDCYVT/bgCK9fAcufKw53sZ2YDPkhZpbBoCoANkPXNUMwakvpTUfU7CXUP1A WMBChieM5Hh1gLucp4OqDnpAz73h5xMSbZjGzSSiQnac2zUqI0HLc3qxcDwViLiOP7 7BThGVgKobx7lrxVEbfi5fDBCxdZ44IxG3aM8536i7s4gW0+amNXoXCgOcUz7EVMxT fDmeAO6hkAZZG8Ec3FPBVA5/rwaRIviUWGbCpzcw3wDUbWAZ0N1FBeM4FQKqPcBHXB 8BLxWtb8/wCKg== Date: Thu, 14 Sep 2023 23:18:31 +0200 From: Lukasz Majewski To: Vladimir Oltean Cc: Andrew Lunn , Tristram.Ha@microchip.com, Eric Dumazet , davem@davemloft.net, Woojung Huh , Oleksij Rempel , Florian Fainelli , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, Oleksij Rempel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [[RFC PATCH v4 net-next] 0/2] net: dsa: hsr: Enable HSR HW offloading for KSZ9477 Message-ID: <20230914231831.0f406585@wsk> In-Reply-To: <20230913184206.6dmfw4weoomjqwfp@skbuf> References: <20230912092909.4yj4b2b4xrhzdztu@skbuf> <20230912160326.188e1d13@wsk> <20230912160326.188e1d13@wsk> <20230912142644.u4sdkveei3e5hwaf@skbuf> <20230912170641.5bfc3cfe@wsk> <20230912215523.as4puqamj65dikip@skbuf> <20230913102219.773e38f8@wsk> <20230913105806.g5p3wck675gbw5fo@skbuf> <20230913141548.70658940@wsk> <20230913135102.hoyl4tifyf77kdo2@skbuf> <20230913184206.6dmfw4weoomjqwfp@skbuf> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/f7Bh6uyRP=wObsNfKuHGfr2"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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]); Thu, 14 Sep 2023 14:18:46 -0700 (PDT) --Sig_/f7Bh6uyRP=wObsNfKuHGfr2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Vladimir, > On Wed, Sep 13, 2023 at 04:51:02PM +0300, Vladimir Oltean wrote: > > > I'm really stunned, how much extra work is required to add two > > > callbacks to DSA subsystem (to have already implemented feature) > > > for a single chip IC. =20 > >=20 > > Some observations are best kept to yourself. This is only the > > second HSR offload in the entire kernel. To complain that the > > infrastructure needs some extensions, for something that wasn't > > even needed for the first implementation (tracking a MAC address), > > is unrealistic. =20 >=20 > Can you please test the attached incremental patch, which applies on > top of your RFC v4 series? It contains an implementation of my own > review feedback. Thanks for preparing the patch - it clarified all the point from previous e-mails... (and shed some light on mine understanding of DSA internals) It works when applied on top of v4. No performance regressions (with nuttcp) observed. I've also tested the scenario when one tried to alter lan1 after HW offloading enabled. It was not possible to alter the MAC address. As fair as I understood from the commit message - some part of this patch needs to be applied before HSR offloading v4. Hence I will wait for it to be posted and upstreamed. Only then some of this patch code would be squashed to v5 of hsr support. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/f7Bh6uyRP=wObsNfKuHGfr2 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmUDeKcACgkQAR8vZIA0 zr2aiQgAjbddYHIsZ5gXqPROrAWEQ6T4afqk4bryUfpgNiXiT6uDYt+m0ohRfezL gzEU+D1pom+5m9YPNXJpM67lIO1HKx55v30d7vOo3wY4xwPYBDvo9kkK2j0gtEHl 6iJoJn6tTqZnY6Oyusd4WfUo2YSmFyM6PwyaRf5vYtGDhnjogKEn7oBf7nPMJt71 D+fGRo5eJuV8Ckdez7BzePskYzCr3VygnBoZfVWcQhfSA4JlhQfednx/WslgPNFS 75XhnDxePuozbC1rUt1LBAzXYvEOgWG6T6oElIXBCB2TsrIWcuIXeIS9Ys26ZsH/ F+IqSoVI5kWml9IvOiscMxUwFkTx2w== =5sNg -----END PGP SIGNATURE----- --Sig_/f7Bh6uyRP=wObsNfKuHGfr2--