Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1205332pxv; Fri, 25 Jun 2021 07:42:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz61YbDWrVLw1xnitW0V0QpE0N7F28XFj4DwhZ0BVKmxGgcX0fei1PSrTcmqWMcyAFbIav X-Received: by 2002:a05:6402:451:: with SMTP id p17mr12124473edw.332.1624632134280; Fri, 25 Jun 2021 07:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624632134; cv=none; d=google.com; s=arc-20160816; b=TOYGWhk5ee0VKCXdTQ1NjyuOIbdpeVzgCZRg2rsZHgkCWTr6EHBsyQf3GefF+WV6jF KuR8MuhaH26t3BE42v3ZeUplMDdYZF70HXZQ6Yat7kt/JlKGoPmRLzR+Gxa/3syvgJz2 5DMlQqIRZKVARPLkC2KsLKG9Zt+TFqV5VsOd+Up+MYfuK1Ad3SEZvB/GQq3LqY4lhvl/ r/O8WidWBdHZo+otsJ8fRdkWKBkB582fNni3rvjDBajAxUbD56mcmi0rMMi6EEW8UcTY 271f4K0+GoP/FP0QnIZrYuE+llzXc7f3AmIJdxVRQDYsyescMPBk1EU1wzN9z68mQ2Zs SUWQ== 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=w4IQO6DFVyzsolvAWmphYfHy/rPQ4YAG/FamYX4clww=; b=qsdq88EVnHxqWDPdOD+P2NoggCAAmyGR+2ptL9VkfehIv0h46XTcKEoaqSWipynWhe XDfJXhZcUdfqAoI6hDnf9LUYDP6FCKvxGrme2ZCkvGwTIKb5xf2z11hUXOREAzHFp7SE PCAmocnn/JSbwZuL/Jh9D3nx+odlue4Ct/DXjfseGAVg55xtjPW0ZqgNBD1Ne33T8V9l CM0Z2jo6Ew6+n+9rKeP0e2HQkEyNwMkuVv+Ur3lRSJZyZk4PPt0z51Mx3EuKNDGdEYHN KhwcGRpNZVS1PAvPPvt8J3+TwPTWwTiOnp3b+C6eG1BUDpZ8ARNr4wy/wBJCw5VhEIwb c3pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aAf3o6P+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si5920394ejt.172.2021.06.25.07.41.49; Fri, 25 Jun 2021 07:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aAf3o6P+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbhFYOnI (ORCPT + 99 others); Fri, 25 Jun 2021 10:43:08 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55916 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231521AbhFYOnC (ORCPT ); Fri, 25 Jun 2021 10:43:02 -0400 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=w4IQO6DFVyzsolvAWmphYfHy/rPQ4YAG/FamYX4clww=; b=aAf3o6P+jbEuvDCewlGhAv0jYi Zc2Sx7la0Q//AkKE293wyg0aHPhF9/9XBKoM9dwYLoMZggjZkrwhJmSejyann22FOYQMZcc+/arjS N2RR5RRYjrLbq0aTs5r+4flsIKxF7rNwDt7cJuR3TPQ1DTM62X1cZtrWif9Vf2BBpGT4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lwn0H-00B79E-MB; Fri, 25 Jun 2021 16:40:21 +0200 Date: Fri, 25 Jun 2021 16:40:21 +0200 From: Andrew Lunn To: Lukasz Majewski Cc: "David S . Miller" , Jakub Kicinski , Madalin Bucur , Nicolas Ferre , Joakim Zhang , Florian Fainelli , Vladimir Oltean , netdev@vger.kernel.org, Arnd Bergmann , Mark Einon , NXP Linux Team , linux-kernel@vger.kernel.org Subject: Re: [RFC 2/3] net: Provide switchdev driver for NXP's More Than IP L2 switch Message-ID: References: <20210622144111.19647-1-lukma@denx.de> <20210622144111.19647-3-lukma@denx.de> <20210623133704.334a84df@ktm> <20210624125304.36636a44@ktm> <20210624163542.5b6d87ee@ktm> <20210625115935.132922ff@ktm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210625115935.132922ff@ktm> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I do believe that I can just extend the L2 switch driver (fec_mtip.c > file to be precise) to provide full blown L2 switch functionality > without touching the legacy FEC more than in this patch set. > > Would you consider applying this patch series then? What is most important is the ABI. If something is merged now, we need to ensure it does not block later refactoring to a clean new driver. The DT binding is considered ABI. So the DT binding needs to be like a traditional switchdev driver. Florian already pointed out, you can use a binding very similar to DSA. ti,cpsw-switch.yaml is another good example. So before considering merging your changes, i would like to see a usable binding. I also don't remember seeing support for STP. Without that, your network has broadcast storm problems when there are loops. So i would like to see the code needed to put ports into blocking, listening, learning, and forwarding states. Andrew