[net-next,0/2] net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support
Message ID | 20230330083408.63136-1-clement.leger@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp971016vqo; Thu, 30 Mar 2023 01:41:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bWpEveWfOynFL1wSOx2G/HgHtL/df5oo1r3kUJpBMHCo+CK/ZK3OND0qBEQ9Ar9M6QBazu X-Received: by 2002:a17:90b:1d8e:b0:23f:37b6:48f4 with SMTP id pf14-20020a17090b1d8e00b0023f37b648f4mr24213126pjb.43.1680165690846; Thu, 30 Mar 2023 01:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680165690; cv=none; d=google.com; s=arc-20160816; b=F/uta5mZJl0Wlx6xWtELGLLiaHg0CnBeuXeYyOa7TOg5TRGp6CgWrzOm+09OXLy6Ga woW7AkYzq5/2aKDYKfkk9T5UoVxfDJh/aQ7OWlM9KEZkubqtb2cTkRvA/307lBqNJci7 WOFioW7KJXLCe4TS0byD8T8NDMUG3KpSkrnkrbJGaHgSXl3r4DBBajh4zne84nUaXxh8 VzguziwXRcpPWJeqrKb62kV7MjofzZo1DipTrf356G/SZOpVC85O3bU8Eior+ub0HF7i aMhtndUQXJRV0EwxXXsg9a++c9LDu4gKaSicqCR328hBxAxlrdUKJ8OXxHkiA/6939O7 2dGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x28SLEzPQdCr7C4E3A2BeD4cuGz8Y32FZhlqTQw6zlY=; b=ilaxn6L8EsBsBK4o0ZqpQPjHES4wcNrd3PgAlv2Xa19Ezk7ehyfF6uJq1DQXJ0h9bf rCwKOO1uv3eeD05zhozHxO31RUCLftTxFHl6uw2Sm6OTBIFGkbaT7BiVi07jzrroCpGn SJnHe8U1PhIFOBKbh4XgmaeTSQ9bfBwZMReZDs5CTs21dyYIRkg3swtjMNZmocaCpaiT gG6ZQF/YxB3LP6ZTcOkf1+JOrGO8xolyvnFrN3lwt9JiDf0P4OhNcPIKb1qNjl0qLzzm 1SIqVUh137OtN9TtAwPlsov9D/MNMdVEJ38adB4aoZL3llWlvDCPFZDwCW61N1VTVQNv 30gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AfgOq3A9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw16-20020a17090b4d1000b0023d3980730bsi3817506pjb.16.2023.03.30.01.41.17; Thu, 30 Mar 2023 01:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AfgOq3A9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbjC3IeK (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Thu, 30 Mar 2023 04:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjC3Idn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Mar 2023 04:33:43 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EED64487; Thu, 30 Mar 2023 01:33:40 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 38BB4C0007; Thu, 30 Mar 2023 08:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680165219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x28SLEzPQdCr7C4E3A2BeD4cuGz8Y32FZhlqTQw6zlY=; b=AfgOq3A9RlfKIgj4134DuYfVT5F8UHi1E2qN5mshz6JOwnb4hwOSxqCvO3Gvi8BY0XrHT9 +ML8kkj+LsFGw9NRWPHC6bOQ4QiemcIi/3GnV47/3QnYG9Bj9SXva845mZ+xyrisJQ3gOw W+jymxkz5TIRolgCXLMpRpZSOCvEEYiiIwLQPZrLblmSMYJkfGbpfvgSkIp0IZ/0l+HTj4 Ags+Bg+EiueYD45Ag3J9eKrACvjg4qUKzaJwidtKLtisYd6IYfy8vZRgla6cSS2vVefwul Yqc4tVx97asPZNvKBI7BOb7E1UIaIEJm0cOrMXp8cMwByWoIBVGYdh8j941H2g== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <clement.leger@bootlin.com> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <clement.leger@bootlin.com>, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Herve Codina <herve.codina@bootlin.com>, =?utf-8?q?Miqu=C3=A8l_Raynal?= <miquel.raynal@bootlin.com>, Milan Stevanovic <milan.stevanovic@se.com>, Jimmy Lalande <jimmy.lalande@se.com>, Pascal Eberhard <pascal.eberhard@se.com>, =?utf-8?q?Alexis_Lothor=C3=A9?= <alexis.lothore@bootlin.com> Subject: [PATCH net-next 0/2] net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support Date: Thu, 30 Mar 2023 10:34:06 +0200 Message-Id: <20230330083408.63136-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761781418966850700?= X-GMAIL-MSGID: =?utf-8?q?1761781418966850700?= |
Series |
net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support
|
|
Message
Clément Léger
March 30, 2023, 8:34 a.m. UTC
This small series fixes STP support and while adding a new function to enable/disable learning, use that to disable learning on standalone ports at switch setup as reported by Vladimir Oltean. Clément Léger (2): net: dsa: rzn1-a5psw: enable DPBU for CPU port and fix STP states net: dsa: rzn1-a5psw: disable learning for standalone ports drivers/net/dsa/rzn1_a5psw.c | 77 +++++++++++++++++++++++++++--------- drivers/net/dsa/rzn1_a5psw.h | 4 +- 2 files changed, 62 insertions(+), 19 deletions(-)