Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9977745rwd; Wed, 21 Jun 2023 14:36:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5m0YLf3HTLszIPZQtLNnfKpeZF5OwyWIKloaMjyyjajLFGaoJKNFz4xMTmE9HfF6XMK1YD X-Received: by 2002:a05:6808:2393:b0:397:fbe7:a0fb with SMTP id bp19-20020a056808239300b00397fbe7a0fbmr21943340oib.18.1687383384757; Wed, 21 Jun 2023 14:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687383384; cv=none; d=google.com; s=arc-20160816; b=H+RNqObFkBwPrAT3i/1pOXncrdTD0GHEkEn8fUyje88oXVGCXKAOo/a82uvDQI+P4g j0MwZegFTudkQ5bocRF3nuZNEEE2rM9Fxx0zEoXSO51Wv4ySq99tuYVEmvbS9VgNTXqZ WPtCMS62D1535jJAbSmS3qcg2njXa8er+vq9EML0bXwD85leDtrvMH7798omSWHrqxkd 1TMAFdvgzG5dlPyI/7fIJ5f3Vo+yH68Snzy5S9hxRi6ADQDZUeuzvtnZKHa2uNtuUhsx rRUp1J9Fwo329D1Z8ODXD/S9Gn/2PBcThWU4c7JAMSXjcO+yLjQu5qIaQQVSDYvkMgFB 3qKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=aSGrXpDdr+ySzk2gG5rg7v9234imj6fLzZDG7vPyDLA=; b=Qcg3owNzfETqTuTHZ/3NBK9QnFjgjRA5GWH105uVSGsRoui0KMOcYGMQO0TnVI/0Fu CDnJCBEom1b4iFpFWyCZt5t746530W+ZeYlcjAJpI+kVtfqBAtlGthK0arsxf3EgpNUU DVUA4HXQwn7sk7K9JFj1GVuvkvH9lEC0NcjRb1neuEE5mE/qdKG5FQiDYAtXTiyFc2jI DqPYDOhTzDTSZWTHOUcz86o8RIVsmZ+ZLo02zufieqKfe7pEd/PsEdCciB4vMQlqcIJ7 qI9XVIpeY7rBRfK8QAZBeMiMlwPkxOIAWPpbExGJ2KW/Ubo+vyGHWdtFVhB9QRqbl8Fj zZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=onnUufPf; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b00543c1b205a5si4802656pge.149.2023.06.21.14.36.10; Wed, 21 Jun 2023 14:36:24 -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=@linaro.org header.s=google header.b=onnUufPf; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbjFUV1b (ORCPT + 99 others); Wed, 21 Jun 2023 17:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjFUV13 (ORCPT ); Wed, 21 Jun 2023 17:27:29 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2137219AB for ; Wed, 21 Jun 2023 14:27:27 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-bb3a77abd7bso6340439276.0 for ; Wed, 21 Jun 2023 14:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687382846; x=1689974846; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aSGrXpDdr+ySzk2gG5rg7v9234imj6fLzZDG7vPyDLA=; b=onnUufPf0dJQ3lMOoRacqhbEXGB8fK737MzJqualg8YoJnW+J/rPFMgTFatwXn0U+G /2JDLwSk960OkrdDwo5+e820fhUDPykyJgxAMDg5T9JiifLTzwWi1zpSCeLtS7YjEFjP TbwaF1v61WT+HbLxsO3UZ8pDmEIp5MBCMH7U8oMzjkrcW/TzT58X9lgnivaFD/eyW/2A FlqV+liEkluzTvIqHPP3YCBA4Rrr9bkUyMa4itRpS6YOb7sX77U+Qc73vkwBCdkn0oia fVb2oWZDIPfntzSClJuSDclGd0by7+Ff2tl2dQga/BsgJf038KUOYBUNsnfS/doyh2yo xTOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687382846; x=1689974846; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aSGrXpDdr+ySzk2gG5rg7v9234imj6fLzZDG7vPyDLA=; b=IpTsZ76uHOlgPPQFzHQXNcrGokWQejk/n8T6zOQuxDFPR0tSVdTsyoELloMbRGXrU1 AbrEpCrLT/Oboekkd39ZvClBGa4TL/qz+wQtyJVgCbuYq2+jxTEer5Rd2H1upzClenlm XVDBXOJpwhUozriA4TPe6FrKeHTMOWPnPxS5XtdK3GnGFjTmISKTOEROqNq+yuyhLjfz V2P0v0ZwUhgqziUwY5PktR3GWuOkTEBTpQC/rjZcd/emIN4wXHwJ9e1492+g6IA7nzgt 8H6/lsk2NlbQ88GEjHKq5cv57m23J1FlrfadMET8LYl9q4m3AptPha+UPs23s1qP4NN3 w6GQ== X-Gm-Message-State: AC+VfDwUyyFR0EA20/dEY6EY4tIOBOmr8d6vmkoQWWU169P5wHZu9nsI SjfME8zhJmeqIdQ1jywmJoj7LmIfEqFRIpfMtS0mXw== X-Received: by 2002:a25:d8c:0:b0:bca:f2b2:cbf5 with SMTP id 134-20020a250d8c000000b00bcaf2b2cbf5mr13640953ybn.38.1687382846209; Wed, 21 Jun 2023 14:27:26 -0700 (PDT) MIME-Version: 1.0 References: <20230621191302.1405623-1-paweldembicki@gmail.com> <20230621191302.1405623-2-paweldembicki@gmail.com> <27e0f7c9-71a8-4882-ab65-6c42d969ea4f@lunn.ch> In-Reply-To: <27e0f7c9-71a8-4882-ab65-6c42d969ea4f@lunn.ch> From: Linus Walleij Date: Wed, 21 Jun 2023 23:27:14 +0200 Message-ID: Subject: Re: [PATCH net-next 2/6] net: dsa: vsc73xx: add port_stp_state_set function To: Andrew Lunn Cc: Pawel Dembicki , netdev@vger.kernel.org, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 9:33=E2=80=AFPM Andrew Lunn wrote: > > + struct vsc73xx *vsc =3D 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 chap= ter > > + * 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 ? The hardware contains an embedded Intel 8054 CPU that can execute programs to do pretty much anything. The bad news: it requires a custom SDK thingy that we do not have access to. So far we used the chips in a bit of vanilla mode, which is all I have ever seen in the systems we have and it can't do much, not even add a helpful frame tag, but as can be seen from the patches it can do VLAN... Yours, Linus Walleij