From patchwork Tue Sep 28 14:41:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 514796 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp5030094ejj; Tue, 28 Sep 2021 07:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWwDwrQq1yMHS8rvnT+fnccS/khq0HB18yAYeIeqrn0+oD0xtHGkrv6u9Pfhk2C21VYmAE X-Received: by 2002:a05:6402:21ce:: with SMTP id bi14mr7912629edb.15.1632840247264; Tue, 28 Sep 2021 07:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632840247; cv=none; d=google.com; s=arc-20160816; b=pHu3oslinRRMS2vYDh95DswSHT/HpiV5mxF9EzU/UJeaUcWHkEeNs9AD6qffJ/qkic trvXFR7iiMEyYKjX3I5urTac+GxBE6kWewfFN47qgdEtIjxnhsmedRzYCKe2GBVJdAGv yd+Ur5vN71gTvyqd3RRGAZkhx4CQhdgPwnLsnP+VZO9waPrOxR2klajbc5PiUccq1j3/ p7Joa2J1G3mZ5qwOkLeykhbhFPv+xFJag7wlcKwl/rS4pPc4uo073zuugMe/RbIYP1Ah RTMQ3XReu0S7Ctr6LULZ2f9S/k5xbaO+IHgLfEZqOjI4GVpE3cLBQnIFEJ70Ynf8xOBx ml9g== 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=fU97reShB9fGHn2jTKQX3rdQzaCG4O5OGr/DmkqBnu0=; b=qnvCiHwbVGi1SGM66U3CAJ2bOfvMAVpGf7CdGZ7nL7MNPTyP084icRp0mqsGl/68eO nrGSCj8mY6ReqaaXLyo+/s1hr5lEjypfseTKAPtXoCWa7BI2LhjYPcI7YRBvoZLFRn83 DQJyWTVIUd0zZO6BgDYpbLC08i3s5XLXG9+1Ked94G/dQ0ZVTJdGMDUXzrKMBUaN2I7n 0eIjDbKZBFA2mih/QX9OS4iQwcCJUTdk9RbJeWbxAjrlZx7kQnr3z6DCp9neyxCPRwfP QCguuU2KOhxS2Q8npvYCW1A5ibpuZa7DJWoCMwdBh5ZsIO4QcsLekWZIPglYxufwF3gP iT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DEDNI6hl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e4si16909551ejs.733.2021.09.28.07.44.07; Tue, 28 Sep 2021 07:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DEDNI6hl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241380AbhI1Opp (ORCPT + 8 others); Tue, 28 Sep 2021 10:45:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241152AbhI1Opo (ORCPT ); Tue, 28 Sep 2021 10:45:44 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B5FC06161C for ; Tue, 28 Sep 2021 07:44:04 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id b15so92086402lfe.7 for ; Tue, 28 Sep 2021 07:44:04 -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=fU97reShB9fGHn2jTKQX3rdQzaCG4O5OGr/DmkqBnu0=; b=DEDNI6hlF0RjvgmAhajWy0lhJrda655o1MNUs3b/30KvS5jMCkYPCwfRC784PWgraM N+JoQVAmqhMYqxTDZAhCj/SGwLVxiwYpFrOHloF0sODWtLOzBGZL9yB4ysleRkO0S7VO 0yt0kAcjbTcr8RzV3fVlmFG86TTpQpJuk1NGlHkP58poyvkZ1nsS65Rbge+foqELG9km A9RAMUPZBelwGx/ahzLUExKkhhI95aaSHJeyTMn4Yikao9mTnBGCTJoMRDBLdskUfCw5 xbCKXHmu47FZp22yexR50OYuAm/YCmOHVZXvFFvwcobDPZnNQSGAvOcnsIUNpgt2BczB wU4g== 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=fU97reShB9fGHn2jTKQX3rdQzaCG4O5OGr/DmkqBnu0=; b=a4c6JAty4ncH0OsNfz/AbKscOcQqBnELr6IkD9HgIqB1ZyPhtkdFXfwjwS1gILyVaH d4QbMXSVIZYzNmosg/lQCzBIakeNQEvSH56T+buBeBK6IPBuznoaMzycJTRz4U0rt1Pt yJINQC2v9kvx9b9zN7Zn50AYxQqlkVk5WFxPE3jSnbqwRTukMjTufHfI3BL+raytLYL1 LRV84fqqpUwJJwF8FFLK8kmHeztlLnpuGtcnhf5H2FadRKXtSzKFwrVFr+7mjbDKU0Aw OVt48HCffg8wywupsBZNjSK/UNu7VE461us0h3RUP3llb3tPFVgaWS7LobAB+n13/yls 0GSA== X-Gm-Message-State: AOAM532bs7IJtBr6bcwMudV+wVKP8KOwAqXOk5Fs3sduRaszqsos73KK q6DZFHFUU2+pmN8siVQABoJvWQ== X-Received: by 2002:a2e:b6cf:: with SMTP id m15mr362655ljo.224.1632840233067; Tue, 28 Sep 2021 07:43:53 -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 x23sm1933462lfd.136.2021.09.28.07.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 07:43:52 -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/6 v8] RTL8366(RB) cleanups part 1 Date: Tue, 28 Sep 2021 16:41:43 +0200 Message-Id: <20210928144149.84612-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 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 5 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. ChangeLog v7->v8: - Keep track of filtering state using the core instead of tracking it in the driver. - Minor spelling etc. ChangeLog v6->v7: - Fix up the filter enable/disablement code according to spec. ChangeLog v5->v6: - Fix a dangling unused "ret" in patch 4. ChangeLog v4->v5: - Drop the patch disabling 4K VLAN. - Drop the patch forcing VLAN0 untagged. - Fix a semantic bug in the filer enablement code. DENG Qingfang (1): net: dsa: rtl8366rb: Support bridge offloading Linus Walleij (5): net: dsa: rtl8366: Drop custom VLAN set-up net: dsa: rtl8366rb: Rewrite weird VLAN filering enablement 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 | 96 +-------------- drivers/net/dsa/rtl8366rb.c | 189 +++++++++++++++++++++++++++-- 3 files changed, 183 insertions(+), 105 deletions(-) -- 2.31.1