Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp627896rdb; Thu, 15 Feb 2024 10:10:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKBsg+iQLbfkxCrz4E+U6H80HXhv0nFca7F3X5JAoEQLU9h/+49pbc5a9astiMd14thnvcBdOdib/DSvG5jH8rlIAD5V3aRQag6v505Q== X-Google-Smtp-Source: AGHT+IGBgoJ4bG6X6zcAyWI8d8fp7p+OMl1m1YEoW6YrKKaS5jjukzjE4TR4HO6GlUWGsw4FYl8Z X-Received: by 2002:a17:906:c355:b0:a3b:aa21:a801 with SMTP id ci21-20020a170906c35500b00a3baa21a801mr1799721ejb.53.1708020615985; Thu, 15 Feb 2024 10:10:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020615; cv=pass; d=google.com; s=arc-20160816; b=qgKQ1ciDe5az6kP+5q6+zqdFU/8mvkNx0JG3fQ1f0pQrhsQ00fdTYDTkx/O0UzWp5V QyTWjFyFMfA1GKhsOPrHz2bIQao6fP4saBG90mS8Kcl6/+69aAJ9nzmI3xS+pBdwl0dn kXHyse6wBOpHQsbDuZjK9EB7ZKGlZwk5EfugVoTBlo+E8htYiqqW5yqQXeFXkQSBvj2W UBcvtWaHDQcCjdENdFUZM3X+DwsbF0GVTdpa6WaUr8Bwt0WxIeJu4xr6Lwei3s5CrIKP gDo/PGG8fYF6wjfSSva/MDg8VfiGoI7ZanKwZzkn2+VhgNu0fawCirbwM48cZs5zxJgT Qe5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MsK9sMUkCnAium0cXNBDUzfqUg2ZTSLKAEAIbODiMlA=; fh=zwVXnVgDM9CzKd8Z8jX9vGlq1bNg/J9wWk/89KkfjGw=; b=V9xVl4WRo/K1+g0vlRSkFgiMxE9VzY5y6+mF528QZSLrqAqz8gA+Ad2lFcBZ2Pqxxx Q+x+67bGVcCgVvxrlC4sXxAzv8hTMRdZhmviKR88BA0drWISVxP9agS2XyasGx3efKc1 sz15KmhYuYMKeTSQDV2KWP2InJu6r7jf2jhcHkAXOUJR78LKZy+rrzycRrZRk6u+eHiv bk702eMoJ6a5P+WebT1Ez1OvZ9I79xj53jYA2D6GMCPd58krDqoIa0DCSiAfcCR1VASw 1S/K8bSHS4pK40bJbu2U5pSvwJD5My5vRDz1Q7BfyN5GD1SQPSZiNuGQQu3wb/nc7NIH uDaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RIY+9Vl7; 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-67474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sh41-20020a1709076ea900b00a3cfde802d0si922681ejc.921.2024.02.15.10.10.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:10:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RIY+9Vl7; 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-67474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67474-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8CC251F23D49 for ; Thu, 15 Feb 2024 18:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D08771386C5; Thu, 15 Feb 2024 18:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RIY+9Vl7" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 3D2CB1369AD; Thu, 15 Feb 2024 18:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020599; cv=none; b=XcPpAR+GguhKIr7jeim/OtziCAF66VyH5PGvLzBztdo9h2wLiRTawY6BR+H/8l+nKx6TEMAAHCydfcCCaBlLuFoAA5TkB+xNnB5biXAl/5JZjGg1sJWeHB8Z4Ljkyj6mkC0crLKcPl7Ki1CNuP1Kt3qERvhDLmQl33AOlo1yBdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020599; c=relaxed/simple; bh=9LTX5p5ECOAIOrnzChPk4OdgPxQGNVKmHTp4cFz6qSw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pg+PMcchCyTOQBff5Qk5y3KyEeCWHr/863MpDWuBKwZELTICMp1Y3F1rWC77dhb2ssH7a3b3x3xyZFrukQ4s9hxTODUiz4qVF8UXDQETJIb1DFeqVYMgsoP6qDB6bW/3OmMwhv0BqdjBHIb8l2SiJoCiAvOcwIeryHm3UIND7fY= 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=RIY+9Vl7; arc=none smtp.client-ip=209.85.167.41 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-lf1-f41.google.com with SMTP id 2adb3069b0e04-51181d8f52fso1473663e87.3; Thu, 15 Feb 2024 10:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708020595; x=1708625395; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MsK9sMUkCnAium0cXNBDUzfqUg2ZTSLKAEAIbODiMlA=; b=RIY+9Vl7VG0jt5rGLAq7FcR2bqFMEQUDEHPcaX9PRaVq3UuiIuMimDnrmvmisZ1Lh8 hJRrC5sAT7wHWvNjvnm0QpHsQY5RWmNUIDq/J6mgVq+Sx4fwmZg8NxN1JrremeyX9DSN /hwPNia5URc6CNYqKIqh5MjbczeFgVctvjlZSFrz7YmKAbkKIzeNUYGia04i9ZX9o6wf eqDHe89/yUkt3N5x0PbU3lIlmayfPJ7eR/x254By2o0dMN4/W/OJpx+dSiFYxBC67q+v KCrE4iNI+SF8zGqFeUWiG5+u9Y2ei+Y1b52LYwqqM5WU4tFh/kq5Oz3icKgmpWMA79VG 7+TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708020595; x=1708625395; h=in-reply-to: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=MsK9sMUkCnAium0cXNBDUzfqUg2ZTSLKAEAIbODiMlA=; b=mDxR62OJ8rp5jWoA8/JT01ZbyO8xHh0Cxv3783bGkhO6hKqRWbksc6ZL8MVM1IOnmG jfHuMX3C03ZR05O3uadJhJYLIHRkKNcSdtxjn2JUsqwrc7Qb+yPuZkEPmOpcE97uI+9w 7c+3GSi5OKZCPBo39cAvyFzeB3X61IEUIAqfmi8sSFGnwfoyZC8HXWtJYKt1xNgjmG9y bqb+yIdoN1BaBUZJmtBu/y+za8dBXZQ4i0eBcSXuGZeyoDdLtVs102ic3wCrR3PKWw9Y WscSvjnSyEx4YG+P3sjq69Kaqn53S9k6Wx9scYqAm16WkpUczpWAho7BIedYHVkJoWrt oZ4A== X-Forwarded-Encrypted: i=1; AJvYcCVcrBBs0YEO2zulVsKhaH7s0s6TfA01Fz2O5tWozu0sQDrsRf78edgVPS8epk5qxUP8LuqZcNo6satT32TXrZjcWpbTMH1VJbh8lbVt X-Gm-Message-State: AOJu0YzviAMVN61dWd2jn3c6dCLeFtkOTDlLbPdAPA5k2uUsZKG/Dta0 jjVLQ83hMfErQAZaJmHR3AgyMM9QIGM13wjjf+FjzQHXewsNGJ4N X-Received: by 2002:a19:911e:0:b0:511:941d:37d4 with SMTP id t30-20020a19911e000000b00511941d37d4mr1823053lfd.5.1708020594849; Thu, 15 Feb 2024 10:09:54 -0800 (PST) Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id vu6-20020a170907a64600b00a3c5d10bcdbsm782485ejc.114.2024.02.15.10.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:09:54 -0800 (PST) Date: Thu, 15 Feb 2024 20:09:52 +0200 From: Vladimir Oltean To: Pawel Dembicki Cc: netdev@vger.kernel.org, linus.walleij@linaro.org, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Russell King , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v4 13/15] net: dsa: vsc73xx: Implement vsc73xx 8021q tagger Message-ID: <20240215180952.b55l3qxno2mexqqs@skbuf> References: <20240213220331.239031-1-paweldembicki@gmail.com> <20240213220331.239031-1-paweldembicki@gmail.com> <20240213220331.239031-14-paweldembicki@gmail.com> <20240213220331.239031-14-paweldembicki@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240213220331.239031-14-paweldembicki@gmail.com> <20240213220331.239031-14-paweldembicki@gmail.com> In the context of DSA, tagger is synonymous with "tagging protocol driver", aka what the previous patch implemented in net/dsa/tag_vsc73xx_8021q.c. It would be better to rename the commit title to "Implement the tag_8021q VLAN operations". On Tue, Feb 13, 2024 at 11:03:26PM +0100, Pawel Dembicki wrote: > This patch is a simple implementation of 802.1q tagging in the vsc73xx > driver. Currently, devices with DSA_TAG_PROTO_NONE are not functional. > The VSC73XX family doesn't provide any tag support for external Ethernet > ports. > > The only option available is VLAN-based tagging, which requires constant > hardware VLAN filtering. While the VSC73XX family supports provider > bridging, it only supports QinQ without full implementation of 802.1AD. > This means it only allows the doubled 0x8100 TPID. > > In the simple port mode, QinQ is enabled to preserve forwarding of > VLAN-tagged frames. > > The tag driver introduces the most basic functionality required for > proper tagging support. I guess this sentence is in place from before the tagging protocol driver split in v3. Please remove it, it is confusing now. > > Signed-off-by: Pawel Dembicki > --- > v4: > - adjust tag8021q implementation for changed untagged vlan storage > - minor fixes > v3: > - Split tagger and tag implementation into separate commits > > drivers/net/dsa/Kconfig | 2 +- > drivers/net/dsa/vitesse-vsc73xx-core.c | 38 ++++++++++++++++++++++++-- > 2 files changed, 37 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig > index 3092b391031a..22a04636d09e 100644 > --- a/drivers/net/dsa/Kconfig > +++ b/drivers/net/dsa/Kconfig > @@ -126,7 +126,7 @@ config NET_DSA_SMSC_LAN9303_MDIO > > config NET_DSA_VITESSE_VSC73XX > tristate > - select NET_DSA_TAG_NONE > + select NET_DSA_TAG_VSC73XX_8021Q > select FIXED_PHY > select VITESSE_PHY > select GPIOLIB > diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c > index 6c7bd1c200b4..9f94ae8c763a 100644 > --- a/drivers/net/dsa/vitesse-vsc73xx-core.c > +++ b/drivers/net/dsa/vitesse-vsc73xx-core.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include I believe iopoll.h is misplaced in this patch. Probably the first one to have used read_poll_timeout() should have included it. > #include > #include > #include