From patchwork Mon Sep 13 14:42:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12489735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9C17C433F5 for ; Mon, 13 Sep 2021 15:34:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E6F36108B for ; Mon, 13 Sep 2021 15:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244816AbhIMPfQ (ORCPT ); Mon, 13 Sep 2021 11:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245524AbhIMPfG (ORCPT ); Mon, 13 Sep 2021 11:35:06 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64A70C1259C0 for ; Mon, 13 Sep 2021 07:45:07 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id x27so21627391lfu.5 for ; Mon, 13 Sep 2021 07:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkJwHZP7oqCVg/74lYBt3k1cFYX9NNjRUfJMYks/UKk=; b=rVOXVepXRTT+ZABzC6fLd+u3N9uW+l/SAjp6OhOEfT51YbBRzcDkriXOAqYhHWq9vM DAfUoCrGZ3rlVhtfvzx2GtHtgWZPUPdU9gabpEIDbN++JGQOybWwpyk7PdguSY9iGljE 573RZgdI+3/qEO85anYnFMPgidxY2esFKw5ZhIGkXz2X5R6OEGtDA0hhQU2CIzry6nh8 3Szx21QhLrvN0VaB5dIyMXqbt69QJasYRrdGaC6E1J5WVmOEfG6/NAN1xWX79mzu3iY0 umoUbbnl/OxWE4aUoLdok20hGDIPPy1phfFeyuW3e9kriGXGICHaiy4HnU3P+JCpgby8 puTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkJwHZP7oqCVg/74lYBt3k1cFYX9NNjRUfJMYks/UKk=; b=TWHqGetXnZdSUy5TtAWClvoAhMR17auvwP7b9pHj8mZF/nswz5rOzBNhyRTQjHaXZf qJpJeKJ/xYQTrZWbVo1OOA7fOewWI9IQ2pcFwlI2u1VWFBrYooRkgQYR1qGcg5Hp8R8p 14IjdWIKSwv4MLasDtFZBxXg80sorPwBI+ydgtjoo8A1RNvSdgOdUiCHDvbeAVuD+d8t HK2sCNROn55CFGg5JpUOKckXkbWRXTqNPIrkBjZeikOeIxXOxSWTmAsqlKwWeCc+2ZNN 0c4bvVYWHIhqSiog6NDL17TeNC0pGilUxnXOqEuvqrswz+ozExaS/TXCn2mrYZbNU9Ud hotw== X-Gm-Message-State: AOAM531qRhx0lP6elDYeAAiL8VwMkrrJWRoNMFsFp08Vf8F3yisAUPRw BY4ReSvLSO6JdSp+U9OftdDf7g== X-Google-Smtp-Source: ABdhPJxx6NyvG2fsYdmN2zSirxs9gy0pIsJfL6Og6f5DJJChFW6X5Rz1foSYclfTyBq1keYCPPbIhg== X-Received: by 2002:ac2:43b1:: with SMTP id t17mr6013322lfl.373.1631544304232; Mon, 13 Sep 2021 07:45:04 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id i12sm849825lfb.301.2021.09.13.07.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 07:45:03 -0700 (PDT) From: Linus Walleij To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Linus Walleij Subject: [PATCH net-next 0/8] RTL8366(RB) cleanups part 1 Date: Mon, 13 Sep 2021 16:42:52 +0200 Message-Id: <20210913144300.1265143-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This is a first set of patches making the RTL8366RB work out of the box with a default OpenWrt userspace. We achieve bridge port isolation with the first patch, and the next 7 patches removes the very weird VLAN set-up with one VLAN with PVID per port that has been in this driver in all vendor trees and in OpenWrt for years. The switch is now managed the way a modern bridge/DSA switch shall be managed. After these patches are merged, I will send the next set which adds new features, some which have circulated before. DENG Qingfang (1): net: dsa: rtl8366rb: Support bridge offloading Linus Walleij (7): net: dsa: rtl8366: Drop custom VLAN set-up net: dsa: rtl8366rb: Rewrite weird VLAN filering enablement net: dsa: rtl8366rb: Always treat VLAN 0 as untagged net: dsa: rtl8366: Disable "4K" VLANs net: dsa: rtl8366rb: Fix off-by-one bug net: dsa: rtl8366: Fix a bug in deleting VLANs net: dsa: rtl8366: Drop and depromote pointless prints drivers/net/dsa/realtek-smi-core.h | 3 - drivers/net/dsa/rtl8366.c | 113 ++++--------------------- drivers/net/dsa/rtl8366rb.c | 128 ++++++++++++++++++++++++++--- 3 files changed, 135 insertions(+), 109 deletions(-)