Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6224272pxv; Thu, 29 Jul 2021 09:13:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrx3qGTccnhDZeyW6CPGLwNme3MtNfEiEmcBW3k/BbXoMOPxgic8pc0Sf7grsLZ5o+i3KQ X-Received: by 2002:a92:d083:: with SMTP id h3mr4289126ilh.157.1627575232833; Thu, 29 Jul 2021 09:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627575232; cv=none; d=google.com; s=arc-20160816; b=lp5gqDL3zFiKD55wNLNQWwalDOddyBFXxq2dWTxytLWeIc/HGb8b4FbNEut4sA1pXO 0osoUBsrY6wugskpADJ5TRzyLwe8GbXy5PlVhWoV2damQWd/0X7a7HfLio/xspYg4+Cd k+X9ghNwy00fgg9ik6dbABZvPdyxWR03DRp+VZ4a1d8+HRCNQ2PSAa68S+8YIczKLS7j u4FmL2gHugZgnUQrvV6RJDQ8g2Mp3WZAO+82yCtxvWxh5nAaS+5zx4dLzOt4AktVbanO zn0OsKSczHYR+E2UkRPZtUpO2aBDZtOt3fgiG9aPfUGdWBpjn88Jrv6BIgVm2dBXk0kQ QoTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N/ukz9Nxovf/wu6f2u5vCaEbaJjcjA44qpNIta3Aiwk=; b=M+fHvfVLaXc1V5/02u5/6oU1nVlvxk72J6WjVEYx3FmhgAyE1nheeoutbqTU2B7P+P bQEouirf3/3zTbYdgoHCUaOYgd7jDpbCPSPcDYSv5dOtgtPJe+CsIrGthByEU1xethRP IEjLDtYQfe1oCKokTc6mZ+FO4bO9w7pIPonTx6Mds7Tr88h4ZNTFORuz9PNa2ci7COAJ zw5AlydM2OPfquwyBwa2VTA47mv73NmL1ThYA0tU6PGajevtbfrFnuoE60uKmqhbTbn/ H31R2dsDp6dGqT3wQM7Zj7TFix6lFOjX/1nMBUGdDe+ZDKXx8Z0+cfIN7cCZjHArK8sR 7j0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Qw/ib0Yr"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y143si3738672iof.80.2021.07.29.09.13.40; Thu, 29 Jul 2021 09:13:52 -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=@gmail.com header.s=20161025 header.b="Qw/ib0Yr"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbhG2QMv (ORCPT + 99 others); Thu, 29 Jul 2021 12:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbhG2QMl (ORCPT ); Thu, 29 Jul 2021 12:12:41 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A656C061799; Thu, 29 Jul 2021 09:11:57 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id a26so11961236lfr.11; Thu, 29 Jul 2021 09:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N/ukz9Nxovf/wu6f2u5vCaEbaJjcjA44qpNIta3Aiwk=; b=Qw/ib0YrQysCpDvVZE3IzXPLC/imDhK/VxXHvnOOthIj1PRxXYA6+vexaM47HToVoA tTETxJbo3lLqGZKs6DB2vebtNnLp0IUDdbcm5f/Uvm1VdwuYwcCjqhwZddHqSu63vP23 DVVWLBUwnPtdtGpCE7RH6RNe9sYe11mmVHuagF1lsJuFu/PBS9JQedVLgUWmUS1BxVu4 rBNTbSIWrpyNoKx7THwvlCyIvvupKo4hF2bC2PXeKOJ00q9temZJhrNsalW2ZTYTj5jV Fs5OhQ3VRC93qLEu2YF4tIwz+h9Pt84HoNL3+eHXhD2r8r8NDCm3Bs6okrzCMBA23Rk7 pr+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N/ukz9Nxovf/wu6f2u5vCaEbaJjcjA44qpNIta3Aiwk=; b=k0SlWvnPpPazq0rgu+Fs8+uV74IEo1Cv+6UwMdpjhIe7CTuVi525ffuCe4Un2+4imA 8m9/9QnKY07mY2venh0nWxts2dVzHSTE6r9sGMJE2bmkmWCuhP/p3ysSX4lbzAMIIcoW p6ots3qI7h7H1WjtfcS4+p8snyIljXI3rEwPnMiDR4IK/ogi+Ye2qzOqx5Vt4UDYU7Sr goMWU+nd0u5ZUeLxHQ9HYBlyUb8CDMQc2/apLdKbF/xWzUN/OXxK7/lwzZ5w9jIwXCX6 Dxlsi3Jhy3nKKyXlj/i2tfl0BtV+M9pasRp5x8waVQb5sQdT0UIWz1yFDHaVHFGwqw8X OaHg== X-Gm-Message-State: AOAM533kQEUYss+K/ql13kwyKovB73/3UusD7WVYt3LHfkQoIo0gDpoE s/Cnj6SwGmamcQkFNWBVT6/TZgYdQCDksy1DZSc= X-Received: by 2002:ac2:4341:: with SMTP id o1mr4177642lfl.360.1627575115559; Thu, 29 Jul 2021 09:11:55 -0700 (PDT) MIME-Version: 1.0 References: <20210728175327.1150120-1-dqfext@gmail.com> <20210728175327.1150120-3-dqfext@gmail.com> <20210729152805.o2pur7pp2kpxvvnq@skbuf> In-Reply-To: <20210729152805.o2pur7pp2kpxvvnq@skbuf> From: DENG Qingfang Date: Fri, 30 Jul 2021 00:11:45 +0800 Message-ID: Subject: Re: [RFC net-next 2/2] net: dsa: mt7530: trap packets from standalone ports to the CPU To: Vladimir Oltean Cc: Sean Wang , Landen Chao , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 11:28 PM Vladimir Oltean wrote: > Actually, on second thought... > If MT7530 supports 8 FIDs and it has 7 ports, then you can assign one > FID to each standalone port or VLAN-unaware bridge it is a member of. The problem is, there is no way to do that.. According to the reference manual: Filter ID is learned automatically from VLAN Table. 0 is the default value if VLAN Table is not applicable. So it is always 0 in VLAN-unaware mode.