From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8259CC83F2C for ; Tue, 5 Sep 2023 16:19:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241348AbjIEQJ4 (ORCPT ); Tue, 5 Sep 2023 12:09:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354534AbjIEMXm (ORCPT ); Tue, 5 Sep 2023 08:23:42 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF08B1A8; Tue, 5 Sep 2023 05:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=mH+z1pBMdYARyiLQ+raRnOwLNOvDHlI+88zIddX6yI8=; b=TrKg0pZmkW7eG3RHN00Y9V1gAj b84AX0OegIp9znWXHtAtCT4w0yM8wcLutk7hlZ6MprBXMQUau6kCSEtYE8sQ++JQbJSVRHRs/GcAI gUezTQpM9nb5EwW+YxmKuqlxuJVEqrPcBNcGH725DtZ+G/4MMOgBPVM03nxsnmIlZlCE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qdV5d-005nyR-QK; Tue, 05 Sep 2023 14:23:29 +0200 Date: Tue, 5 Sep 2023 14:23:29 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Lukasz Majewski , Eric Dumazet , davem@davemloft.net, Paolo Abeni , Woojung Huh , Tristram.Ha@microchip.com, Florian Fainelli , Jakub Kicinski , UNGLinuxDriver@microchip.com, George McCollister , Oleksij Rempel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 RFC 4/4] net: dsa: hsr: Provide generic HSR ksz_hsr_{join|leave} functions Message-ID: <583cd9b6-06e1-4ed7-8a24-c977b2001e20@lunn.ch> References: <20230904120209.741207-1-lukma@denx.de> <20230904120209.741207-1-lukma@denx.de> <20230904120209.741207-5-lukma@denx.de> <20230904120209.741207-5-lukma@denx.de> <20230905104725.zy3lwbxjhqhqyzdj@skbuf> <20230905132351.2e129d53@wsk> <20230905120501.tvkrrzcneq4fdzqa@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230905120501.tvkrrzcneq4fdzqa@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > And then we would have one port with SW HSR and another one with HW > > HSR? > > No. One HSR device (hsr0, with 2 member ports) with offload and one > HSR device (hsr1, with 2 member ports) without offload (see (b) below). I just wanted to comment that offloading is about taking what Linux can do in software and getting the hardware to do it. Linux should happily allow two HSR devices, working in software. If you can only offload one of them, Linux should continue to do the other one in software. So please do follow what Vladimir is suggesting. Andrew