Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp364631pxt; Fri, 6 Aug 2021 04:02:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcUUFcPTvhjNLy87APQ2XldgJXJQHRYkWaEsRP5ETo5IFmeVgumI2UQVsX4a8zGLWWJwOT X-Received: by 2002:a92:190f:: with SMTP id 15mr86751ilz.45.1628247767807; Fri, 06 Aug 2021 04:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628247767; cv=none; d=google.com; s=arc-20160816; b=uxyxCAYNWY7lwLH1yWdOkebEMXhw4PbpCOO0pawmmufW8mqS1qR5jja/YSYR2GjGw5 teZwnQQcZF5P5v9NHlUzLBTzin6SftPbeElgoUyjtqZcRXvAgYsVHjg81iQVNHQ28bJy b1jTi6iLK/luDOEdiyiRfA7Pp128Rl+or+NDrGdNSDZsCcGNBTD91dg8yix7cg5COF3z IrYi/FBPqRqvN4xhT7knKVs+gTgUNG/GtlsZE+NMdiNa8X0KFiNjrQwpIbd52oXjpMlG RqLfm3sxF/ekZmqfeIH5+ttNwaXnU1zNHPckB9NJr2JfTKpuj2yA7y4dZNienRH+X1fZ AKEg== 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=YTL8rATwgxSuPGDhJbThhFcHRN/9Vn25uHPn0zaGPNM=; b=y0zNO6UeHrsueeRsSDQomuQ5OHajvELe1bjjtPX1gWG3shFD0bDWcsCRI5Zjcf2SLi 3cWdLFXQs7ac6TtLr4l06NZOLrLTZpUVYTmtFd8ig27rKIc1LtAeQM/KkJb8/pT4rm3/ qDZSwqpfRdak2NHZ9eLDET3r4szvMQjVevRGNVi1EFLz2XXl54nvwwL+15cMOLh1oq+C NDuWaiiwFGL8Yxt+smnl8WAKDrdFvHoYBqGM/sF2dFKw4Bx1nkQ52a6Nj6oW554OG6YV i4jsl+Kl6zk+mBcwNyQeXBRZ3tLb2rhA8/7MlQBRLXv9Q3NnFsItBYP/yyfzh7E/lghH d70A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X5I4I5hS; 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 g14si9859635jat.28.2021.08.06.04.02.35; Fri, 06 Aug 2021 04:02:47 -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=X5I4I5hS; 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 S240008AbhHFCex (ORCPT + 99 others); Thu, 5 Aug 2021 22:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbhHFCes (ORCPT ); Thu, 5 Aug 2021 22:34:48 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 162E9C061798; Thu, 5 Aug 2021 19:34:33 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id l19so13785103pjz.0; Thu, 05 Aug 2021 19:34:33 -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=YTL8rATwgxSuPGDhJbThhFcHRN/9Vn25uHPn0zaGPNM=; b=X5I4I5hSZKO0FqOT8VVX6wA9MndpzlwOJSH1gYjIYGXpIfLfM3aat5kka3JlkO4NFn ZWhYW53gk9CUN+zYaKp3kz3eDOopUYqQNjPGwZdn1f8ib0ZyQfE4SUxwtV7nq6+dmrGP Vv9GchnSClXOq96Dy2xcpzTChtwai4GvWHp/BJbKMn8d6tK7CoQod1katCU/OUcNvOSz cGrFcFlZFrfhxyTQqLLmh9m8yV5OXB2dRqqP/f52j8elj3xFjJNJdpyNbA51iyIb1HQN I1CMXbd8q58ux+urT/kRwZfbaLfAIEQV0D6s9FQhHOUj3Ui/kDt3SgYe12XQnsVNBJcr +5BQ== 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=YTL8rATwgxSuPGDhJbThhFcHRN/9Vn25uHPn0zaGPNM=; b=QTMXsiMwR679yCQHfEF37zlHwDzxfERdAEm0mJKWpaXZRhXaWwI4aw1BgCeXUZhH6q inDAoQ6E689NRFCe4lT/9AuJti3lnadoOtp8Urf6CyK3v+dhMpHEJqE/3mPsqQfQxG24 SNgEcVy/CRvD9avSJcRnvk/pzpuz0dV2oD77ql7Wc0mhlnNtl/MdekXw/LmKiXXgwyNn lPfGswXg8mE1hAPGX7cIUsbTzh8Dj7USszpQvVz4HUKn0L0OdDXGlI9MBw6UZPthVgsi 4fA5sQIIfK6EUjkZb8R1LpD1ZzBGxdZM/3p01r2Uu44HyL+JgR54iigH6Gio7QDq76SM W/Hg== X-Gm-Message-State: AOAM533DwkpcjVPw48fr3BMiPctsYCJpxuaGuJmX1XCylq2Tqlcvnupn FAALLjJj8lAKxL4vItbQNgs= X-Received: by 2002:a17:90a:1b2a:: with SMTP id q39mr7615105pjq.219.1628217272638; Thu, 05 Aug 2021 19:34:32 -0700 (PDT) Received: from haswell-ubuntu20.lan ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id b5sm7190597pjq.2.2021.08.05.19.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 19:34:31 -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@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: mt7530: drop untagged frames on VLAN-aware ports without PVID Date: Fri, 6 Aug 2021 10:34:23 +0800 Message-Id: <20210806023423.519560-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210806001740.cayorz3vlfrvk75l@skbuf> References: <20210805172315.362165-1-dqfext@gmail.com> <20210806001740.cayorz3vlfrvk75l@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, Aug 06, 2021 at 03:17:40AM +0300, Vladimir Oltean wrote: > > Good catch with this condition, sja1105 and ocelot are buggy in this > regard, it seems, probably others too. Need to fix them. Although > honestly I would probably rather spend the time patching the bridge > already to not accept duplicate VLAN entries from user space, just with > different flags, it's just too complex to handle the overwrites everywhere... > Plus, bridge accepting duplicate VLANs means we cannot refcount them on > DSA and CPU ports at the cross-chip level, which in turn means we can > never delete them from those ports. > > Anyhow, enough rambling. > > Reviewed-by: Vladimir Oltean Please allow me to send a v2. This sets the CPU port's PVID to 0 on boot, which causes some undefined behaviour..