Received: by 10.192.165.148 with SMTP id m20csp4998792imm; Tue, 24 Apr 2018 11:54:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+3ODBOd1Gas+BfFi/Lf69WYoTXC6mlLumPDlbIQHp44RW4iUK1F544ah8z5E6LyLNZieh X-Received: by 2002:a17:902:b112:: with SMTP id q18-v6mr26229248plr.371.1524596068950; Tue, 24 Apr 2018 11:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524596068; cv=none; d=google.com; s=arc-20160816; b=ksSFrnbl9mKZ5HTinZ4tzEMGq5VKaw+gtFhGWw/HyYH+QM8WrPJ2OA4crMJ7QMyiCb IhpVG6tyWLoNBTw2tKs1eTZOSbNxt+tFmw6G1iq2bRxWn3A/04dFyz6Ve7Qs65Er9riF 1aDevEY8jdDuCVqYQ09Ss4pSVKNmW2K8jkoy36iqgALozB/3CLXxnpcFVtLU5FUXd+1i b8oS55MbpfgtHuUkEsPGyVkx0MW9tgqv3JDpCYc2G/b1XJtMfOHZDr15SU7g+bUQfYoG zvK4JH/kaX4gIVuVO/vjXA5FCm9ukfQQFzFydCjuCfStNx5dhDGDQMmokX1sOm5mLrA8 gsZQ== 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:arc-authentication-results; bh=jPxAZ/533UnlzSKry5PnhEOgOQ6a0VMDx6typodEk48=; b=yw87hJhw/L0t83JHtZ28GBcF1+kqKptqwHy10ekpIsX1wECQEsnm6GGE9EviZqublh 7gJfKtizSnbnqwE+1u/5bxqqHOK15gtRpprqzu/8pmLkKWgi0TW7mPZlM7MGS/c52VKn htSWO1s72MYUjSSZBDqfsRhnOFb6U0mEitWa+JUQw3qprSbVyQCbbWdFwIg6BMApaN55 yQHVdadd485ATgZxLwSrV1Xw7had9+C2WUs15es1yYj1LIkuqdDfsjHZwdFdJ9vmwIM4 rOlEG4jxsOaWBHPN9k3J4O0OdtzeqgZVHJgNxDKPCegRIAyZHIEvNXkTDonsLIdKkJqA MFwA== ARC-Authentication-Results: i=1; mx.google.com; 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 h80si14237508pfj.129.2018.04.24.11.54.14; Tue, 24 Apr 2018 11:54:28 -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; 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 S1752198AbeDXSww (ORCPT + 99 others); Tue, 24 Apr 2018 14:52:52 -0400 Received: from mail.bootlin.com ([62.4.15.54]:36122 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbeDXSwv (ORCPT ); Tue, 24 Apr 2018 14:52:51 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 636E120719; Tue, 24 Apr 2018 20:52:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 343AD20384; Tue, 24 Apr 2018 20:52:39 +0200 (CEST) Date: Tue, 24 Apr 2018 20:52:39 +0200 From: Alexandre Belloni To: Andrew Lunn Cc: Florian Fainelli , "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support Message-ID: <20180424185239.GG19011@piout.net> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-6-alexandre.belloni@bootlin.com> <1df0a932-f7c1-f1b5-9a35-3c16d0c551e5@gmail.com> <20180330124537.GC14180@piout.net> <20180330135422.GA28244@lunn.ch> <20180330141634.GD14180@piout.net> <20180330145008.GE28244@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180330145008.GE28244@lunn.ch> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I realise now that I didn't reply to this comment: On 30/03/2018 16:50:08+0200, Andrew Lunn wrote: > > The fact is that ocelot doesn't have separate controls. The port is > > either forwarding or not. If it is not forwarding, then there is nothing > > to tell the HW to do. > > Think about the following sequence: > > ip link set lan0 up > > After this command, i expect to see packets on lan0 arrive at the > host, tcpdump to work, etc. This probably means the port is in > 'forwarding' mode, or for B53, STP is disabled. > On Ocelot, forwarding packets to the host (i.e. forwarding frames received on the port to the cpu port) is separate from bridging ports together. So after that command, the host can receive packets on lan0. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com