Message ID | 20240128195134.3600629-1-horatiu.vultur@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp200613dyb; Sun, 28 Jan 2024 11:52:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG08FMIBLJXzeBaNLCoZUQSeKmCsJx9xYR111DU+EIh5WQsucs6c+uRlHzC7eWkahiX/nuD X-Received: by 2002:a19:f507:0:b0:50e:8106:9e86 with SMTP id j7-20020a19f507000000b0050e81069e86mr2453022lfb.43.1706471537210; Sun, 28 Jan 2024 11:52:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706471537; cv=pass; d=google.com; s=arc-20160816; b=KmkyxF5f4T40qz/6JUu83nPBdHmXBJgTIEFuIUj4OZIKHedmsEU5NSmNU2qwpxSEOr 0o/avozKKk8aTNCYBHfuLG5COTxcGf4d89L8M0HjSVijBk5rRRumqWaWQALWP6Wc3ZTG hgOV/D3gT/ZUd+bEDBjpHJi+UDH93ehBjVCc/cZJQUQeVyca3XjnsL706PYnTxCceAvD PPHoBggjxLpQTVufti7kOzsqqF7AbWyjbIngIDfaJ1i39B6NrNUxLpL7mEJzu6zjJaNN jdQtLVzo0xeNWcYYaYLgysEnigBdjwWoxaQH5vQ3YEtxUaZD6mGT/EwUi6dCdfRlP4a1 JVvQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=nuy0OCdRHyG5kB9IGo9C3DO1XKQEtFsUjj6kTvU3Tdo=; fh=FL3RDxXTvXHGQC8pwGObjxGBe0x7qMQ0PyXMTuBtHAs=; b=SIHN+lssb3s1ywpZiiSvwqbr3iPxjNd0/zcpYGnqbHI/e4PWBeGnwqsZBWF3i6T/Yo 9Zglj/LvCmjdxMZLqIY895Ao7Ei/bP8UX2Md+vbEHrQF7tMhP8ycyL9a0ATCj3KxGZvb DaC15l0o7OVGd4fJoR0xPPdOo+rsRkEqJ337YRpNEey274jQYs8JvT0tUN0S9CmhKiGz 9b8EDyHVORp9bRcDXciQva3iIgLL5S3Q2rVhRR/r6W42BisRoPoLAWHBi8P3vrGBB+JW F+eE/FRTyPqQ1McUfJo3S3jrBFdk8TYqIW7qybWYhfz8kjl2Ym+I2FOyeS91T4Dj5HSm 73aA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=uPCpuVrs; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b19-20020a056402351300b00558e39cd08bsi2789544edd.383.2024.01.28.11.52.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 11:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=uPCpuVrs; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41915-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 CBC081F2194C for <ouuuleilei@gmail.com>; Sun, 28 Jan 2024 19:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10D163C461; Sun, 28 Jan 2024 19:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="uPCpuVrs" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 2D7AE1E4A8; Sun, 28 Jan 2024 19:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706471516; cv=none; b=hAvwM70iS+yBqlzfOAHJJO82SpVn6KhnaAkKCOLfkQniTI+SHXQdhXc3H3MeydlE74Nk1KwiNlq1gvhK6aTeYnH+EhHbXyrLrPbpreEZJhPkDlaQEk7gJE6wspgHvLnX1PWmcV7woc1nnxFZAjxxq2sbuKF4yRrvKRyfgGy62tI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706471516; c=relaxed/simple; bh=lLilySja1+gc0vAWoFafuKa9MQjftBe1Lq4AAaEBby8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=orXgTYmq8OHMDJwlTaH+njaMVBlu2fvzKLo2atxsH3aFDZfyI1W+Mn+6vJ2xEN7jYdmytKuigSzK+5gumfQTKbEAgyrMuXzgZd0yNnYs4AjlOF6hbvySw61eOGOBj31gNxDzSxoO5Fxq7afT6nGM9P+Pa2gsEPXAujrP3vZ9qOA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=uPCpuVrs; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1706471515; x=1738007515; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lLilySja1+gc0vAWoFafuKa9MQjftBe1Lq4AAaEBby8=; b=uPCpuVrsJHf4raNSdf87QdrOG+ea0SOvRHoOB6j6/1G9FqIofDMasJLJ Hh4aL604EB3gXfVqAfuVyW4HYEzRj+W7daL4P0aAXbW+T+upRhlF9ozA5 eIlGYFvUoQVazEXXRZKYWJdukcHBJCa8ilIFpv6W0t/CBuqrcQmuXXdhX d9zUSPFUTrg6O7LWHrsGTyb+0wSeia1yZkDB7Fy78nxY2OvCeIXSY3Ia3 VnuBCZdcJKY5r3MejxOpLsitcYwXmUUAMeKUnZVWK4GoUhmqUzjWYZB+C 053qiX7eykYJ0jbaNFYvaP4hjU7Xi3noneEwuIFwN1+P3oj6BtS8px3vX Q==; X-CSE-ConnectionGUID: HmkKQebqTiaf2PC3A5r6Ng== X-CSE-MsgGUID: 66EsYmfdS92wC7EMm983ng== X-IronPort-AV: E=Sophos;i="6.05,220,1701154800"; d="scan'208";a="246137979" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 Jan 2024 12:51:48 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 28 Jan 2024 12:51:39 -0700 Received: from DEN-DL-M31836.microsemi.net (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 28 Jan 2024 12:51:38 -0700 From: Horatiu Vultur <horatiu.vultur@microchip.com> To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <UNGLinuxDriver@microchip.com> CC: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Horatiu Vultur <horatiu.vultur@microchip.com> Subject: [PATCH net-next] net: lan966x: debugfs: Fix showing the port keyset Date: Sun, 28 Jan 2024 20:51:34 +0100 Message-ID: <20240128195134.3600629-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789365098659808586 X-GMAIL-MSGID: 1789365098659808586 |
Series |
[net-next] net: lan966x: debugfs: Fix showing the port keyset
|
|
Commit Message
Horatiu Vultur
Jan. 28, 2024, 7:51 p.m. UTC
On lan966x, it is possible to use debugfs to print different information
about the VCAPs. Information like, if it is enabled, how the ports are
configured, print the actual rules. The issue is that when printing how
the ports are configured for IS1 lookups, it was parsing the wrong
register to get this information. The fix consists in reading the
correct register that contains this information.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c | 2 ++
1 file changed, 2 insertions(+)
Comments
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: On Sun, 28 Jan 2024 20:51:34 +0100 you wrote: > On lan966x, it is possible to use debugfs to print different information > about the VCAPs. Information like, if it is enabled, how the ports are > configured, print the actual rules. The issue is that when printing how > the ports are configured for IS1 lookups, it was parsing the wrong > register to get this information. The fix consists in reading the > correct register that contains this information. > > [...] Here is the summary with links: - [net-next] net: lan966x: debugfs: Fix showing the port keyset https://git.kernel.org/netdev/net-next/c/e746094b1bb0 You are awesome, thank you!
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c index ac525ff1503e6..3a01e13bd10b7 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_debugfs.c @@ -25,6 +25,8 @@ static void lan966x_vcap_is1_port_keys(struct lan966x_port *port, for (int l = 0; l < admin->lookups; ++l) { out->prf(out->dst, "\n Lookup %d: ", l); + val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, l)); + out->prf(out->dst, "\n other: "); switch (ANA_VCAP_S1_CFG_KEY_OTHER_CFG_GET(val)) { case VCAP_IS1_PS_OTHER_NORMAL: