Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10886870rwd; Thu, 22 Jun 2023 06:14:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+K7rFApxdQ16YKl/MY5+X+TWJieWSl6HB3l5mPlhBZJpGPksoQHL18nwu1O86Zx9gnTDd X-Received: by 2002:a05:6870:c355:b0:1ad:f52:81d3 with SMTP id e21-20020a056870c35500b001ad0f5281d3mr4809134oak.45.1687439687985; Thu, 22 Jun 2023 06:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687439687; cv=none; d=google.com; s=arc-20160816; b=xTzKKpPVQjXw72e2PzAtqa3iX1GvmbaXxgR5qMQv/q4CFyHkirc03tWCGI/XKW3ckP VFc/qkhxtr1sFHXcuKnmOjyTDCIcLHdhq355Rl4mgOHqUWXvh0VNED+nQBUrsjnYKrjY imh5u/YGw17ou2c7fNTe0+V7lTeV9N1tuQczH6rq7iOLyItVnOxWwroapdwnIbg4C9gO HrqSlOitMvktp9TkUFNZj3QUJphzV6x6WfR5yBw8exLNX8FTOR1VirttiCU/AmOTDia+ FAQgp8MtbPk87pXWFBcUs15S7qaR0ZEEDzL+W0oeTXcYtASydxUY8fRpCXDHGfM3Exe8 SBkg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T+JzroaYPGRedMf7AobUJGzDjOZU8+KsM2kMdTfTlf0=; b=AW2f6DQo8PzBg5LEnCr0MmxMEbYPItCg0PVMcTid3k/zkMUzdTnj7TcfDE6Oj0CIug mzkGH0Gdk9XU76rCGVM2zRf+B4JRbwLsHldjRrxlCkflas5dcn1COtd1r6oyr9s7V7ST 6563qtVUrzs08Bg7sYRCGDAkmqDeI1l04MQN5vykqiPSfG23Q9ckT049o28wUobsR/rR noVHGlLAiMicP5PVn05kKzeAR2YAcroqfUzSF9IR+sc8NCCLm4+fT5zj81xPFU4mGqJM UwMkLyTUNtPfjaSMRx2dSkl/dmrrNVESfd457Q4a/1QNqwemduHczHLSE50tH34YhATt dRqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W980D4Ah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6386c2000000b005343e03b044si6443512pgd.697.2023.06.22.06.14.35; Thu, 22 Jun 2023 06:14:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W980D4Ah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbjFVNBP (ORCPT + 99 others); Thu, 22 Jun 2023 09:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjFVNBM (ORCPT ); Thu, 22 Jun 2023 09:01:12 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 045161BD0; Thu, 22 Jun 2023 06:01:11 -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-Transfer-Encoding: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=T+JzroaYPGRedMf7AobUJGzDjOZU8+KsM2kMdTfTlf0=; b=W9 80D4Ah5R4ghyLS0x9i6GNslJ8+8KoA5MO5exWEQRoUUiGrhvoi2JVUFI4UbL4nBoAuk1GR0mdtE4Q FT1JQK3T7S1B2mmQOt0G2doX0QL9uYGT7GTRJlxJwLgKtFykmMt5uXjEsgeSdRrjgVC+B3nZ3civm Tx51DAeR8I1ffEY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qCJvq-00HGSV-8b; Thu, 22 Jun 2023 15:01:02 +0200 Date: Thu, 22 Jun 2023 15:01:02 +0200 From: Andrew Lunn To: =?utf-8?B?UGF3ZcWC?= Dembicki Cc: netdev@vger.kernel.org, linus.walleij@linaro.org, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/6] net: dsa: vsc73xx: add port_stp_state_set function Message-ID: <70f3b45f-7c57-4394-b96e-20a014718f5f@lunn.ch> References: <20230621191302.1405623-1-paweldembicki@gmail.com> <20230621191302.1405623-2-paweldembicki@gmail.com> <27e0f7c9-71a8-4882-ab65-6c42d969ea4f@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 10:38:22PM +0200, Paweł Dembicki wrote: > śr., 21 cze 2023 o 21:33 Andrew Lunn napisał(a): > > > > > + struct vsc73xx *vsc = ds->priv; > > > + /* FIXME: STP frames isn't forwarded at this moment. BPDU frames are > > > + * forwarded only from to PI/SI interface. For more info see chapter > > > + * 2.7.1 (CPU Forwarding) in datasheet. > > > > Do you mean the CPU never gets to see the BPDU frames? > > > > Does the hardware have any sort of packet matching to trap frames to > > the CPU? Can you match on the destination MAC address > > 01:80:C2:00:00:00 ? > > > > Analyzer in VSC73XX switches can send some kind of packages to (and > from) processor via registers available from SPI/Platform BUS (for > some external analysis). In some cases it's possible to configure: if > packet will be copied or forwarded to this special CPU queue. But > BPDU frames could be sent to processor via CPU queue only. So It's > impossible to forward bridge control data via rgmii interface. So am i correct in saying, if you actually enable STP, and it decides to block a port, the BPDUs are also blocked. After a while it will decide the peer has gone, and unblock the port. A broadcast storm will then happen for a while, until a BPDU is received, at which point it will block the port again. Andrew