[net,v2,0/3] net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support
Message ID | 20230511170202.742087-1-alexis.lothore@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 b10csp4538400vqo; Thu, 11 May 2023 10:14:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6m36KnV8THacl3lz/KXXng+cjn1a43BXeebU61L4KXU5i19R35cpkYXx+8/Yim2x/f0wLq X-Received: by 2002:a17:90a:ba98:b0:250:ac7f:a76e with SMTP id t24-20020a17090aba9800b00250ac7fa76emr10260116pjr.6.1683825242995; Thu, 11 May 2023 10:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683825242; cv=none; d=google.com; s=arc-20160816; b=PJIHT8ea5G9+KtcQ8l04fo12WrRpdhZOCXPT3T3x/KG6SIOqX7XG4qmzlxOlvgkw04 VbgPnPfBccS3BM9AAQkJRRav9vHf8ykuSDJYbKHLU56QK9zsHesidpjyYzXMS5pAm+zq 9xQvw6p0WtUufGDSWlHwb4IU1UYNfaa2cL/a9npU53z25jPg1HeEsHDw2b4GDflrWs+d t8bsR4T37G3KaC8rO0AdvzB8Ye0/4GMdCYLSIfrrqpUpf2FmFkZ/pp3qiudX/xtL7j80 DfHzLNSaULkKQiSHU+t0q+irxpGGSORSkuy7ecPu1d3xxBsqn10aAbZf76ki8JY9weRk lDEg== 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=jsupyfCxIr/oLjFxtWs1d7TDSB1BeVIZRiI5538cfpI=; b=oNQpOdQhilGZTNhlu9gf3OXEQg3cq0FG7Q+IbKUcsIInfOqKY/k2HStuzGpDd9HsGQ OIdoPqQI4GWdCD91wJ4HzW2YdqtbvrEaKaXjPjjiPcp0/khRSviky0kfaXPkA/jMKffj VgA2Di4N7Z9OdYs5QMln/tSt0HLC91RgJaNva1N3GzMTZowpsd462C/pLzITGC/7oG/L tvcvh+00r+gkKeEAv8bH/zzWbnokb/PcCYEPMm+e0dIchtRiF0EydeWXaSKOYZzDQYlN NvQu6W3lvgNzoZ3/kIJNjPO/7ixYdbrUdt3kqfojzCmfrzZ6O8fr89PK4V6cRUub0cAg btmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OuolYvJX; 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 v19-20020a63b953000000b004fbc2116e0esi6956788pgo.205.2023.05.11.10.13.50; Thu, 11 May 2023 10:14:02 -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=OuolYvJX; 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 S238796AbjEKRCB (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Thu, 11 May 2023 13:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238752AbjEKRB5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 11 May 2023 13:01:57 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909D930EB; Thu, 11 May 2023 10:01:49 -0700 (PDT) Received: (Authenticated sender: alexis.lothore@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 18699240010; Thu, 11 May 2023 17:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683824507; 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=jsupyfCxIr/oLjFxtWs1d7TDSB1BeVIZRiI5538cfpI=; b=OuolYvJXgYwrYy7iiiqUOn5GZae3MqufNnBo0utOyp5iFFFZvLgr4rmgPPPk0NwjFRVg6S HuOIKSuWv/+5N1cLHz1GDl/dTc9PZ6AaZsOeZ2aA5EiTQbxqqQOenuTuPOmni+oqdP5bl7 fXdtIOZBYTzgYzg9T3lLkZtVtE57WDLPkvgllw4LKf/P7WaV2yrjClWd+W/IYNOJ6ixwq7 65f8mGedn9jZrbZ1GnPHmjGVgIAogLMteYdn4oiO2coHg4mt3pb3j5a7r30Ax9elGG7KHU BTr4sReh+s/b9wZZHXkYmtTvRjAoYaLGeu8U6avW4iQmLFWgJDUc4Sol9R1rVQ== From: alexis.lothore@bootlin.com To: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, herve.codina@bootlin.com, miquel.raynal@bootlin.com, milan.stevanovic@se.com, jimmy.lalande@se.com, pascal.eberhard@se.com Subject: [PATCH net v2 0/3] net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support Date: Thu, 11 May 2023 19:01:59 +0200 Message-Id: <20230511170202.742087-1-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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?1765618737956694891?= X-GMAIL-MSGID: =?utf-8?q?1765618737956694891?= |
Series |
net: dsa: rzn1-a5psw: disabled learning for standalone ports and fix STP support
|
|
Message
Alexis Lothoré
May 11, 2023, 5:01 p.m. UTC
From: Alexis Lothoré <alexis.lothore@bootlin.com>
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.
This series was initially submitted on net-next by Clement Leger, but some
professional evolutions has made him hand me over those topics.
Also, this new revision is submitted on net instead of net-next for V1
based on Vladimir Oltean's suggestion
Changes since v1:
- fix typos in commit messages and doc
- re-split STP states handling commit
- add Fixes: tag and new Signed-off-by
- submit series as fix on net instead of net-next
- split learning and blocking setting functions
- remove unused define A5PSW_PORT_ENA_TX_SHIFT
- add boolean for tx/rx enabled for clarity
Clément Léger (3):
net: dsa: rzn1-a5psw: enable management frames for CPU port
net: dsa: rzn1-a5psw: fix STP states handling
net: dsa: rzn1-a5psw: disable learning for standalone ports
drivers/net/dsa/rzn1_a5psw.c | 83 ++++++++++++++++++++++++++++--------
drivers/net/dsa/rzn1_a5psw.h | 3 +-
2 files changed, 67 insertions(+), 19 deletions(-)