Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp822766rdb; Thu, 15 Feb 2024 17:25:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/W2K4vu7mB+wQMqz2TFhTDt1L6nQZuw1CR4KsHk+W8lfZbek2j/NMw4Figt+TkHkpc2Z+c2QcmMBeHbxHgY4o3orDCtMoRNV/fE3w7A== X-Google-Smtp-Source: AGHT+IHqMkSjI5I9XIp8THOgSBTiBPCxKAUHIvoQuCi/CqaDrM1xI5hyAbqYgqSvj0AuXns8DWAf X-Received: by 2002:a17:902:ea91:b0:1db:9a69:293d with SMTP id x17-20020a170902ea9100b001db9a69293dmr2330484plb.24.1708046702355; Thu, 15 Feb 2024 17:25:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708046702; cv=pass; d=google.com; s=arc-20160816; b=VDES/5324zOq5F6giThboAQzePZIa3rDHpzd/lHeU69hgf+DiP17++YqMG6pbTo0td 3Xu6MY2NiskY4WfRJsmOfuDpSwbOn/KpnOyU23WQeWmZ1YO1Zr2+5tE1AFkZqaxyfoBt Yz7lxnXoJ2d1mm9k95vPSpdee+Qtq4cgu555I27oebsFd7eQk4pagf2pZkhIMaW+2Slv NFZlw4HjImNDinQ8FcOwqBnYb9EHwnUvPSXqiwVVt/vlfu5dpIYE+/pi7p1auJI8w7Lu snrLWggJ7rkkqLmX/K4VRJ5MGlT8Yqu2fWKYIK0VCrNsKDJaPBhYfbzIgJ4Qphj4s/u0 bo9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Oyqz5SQV7vsHMVsXkHmWHMS+rB/T1/CKYrZbsQOdOR8=; fh=oCFEOCBs/G+fMoNlrfr+zcKKV/lvKy9sodLjrTvtEDs=; b=enleQsHnhTKfDtsJi2560/GmIWy2rVaUGbRXrsbv5K4HK26drg+6pH77MbpIxAiD/C N+rGT5REDhrt9lr+jGDMY4GP2H1QwCTv79CeCds8Z3TIsqjfKBD4FcKJnkK6ylMtT6U8 U1opNC6lLLNjCUxetBH4BC9Clp601deAKy0czdmwp2KJiO68TKt2BlQuHywKX+66o0qx M8Il0WXRq5HEs05qwVCoR/XGayYfuYzStweY6tTYn2M5UlxVCz+zAOSmc2GsKLI6zEJl 4rlVocjVSYojabm1UdfTX75hjd/dElgHKEXg7WMwhbmTRGEvB7YGY4CKzPanZzjLk6FA Ji3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NFrxFGqH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t1-20020a170902e84100b001db5fc15a7csi2112061plg.451.2024.02.15.17.25.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 17:25:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NFrxFGqH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1815D288AA9 for ; Fri, 16 Feb 2024 01:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5672ADDC9; Fri, 16 Feb 2024 01:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NFrxFGqH" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02FA98F49; Fri, 16 Feb 2024 01:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708046691; cv=none; b=iTJqhrX05kgkEII1aPu1Ux6g+E0I6j2PnEGLi+VgIRXdNuRSa0nBOcCgToc0PXI1YV0rNc9q0Zh9pjgUJmmwSTYJNxGnN9+Wuqir3jrG2HXxErJ0/Abxmie4XikpL+MvkhS9tU/TH4YK4IpIFdGuGWXw7CeqdlR/Zvy9vu5etC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708046691; c=relaxed/simple; bh=4RHOaWM73Sbfn1xpDXxyaZo4TzXIOvxgW+QTbCR9sYw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=buaKa+Q2UKbtUj0HUUCu15EKHZCRNG8F1eA18ofgEYP1VIO+anad9IhWREpn4GfhzwqKZh3l0BoWhtMWhqBH0TvwFrYhlZ8ny2tTaN92DmnVR92lXxkXttka2fAzglTTdDvm1l8fyOpRfnawsDq/Fi26SzyPB5jE0D8MSV/YsH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NFrxFGqH; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-412255afa19so6888285e9.3; Thu, 15 Feb 2024 17:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708046688; x=1708651488; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Oyqz5SQV7vsHMVsXkHmWHMS+rB/T1/CKYrZbsQOdOR8=; b=NFrxFGqHrrN7J2/liBo/c0bNGdIxKp5uVWsLBY6UMtnydgcjXK+tm89PiJt/4jrDBg 9uL2QHaM5eRzXqZd6qFR48/KBotXRfGgE2JOPXtF+s1L38+pMx/4DZwYbtmquMRopWGg S9wXNxyrdVtD8CnIFuYWSG+IKT4xiXG5JAPwVv3B6jqZiudJuRJ2D2ZjmXGPAz8ML9Fo xhUSLx2Hc/rGRXig+SBXuU6vq9qJOcRnF4LXWZSyNuZFuUBdH5pMKLymYIAs3nuCTsSZ +xVMyvVp0SvwYkuJsnrA5ZwlJ6hUMbZv2llPb/pe6ysPc3gIROYDzcZD9Tec4e21BDqq iwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708046688; x=1708651488; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Oyqz5SQV7vsHMVsXkHmWHMS+rB/T1/CKYrZbsQOdOR8=; b=OKVJZ4k3kNzaermc++luqVzFCz7Vqeb1KYNNsw4iFVeSaf00kobU5B3VFRdQMHrr6g fozN1JpxEwjtzBqgh6oVGklNYuIptb26irYbzyOHRhW2EXFb5GvBdrE76L5hG2WiN8TY JNdVYaJepvj2/vGzfA1b4cQnrFcQo9dPhE8SlaBEhooVp8jVj1vcYI4vzdxwnS0uW4J0 bKB7dyCL4fw7FmgdOomMLpb3JyP8aVEa6zmAA6HX+qDIPwxvEffZN7I4A0TgMxOR4PaA hkMy+MhN/ke3jkUh3fybAWCaDN8p5d7FFwcf0aAbvddeNlj+0yc+/fvbj0NKZAVHAGCW pZ/g== X-Forwarded-Encrypted: i=1; AJvYcCXGwKFEIfrzp+G+0hhed79qqBgVE2Ix0/S54f576D8KiQc/AHJ4o5tlkEJ1qPp0flswPf9X4pRKmmjgxrbR/3lT0AbSIg0WEvPNZdePKAWlbJhXMiFLlu1qaN7/LfYXUHftHSyP X-Gm-Message-State: AOJu0YxVipnnaSx/zPIXkfq7qxgg2tT3HBR4Q1tjxID7AtIL6U7THyAJ 7jP/upN/fxbXTCafy/pTcXdb5tIgkhRR4y1pPYHy3Rarikg8jZ1K X-Received: by 2002:a5d:4104:0:b0:33b:636e:c967 with SMTP id l4-20020a5d4104000000b0033b636ec967mr2010965wrp.1.1708046688150; Thu, 15 Feb 2024 17:24:48 -0800 (PST) Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id co3-20020a0560000a0300b0033cf9e35b13sm660331wrb.72.2024.02.15.17.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 17:24:47 -0800 (PST) Date: Fri, 16 Feb 2024 03:24:45 +0200 From: Vladimir Oltean To: arinc.unal@arinc9.com Cc: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Alvin =?utf-8?Q?=C5=A0ipraga?= , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net RFC] net: dsa: mt7530: fix link-local frames that ingress vlan filtering ports Message-ID: <20240216012445.em247rxfjnyufwm5@skbuf> References: <65bbf40d.170a0220.a87f4.becdSMTPIN_ADDED_BROKEN@mx.google.com> <65bbf40d.170a0220.a87f4.becdSMTPIN_ADDED_BROKEN@mx.google.com> <20240201232619.nsmm7lvafuem2gou@skbuf> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240201232619.nsmm7lvafuem2gou@skbuf> On Fri, Feb 02, 2024 at 01:26:19AM +0200, Vladimir Oltean wrote: > On Thu, Feb 01, 2024 at 10:13:39PM +0300, Arınç ÜNAL via B4 Relay wrote: > > One remaining limitation is that the ingress port must have a PVID assigned > > to it for the frame to be trapped to the CPU port. A PVID is set by default > > on vlan aware and vlan unaware ports. However, when the network interface > > that pertains to the ingress port is attached to a vlan_filtering enabled > > bridge, the user can remove the PVID assignment from it which would prevent > > the link-local frames from being trapped to the CPU port. > > > > Signed-off-by: Arınç ÜNAL > > --- > > I couldn't figure out a way to bypass VLAN table lookup for link-local > > frames to directly trap them to the CPU port. The CPU port is hardcoded for > > MT7530. For MT7531 and the switch on the MT7988 SoC, it depends on the port > > matrix to choose the CPU port to trap the frames to. Port matrix and VLAN > > table seem to go hand in hand so I don't know if this would even be > > possible. > > > > If possible to implement, link-local frames must not be influenced by the > > VLAN table. They must always be trapped to the CPU port, and trapped > > untagged. > > Isn't this, in effect, what the "Leaky VLAN Enable" bit does? Hm? Any news on this? I suppose this was the reason for submitting the otherwise ok patch as RFC?