Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp365752lqp; Tue, 11 Jun 2024 06:59:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWybGXe65j2yyaEivw6HxqIJC4wyR/7UZjRr4mQszhOrlM6+1uDcBopyjlb3J+a4FhzkPocqrHXwTFIN+uLH8EOl/pGw625GIlvyD1Kwg== X-Google-Smtp-Source: AGHT+IE+rKk24tL2ouOECa7xVjGWo3RFxA+VtDaQhP+fmyy0tlv9RjvHCFEXDL2oWlLOq89KnOGS X-Received: by 2002:a05:620a:178c:b0:795:493f:602b with SMTP id af79cd13be357-795493f635emr1230242885a.52.1718114396194; Tue, 11 Jun 2024 06:59:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718114396; cv=pass; d=google.com; s=arc-20160816; b=nfn2betPQR0gauxhmdwndiJpaX+Dr1rv0kpwieidPYCZV+AaopmPp1GJ7iQuk/jCZ+ FWq3VqrloJOG17Li9eHAza7TDyVvUXKPz0kdw3Za9luh/EBSso0OKhmxUpsGVyB5794B zm7DnvaTEUrNMGGTtB6cF5Qrm7XbWlcQVXFvIW3LQ0Pnf2w3z/RiGfpZfx5NTtf9r0xr kaKyqAKq0bIKZ0w7q8fSVlsmIMPjgDSSy6hxXWnG2y9MPUmBS/dntElJ2rNGW3V1dPUh yc/14StfbjCYAuzVtn6y54sfi/fkpig18MiwMn6oMQsEFzcjDGtUtOxwrHnP2uViQ8X4 TbJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=jtpZX04+vZvd4H4jtVh8ouP336azkbSPBqTKoMccYMg=; fh=Lh+JMPZo65h8qJAnE5jHWvKtvWM25xS7kSTjy8t+qRE=; b=K7j49QR24Lo8yM8yH9lwZad+AIYBCDQypNCd3phZ0nQ1QVXcquPOBrOWaiySfCkuuy CvvJhHa1+655Q3R4lvgcCImhg4lZsoVdsWQRVXlvz/TOxyguBjm1QQiNzNVS5TVjmHEi oSxLTSb+Th/Hts9D7jd3OUeYe/c2QDoitGGUu/a3/zkTu+MMbZIj8ER4S5AAqjtPDQXP rtq04ToMyUJFT6yEwOc1+pSFbVHdBvFHUyGpEOLlBWqPRz7F9b9e0NLIzp+1PwE+bHDo 5s0XTDG20am5kqQ6Zk6aUt78bdYbx+PRxGOu3klNvVBYtGfpApjtUCpF3a1Mfduku0ap aJmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=dev.tdt.de); spf=pass (google.com: domain of linux-kernel+bounces-210020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210020-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441077f118fsi40196981cf.324.2024.06.11.06.59.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=dev.tdt.de); spf=pass (google.com: domain of linux-kernel+bounces-210020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210020-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CFEE31C251C2 for ; Tue, 11 Jun 2024 13:59:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 770051802D7; Tue, 11 Jun 2024 13:56:11 +0000 (UTC) Received: from mxout70.expurgate.net (mxout70.expurgate.net [91.198.224.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A25817DE3D; Tue, 11 Jun 2024 13:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.198.224.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718114171; cv=none; b=uvi7GPJgyQvOeAVpKkVmndIdwSlKc6QuWOsybdaSUSFW1/Tb2M7K8AUcDqySW1fvjRY42G3zYZB79Ka0MnuQKY/aYb6hr1MzvImGRXP6V3mIMAqg6Ov4ZpH7kCfgeyfyW9ZovLhiKD3zN917fgA5feybqpqFogkyXd80Nm1aV4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718114171; c=relaxed/simple; bh=I3jDDLhhE9CvNnNbIVh6mYYXoYpZ6qnnBn0WuqEZwZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kKKl4ZEM+itrOzdRmbVkNG8HeunZBDud/df9c70McCbNl7w7avn6qcdRiYyBNDhHwswa3A3oIsZNnK9TU7622EE1AHGAFooPI1UfqOHeIvu2x/LQY42hldhwwgAEW3FerwXt++y1Pbyh1jAOAi1x/DdrM986sqw1ZvJvbq4vgeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; arc=none smtp.client-ip=91.198.224.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1sH1yp-003Iqa-LZ; Tue, 11 Jun 2024 15:56:07 +0200 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sH1yp-003ZpJ-3p; Tue, 11 Jun 2024 15:56:07 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id CE181240053; Tue, 11 Jun 2024 15:56:06 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 625B2240050; Tue, 11 Jun 2024 15:56:06 +0200 (CEST) Received: from mschiller1.dev.tdt.de (unknown [10.2.3.20]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 0F9B5376FA; Tue, 11 Jun 2024 15:56:06 +0200 (CEST) From: Martin Schiller To: martin.blumenstingl@googlemail.com, hauke@hauke-m.de, andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ms@dev.tdt.de Subject: [PATCH net-next v5 11/12] net: dsa: lantiq_gswip: Update comments in gswip_port_vlan_filtering() Date: Tue, 11 Jun 2024 15:54:33 +0200 Message-ID: <20240611135434.3180973-12-ms@dev.tdt.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240611135434.3180973-1-ms@dev.tdt.de> References: <20240611135434.3180973-1-ms@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate-type: clean X-purgate: clean X-purgate-ID: 151534::1718114167-A8EBED95-2AACA1E7/0/0 From: Martin Blumenstingl Update the comments in gswip_port_vlan_filtering() so it's clear that there are two separate cases, one for "tag based VLAN" and another one for "port based VLAN". Suggested-by: Martin Schiller Signed-off-by: Martin Blumenstingl Acked-by: Hauke Mehrtens --- drivers/net/dsa/lantiq_gswip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswi= p.c index 2bbc7dd45418..ec52c62eadce 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -780,7 +780,7 @@ static int gswip_port_vlan_filtering(struct dsa_switc= h *ds, int port, } =20 if (vlan_filtering) { - /* Use port based VLAN tag */ + /* Use tag based VLAN */ gswip_switch_mask(priv, GSWIP_PCE_VCTRL_VSR, GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR | @@ -789,7 +789,7 @@ static int gswip_port_vlan_filtering(struct dsa_switc= h *ds, int port, gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_TVM, 0, GSWIP_PCE_PCTRL_0p(port)); } else { - /* Use port based VLAN tag */ + /* Use port based VLAN */ gswip_switch_mask(priv, GSWIP_PCE_VCTRL_UVR | GSWIP_PCE_VCTRL_VIMR | GSWIP_PCE_VCTRL_VEMR, --=20 2.39.2