Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7058441pxv; Fri, 30 Jul 2021 09:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg4P8Jv/tV4Tm69+08Bu+HzfiYZy8VOEJpgQz0rbeOYUN7HPhbJuvp2UwJ7tuALqljfzFH X-Received: by 2002:a17:906:3a57:: with SMTP id a23mr3225760ejf.469.1627661042075; Fri, 30 Jul 2021 09:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627661042; cv=none; d=google.com; s=arc-20160816; b=m7GZY/F4kG68IRM0EoVtX+dboWSWiYodeYuLI82s7zG9TpZWb3dYu0Drit63k12kqc T3e2yjtsW3+1x6YTMVLUhk5dJRltTQA/WsvUGqeR4CaFewYLr9QbDngh3/GsYhYnCIaP ZWZ1Pbx2LNeOwLrNRWNX3rh0NF8DPkNRpGATklBHre4XNxW8hSgNAyxA2qS77XMvZpkP 6StnMM4PWenk+96nGEgLkJ2M58Bddz1uXKMlgVIokpUjK80R4k2PZoda8lexvvQnfEEm VNr1RyVzRMi8hYvzJ2XzZK/XOecfOVhwIWno8WeGOjMZ0BX1bbJnRJ6L+WccrsuiyNdm BPTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=v7wLcGraIB7+Os2DeF31Wd7h/jOBDQcFefcKYyZX/aM=; b=DEGyx7OjP7kg0RqvR2Dywah8lGLR0i80oRo8Rg4PE186dXuu0c4jOoPGtXp7quiSoD 4NoMRnZcy3OzYsHKr8PGP6LxKjO9kCmtkDkw9AwHyllmH0FrrgNC6LcpBXNMjMQpEM2X Lq4WSrEJ/+fvo8Dxm5V/aKGI1KeHpt3NdURJaYHueG1/e+OboacCHs46FmUYW84RrMoy cyDqSpU7ZyNjJVm34/5OREc4nfI87V6wXWPZuxhu8nAUyBEhPu0ytwksXDaAfKeANRED TiNyKV8yxdzcc3WxizL9VCwwTyEFZqr/KOVcushq7Xy153UrirdUhJpmv/VdYQgpLajz PRug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LTjGwVLh; 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 cx23si1916924edb.19.2021.07.30.09.03.38; Fri, 30 Jul 2021 09:04:02 -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=LTjGwVLh; 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 S231394AbhG3P7E (ORCPT + 99 others); Fri, 30 Jul 2021 11:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhG3P7E (ORCPT ); Fri, 30 Jul 2021 11:59:04 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5ACC06175F; Fri, 30 Jul 2021 08:58:58 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id h1so11973595iol.9; Fri, 30 Jul 2021 08:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=v7wLcGraIB7+Os2DeF31Wd7h/jOBDQcFefcKYyZX/aM=; b=LTjGwVLhmYVkOKvJsuihzVCRtdsA9rdixkg8UIrZltd8odZNdgZ4Plx7wV3e9F70+q mcN2HD29RnVlI0+xN2cD66zdkNSQMwLngcupdSaJ2YAu9F/I3YNVL0qmAQyxUpi7qlnz 0vWu3lPVG+LKX3+E6zK+aGDSL7PbyLQ4BM0TJ5o4cdA5MBtgQTs4+Bk5jRBIVdxp/qWj If36pFoYpJ6BPLHFoJjcjXpY1/5CgbKBhc2aDAeVr2CaSMjdbYohnqfyZVSAPRWS6o+q 5xhul5npMk3+twS3V+3P/W/Y6+ecy1ci603XC98j2Qre9poqqTuOSeGdNJVWLpBdV00r ZWUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=v7wLcGraIB7+Os2DeF31Wd7h/jOBDQcFefcKYyZX/aM=; b=HQyA6AeRZB8cQVhaBFmM1QZsdXTaU5873BiEjG3lIjW/U2Ejm6ZfEXLZZoFrVje3zm BFkwQ/o2L58D2TG4WqlyNmrExv1lZKaAkQLly8v/mPc6Im7jxA9XArMsRM/DTYiIqZ1q 8sC2gOuAh/xIenkDfJ2nr1FTOAaqxvuM0rzwLZmO1IEP4PdWabYXONyboMZT3UJFs3Uj sXfXNibTk89ZLcmwZXVF3EnunmKX7CNSLD5AQUgni+3SRVILiDVrO7LMhiFo0hBRxCCm Txnby2GWNG7w5ggO7/ZKLrue0xBsbI1lXigvpgLrp1l3bFc0pobb99LXNGDvGhle6qM/ bk6w== X-Gm-Message-State: AOAM530HQYjU+AgFQG/kwnXgkNdNS+TSiPcSL5R8jBunOpAVRCJfjjuh 86MVmdQM/HDVa7neGCx/a3w= X-Received: by 2002:a05:6602:2e11:: with SMTP id o17mr348963iow.55.1627660737073; Fri, 30 Jul 2021 08:58:57 -0700 (PDT) Received: from haswell-ubuntu20.lan ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id u10sm1292627iop.15.2021.07.30.08.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 08:58:56 -0700 (PDT) From: DENG Qingfang 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 Subject: Re: [RFC net-next 2/2] net: dsa: mt7530: trap packets from standalone ports to the CPU Date: Fri, 30 Jul 2021 23:58:46 +0800 Message-Id: <20210730155846.290968-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: <20210728175327.1150120-1-dqfext@gmail.com> <20210728175327.1150120-3-dqfext@gmail.com> <20210729152805.o2pur7pp2kpxvvnq@skbuf> <20210729165027.okmfa3ulpd3e6gte@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 11:45:41PM +0800, DENG Qingfang wrote: > So I came up with a solution: Set PORT_VLAN to fallback mode when in > VLAN-unaware mode, this way, even VLAN-unaware bridges will use > independent VLAN filtering. Then assign all standalone ports to a independent VLAN *learning > reserved VLAN.