Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2226337ybl; Sat, 10 Aug 2019 20:23:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/cgqEz6ZCx8J9gn034gU6FKVLq6atWRis6QBzXqUc2TS6LrBk1SqoT2i4cBKud6HW3EMb X-Received: by 2002:a05:6a00:cd:: with SMTP id e13mr206392pfj.202.1565493814391; Sat, 10 Aug 2019 20:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565493814; cv=none; d=google.com; s=arc-20160816; b=0Fc3VpRk0TtxZ/SBp9ROK/CczD2hYv1b2ycWyqy669fDWtkA5nk9sSRj00gbmRazrh 87nGxbmpCJQjX0vnvce/JpR1SJD59a4SSBXFK9+KxUE9Y6mDx/KfvhtOWMt2p2tYPXO7 T6KW4hh9l2mk1sG0a4SsrlVyAAMng9SNyZPdZQsR2EAUPGI7fiUIIxrundukxhOiEfpS yxQUOa5VNxPjd/4cq8k0GqKeyvu3KbnBI1f+t6gAobmZ2oqR676MFj2CtcTLEaEkKEZb qHjjTV2h8pQZXiOs1ZLWqGFBlK4ZnjzMLzQ5KYdEaaIY6eDfU/eQQ9Rf9G2x2zQgfHuL ca9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cI5p1XQLyIExMHElEEu9ho2V0ZrEcMfH/r5aBwEaBW0=; b=nJb3JzhOSQHRoLbGEef0AIJsm9zB74bVJcYV0S52SmXneLBjfZ0WsVexev5gYYgSoh W99KswaGTc4jsqBZ+zawOScUu7JVh7XHwAXj4U7VNbXQLAOERCyZV+vJnQTKLVWmW1K6 BQV7uW+Y1hICtieE6jIW8i20DeTh2IhiYEnSBjTOZ7wVDHCQIOOBc3xmz8SBvRUedYLO b7cn8A7XyHgUCmz7jksLinH1PLt5dd0/P+8aMykarVRgqGp3TBjo4HT+fo/UF1OloFhd A86w6bORenU2fayYlZ3hqRWRdJiLM2ibOu5ka/cDCFp2eBSd+5/Qj8NAKCV3JdBkWao0 2jgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Yzr0rdSC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si57522795pff.229.2019.08.10.20.23.18; Sat, 10 Aug 2019 20:23:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Yzr0rdSC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbfHKDWp (ORCPT + 99 others); Sat, 10 Aug 2019 23:22:45 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50556 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbfHKDWo (ORCPT ); Sat, 10 Aug 2019 23:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cI5p1XQLyIExMHElEEu9ho2V0ZrEcMfH/r5aBwEaBW0=; b=Yzr0rdSC7WwCIyIDdxVQKifrhr +0fqD6dxkh5xNxHyEfNgmrdpsq3nyHuz9YN702twIiDZMfz0A66jnS9DGnUVAB/g6+7BXRt3qdACO /ZrvpD3d/BdKElQ9dHneeszuonhkwqbZXYfKUwyOO5CQvZKrL3b+Mr7CyNfy4rioZVWc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hweRH-0002Bu-UH; Sun, 11 Aug 2019 05:22:35 +0200 Date: Sun, 11 Aug 2019 05:22:35 +0200 From: Andrew Lunn To: Ioana Ciornei Cc: "davem@davemloft.net" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "f.fainelli@gmail.com" , Ioana Ciocoi Radulescu Subject: Re: [PATCH] dpaa2-ethsw: move the DPAA2 Ethernet Switch driver out of staging Message-ID: <20190811032235.GK30120@lunn.ch> References: <1565366213-20063-1-git-send-email-ioana.ciornei@nxp.com> <20190809190459.GW27917@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ioana > >> + struct ethsw_port_priv *port_priv = netdev_priv(netdev); > >> + struct ethsw_core *ethsw = port_priv->ethsw_data; > >> + int i, err; > >> + > >> + for (i = 0; i < ethsw->sw_attr.num_ifs; i++) > >> + if (ethsw->ports[i]->bridge_dev && > >> + (ethsw->ports[i]->bridge_dev != upper_dev)) { > >> + netdev_err(netdev, > >> + "Another switch port is connected to %s\n", > >> + ethsw->ports[i]->bridge_dev->name); > >> + return -EINVAL; > >> + } > > > > Am i reading this correct? You only support a single bridge? The > > error message is not very informative. Also, i think you should be > > returning EOPNOTSUPP, indicating the offload is not possible. Linux > > will then do it in software. If it could actually receive/transmit the > > frames.... > > > > Yes, we only support a single bridge. That is a pretty severe restriction for a device of this class. Some of the very simple switches DSA support have a similar restriction, but in general, most do support multiple bridges. Are there any plans to fix this? Thanks Andrew