From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=66.163.184.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796263782; b=kx/cdY46rzwv5LCbzmdulKxOL2bWqy7s+G+lLbkqhVWx2cPDyB0EGD5rVGXAVC4TZhB+ 0Wk2Q7EjCyZjkoLyBtVxrq3g9v/tOoDo20EHxTZletnGtbZ5gCo4kAW/vdJz5233DtHOD 3M/76gN+U+iViOCxyjbHPpev8ZLdF2CX6IqdShUxNFeOE+3mDb+sX5hiN3H8ZYCb71CR3 Ly/jqi4R1rG6diRJlJPRni5J19tYbgeT2tKf7rUBngakCRF9ArbGYiqirZvGp15+7vZ9+ aumuReL8DOqFG6n0KiCxm7RA9/ZEWvunUDwZat3Nk6yPOcOdnaJAJiZSOeRLLLRObsQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796263782; h=DMARC-Filter:DKIM-Signature:X-SONIC-DKIM-SIGN:X-YMail-OSG:X-Sonic-MF: X-Sonic-ID:Received:Received:Message-ID:Date:MIME-Version:User-Agent: Content-Language:To:From:Subject:Content-Type: Content-Transfer-Encoding:References:X-Mailer; bh=b4e7ZRmZy+FoexoqMMGTezCvycrRMYYcVE8sit334d0=; b=xJqgnuIaHY/d9x5kqwoi6UYyGeb7p1+R+brndqrSC1+S+6qC3xzpvlTSbuZbC6OFtSu4 K188v59kr7yciNncl+X4dxAAqKWQ6/fFePX29BMVi60NxxSDU4nGJniGVdJCSrQsBx98D HMfiBUQ+ZTeYBJbM226I+WOk9i1GKolg6AE8UxOAWw765hHL/YGxS0firzbbSFH1kGmk2 VGnHrf3R3LjxypySdpKGG77XZsyrSQ8WXCq5kyp9lMRZ2ee1MexPiy8a/lCiP8wnNd/IP d66PJRD3fJmVmOndwRB9csqQGz8Q+WEzhZnHCNfzp9q7OQ8FEICqiR1HKxybBSgvYMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=TVRtUCc1; arc=none smtp.remote-ip=66.163.184.199 Received: from sonic301-30.consmr.mail.ne1.yahoo.com (sonic301-30.consmr.mail.ne1.yahoo.com [66.163.184.199]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9385606A32C for ; Thu, 3 Dec 2026 02:09:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D9385606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=TVRtUCc1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796263780; bh=b4e7ZRmZy+FoexoqMMGTezCvycrRMYYcVE8sit334d0=; h=Date:To:From:Subject:Content-Type:References:From:Subject:Reply-To:Content-Type; b=TVRtUCc1ca/Oq1rQYKe3ArWdkN5wXY6RExbDmlShfeAMGJ2Glke+0xKWE0LYoIq53a1YBYistgwJaGydwKm0Tm9hjvQ7+drrS3hQcwJBdrntKrkoTqWQKHfdPiDluvcBfo9/Gix77zeIZ5QXzO0zRs1u1Ej1kzpRootTBqBSSq/7vkPI5vFRrUW8wPdFai9V8ARNmmt/wt6J4lIp6s6haJZFfZDd/UIlNQR2zz95FvgE3X0xv6/5XzQuQ2PdChKd1b3OlWd6Plz6DYYP2+j4I5BFoyLnWwpoUXpKFUEfnvdIf4sN7sUtnxS0Huv0dQ/2Pyq68dFzDl7py1TQLClAZw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796263780; bh=M+EQD+2GYja135XAhFsDR+9sXCzw1U3OvF/MltYMOTX=; h=X-Sonic-MF:Date:To:From:Subject:From:Subject; b=hdw6tMuCXCIAev0cRLUfTu4gfwOzuGTpVtMTDqXft2lRFchu2mTfOEbdvrmEo5yPUWa0st20t4L4eBiRKSsfCLMnAcPPWK6SDVmc4hoO2c3dA2RQ6UidET9Rn5qmttgsU7gRGgPy1scch45/WI+uuikscjam/Y03Cv5jz2zqNpxwc3vB4qR8xsPvqyIhYFGvv3X+OIbAC1Yfo5RnTd4Xno7JoumbYLUwX6FPjx1bun/xUwqDkU1pXAkY9rKWMtOyHuL/K1DcH/Kf6BFgKurAGSIZ5A0jD51KK8hGj2WnjENKLnjzyXKI8nSo+7mj2KZwoAGivXYGmiTVifUxOo76mw== X-YMail-OSG: HmAna_QVM1lsC97S93wDgAAxLakIY9Fe94Cjia89iMhU6oH8WU63Bzl64QmSo3d 04Wg5yjTUnvXBoJT3TsSUCOhr8cs6LHV7bSl1iMaNnLBpHyooDDe8n7j.n5EyS4Hoj5WJHJOHNbj 4ouanD.B8s.HoPj1GHkGRbqF8lLW39VDiyKp31OfFG7oCiuLj1jmuv3eRFXUw4P2lt3eHHe8vUf3 E5lf19oodv1YE8SNZFJRXKQq0P2L2GQMMkWTDRmwZEdVoX4Kbg9o9.apjCuh.h.cG.1KUTEnFMix 1Jm8.YD8UhA3n1H5Zv48cr.oVh.BW4HGXkjETHo3YidEyhv5.bsh.Q7s2i1bv3vIvkoAiIKi4P29 PHvR_4H3WvfMAkRR5Xr85.jUZHWxLI3nrTNUj.sCt5yehfQDNB7zCu7u4Y9Drncr52j0bqM4QCiT G.hnbfhMdJh0funB8aXDjYyjl0rde2eUeXGOur4yq09cNTQLWUQM6zTlHrtt7WSJdex7GLUTK10g ySw8Q2AuklO23MqUOxMn4YoKiZvMpJRdRzJPbQO0GvT_YHPnjo7azvPQfOKORyt3xbfLVk8MkAOw 0PX8jUaBjiepeyS51qeqzVtgfEbzY5CoQkHlNh8S25bS3LCCfxPQtTr.tPgr25DITHjopaAFSFib Ctlq9Z5CjutQXo38W2knZGnmjW0SIvLAWxneGQuqIelEBVdjuMtwj_YKoytfjNzkh9HVHfTsy2U. eOhHCEfjhJJmG_3Q2xLwjCuJ_eKPq0ZxdF_lFA32_kidxW5psfojnxhWlzNmbBgcMC0qdCm8lPK. euD4lyKPhzGic7bxFFAp_j5Nq2nxIsasjDST5cv20EzAOrFneXQj24xhv0P_ycUHbc9q00ioyFKj 4KmnHwF5CD_7tFH6B4DkGf0UQz6JODFAWD2S7g5nYEvi8e8Bvgl_AfdsHq9cuE5.zTfuy0XEL2jp A3aDyhu8.4txuHug_nvN9C0x0lPtEIUg8YJied4URQQkDPpN9yKGILGQbNv9V01IvOdiQDbVfzuN iVqnXGk0dT0l.qTQV8MTEtASof7rtgmEpvxdHeph6egos_20pXvVgFBfX3sI0l7xEwjjD9K8IFb1 G1GW399blfHtJQFiDI9evDYGQ.NvQUc_QpehWJ1VKu1Y1YCz8ofp1e61N9qZtu.7oma3sv6eYwTc n.JBRFwCsY4mN5wplwhOg2sGCKu7CIA8BOApgohlclyjVUPRwEU.H3ORzfez5LI9W2CAlqllFy9r CG4idaBP7mLfbMKYA1ThVXW.q7dXTLpiknkSi7sTQQYujIe82ZgzZDJRtaKTIXHluTBhXb5obBdm Hv2SsWZAnUW3C_vyDr2oHbkE4b_ImkqtdSmPOJPBJll9HAv1I95P7ujRL_kjG5SrUN_xXNXHjkuB Ydo6y3srR2b_BS1SfhW4HydnGTa63WsDoI7ZEX11E04paNtVGvPVqkVVthnA2WJfVJtKxz.4MWPy qM.30i7HsvmpR_28VXGjMO_JkP4oeXjopi3dx2VlVMTBLnZJziujchn5CUKq2wRAb6pvpYPWK_j1 WSXoLYHjcXyd5MxGSzGRPNVz2Hw1FNbtz9UY2GfC9JL.3JnpYxeTWdUrrReUe5kqw4y3Vfsy9SNk 58VvYmdzc1tTtb6bdvsHJhsz0k0l1JD88P1xgak2Dhi9iTrJNaJiFU2dKhbmMzICDpmgqwPeuSBW 0b_NfgWNMCqoonfOx3yeQqGcgjTImt8kqaBUmWbumZldTpWiBBe8X360I3VV7uTgVqAuCLoTvEnH Gg4kxDXXdUgJBVAfGww65CDMdLNui1zryfr856gNwyQYQqH_O53AoTxbzgWxIYiOUfTrJqL5jjWU xSUBSmFPu7F4EOyzx0YeoK5ovhTk4zpxPvn2CTWkvcw9D0FkhsmLorYPWLqkb4DLALB9vrPm7h3I 0h5n9TQRnBGat9iVnhh44o.olqf4gxQUbSEblGPPryrdHGzSpCD7QmCT5qNersKxXxYs9bAdnsVI rHnIZWY6FiDRV9Q39n5D1Ajscj7l0sWiZadqn3UEEOmL.hUC3zfdwGKf_5KvtCuQW4zuLvH.U0.W S_b5FZWe15irbDtgMvMjwL0YS1P0RRjxDVTURl9oiqO9QmuQjoiJvkIWUnJFFXDH86a8WzzktyuH DLRWpky9dA2Gz614o88OWKNrXxbFkrmGVijdntoai8g_TXQZroXbaTjoAjhesojLVzaSxATVv3R0 e0uEXn684qP0MbAUE7LkOVqN5.vlM5vvpF2hOUaQhBE.91BnkfHp_0m_FuAL_v_uxW97Dya7v2sn kdmu5q.1cY_p_88ZjvOLso6i7Ksl1Yw3TAr3JV63Hrw-- X-Sonic-MF: X-Sonic-ID: b947a766-6ed2-45b5-b2dc-781455701a87 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 3 Dec 2026 02:09:40 +0000 Received: by hermes--production-ir2-7c4859dc89-w8xzb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a46d82da0095290798f63cedc5e89514; Thu, 03 Dec 2026 02:09:33 +0000 (UTC) Message-ID: <59c7992d-1c83-4bf1-a2f4-c853d4777190@yahoo.com> Date: Thu, 3 Dec 2026 03:09:29 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: pl To: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de From: Mieczyslaw Nalewaj Subject: [PATCH net-next v19 00/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <59c7992d-1c83-4bf1-a2f4-c853d4777190.ref@yahoo.com> X-Mailer: WebService/1.1.27100 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo This series adds support for the RTL8367S-VB (chip ID 0x6642) to the rtl8365mb driver. The chip belongs to a new "family D" that differs from the existing family C in its VLAN and L2 table layouts, speed/RGMII configuration, SerDes (SDS13) and untagged PCP handling. Patch 1 documents the chip in the devicetree binding. Patch 2 adds the chip family infrastructure, with the per-family data (init jam table, with the common jam table folded into family C) in struct rtl8365mb_family_info (no functional change). Patch 3 moves the external interface force-mode configuration behind the family info (no functional change). Patches 4-5 add the port speed and RGMII mode configuration for family D. Patch 5 also programs the EXT1 RGMII pin drive and slew controls explicitly, using the DN=7 and DP=5 values prescribed by the RTL8367D port API, instead of relying on the family C initialization table. Patch 6 moves the VLAN 4k table accessors behind the family info (no functional change). Patch 7 adds the VLAN 4k table access (dynamically selecting the IVL learning mode from the filtering state of the user ports for family D only). Patch 8 refactors the PVID handling behind the family info (no functional change). Patch 9 adds the raw-VID PVID handling for family D. Patch 10 adds SDS13 PCS support. Patch 11 refactors the family C L2 MAC handling by introducing shared pack/unpack helpers and reaching the family C serializers through function pointers in the family info (no functional change). Patch 12 makes the L2 (FDB/MDB) table access work on family D, which has a 5-word entry layout, narrower table access fields and no EFID, where a VLAN-unaware bridge (VID 0) is isolated in FID 1 using port-based FID, and where LUT hits outside the ingress isolation mask fall back to flooding within the isolation mask (0x0A10 bit 0) with each port included in its own mask. Patch 13 refactors the QoS priority handling: the conversion between the traffic types of the shared QoS layer and the chip's priorities, and the programming of the PCP of untagged frames, move behind hooks in the family info (no functional change). Patch 14 numbers the internal priorities like PCP values on family D, as the vendor API does, so that with the default priority untagged frames keep PCP 0 and the PCP, DSCP and port priority tables stay consistent with the traffic type numbering of the shared QoS layer. Family D has no separate untagged-PCP register (0x0851-0x0852), and its PVID registers contain only the VID. Consequently, PCP trust requests are rejected with -EOPNOTSUPP on family D, because untagged frames could not be assigned the requested PCP before 802.1Q priority classification. Port-based default priority and DSCP trust remain supported. Patch 15 adds the RTL8367S-VB chip table entry. It comes last, so that no intermediate commit exposes a family D chip with incomplete handling and the series stays bisectable. Family C's functional behaviour is unchanged. The L2 table access and FDB/MDB code is shared; the family D handling is selected at runtime through the family info and rtl8365mb_is_d() (patch 12), and the QoS handling through family info hooks only (patches 13 and 14). The RTL8367S-VB exposes seven ports, numbered 0-4, 6 and 7, as described by port_mask in its chip info (patch 15). On family D, FDB/MDB offload is available, but there is no per-bridge EFID. Instead, port-based FID (FID 1) isolates the offloaded VLAN-unaware bridge from standalone and software-bridged ports in FID 0, and 0x0A10 bit 0 (with self-bits in the port isolation masks) ensures tagged frames on standalone ports matching an IVL bridge VLAN flood to the CPU instead of dropping. max_num_bridges = 1 limits this switch to allocating one new bridge number, and rtl8365mb_port_set_efid() rejects any bridge number other than 1 with -EOPNOTSUPP so any other bridge falls back to software forwarding instead of sharing FID 1. Bridges that DSA cannot offload are isolated by the port isolation masks (patch 12). Tested on a TP-Link Archer AX55 v1 (RTL8367S-VB, CPU port 6 over HSGMII (2500base-x) to an IPQ5018, with the UNIPHY mode sequence run at GMAC probe) with bridge VLAN filtering and per-port PVIDs, and in a reboot loop (16 boots, none broken, with traffic through the CPU port and no FCS or symbol errors), by Oleg Gavrilov. Tested on family D by Gustavo Foletto Mora on a TP-Link EX511 v2 (RTL8367S-VB, CPU port 6 over 1G SGMII to an IPQ5018) on a live network, with a VLAN-aware bridge (tagged trunk with VIDs 10-40, access ports on VIDs 10 and 20) and a VLAN-unaware one: VLAN table and PVIDs, tagged and untagged traffic through the CPU port, VLAN isolation, FDB and MDB entries, VLAN add/delete churn, moving a port to a second bridge, traffic in the switch and through the CPU port, a conduit down/up and reboots, with no FCS, symbol, drop, fragment or jabber errors on the checked ports. A further run of 66 tests passed without failures, with the same results as before, and the SerDes CPU port came up at 1G as before. Gustavo Foletto Mora tested the L2/LUT handling with port-based FID isolation (register readback across live vlan_filtering toggles and bridge leave, unicast between standalone ports through a VLAN-unaware bridge) and the lookup-hit isolation fallback (0x0A10) with self-port isolation masks. Gustavo Foletto Mora also tested the family D init without the jam table: 20 of the 26 jam registers read differently than on an image that still writes it, and everything passes the same. Reading back right after each VLAN filtering toggle showed no learned rows left under the old key (lan2:0 after off, lan2:100 after on). Jumbo frames also passed at 1G on the EX511 v2 with the MTU at 8992, the largest that its conduit accepts. 0x088C reads 0x2336 (9014) while 0x0883 (0) and 0x088D stay unchanged, and ping -s 8964 passed 20/20 between standalone ports, with VID 100 and through a VLAN-unaware bridge, with no drops in the counters. 0x03FA reads 0x0007 right after boot without the jam table. Tested on family D by tutzulyk on a TP-Link Archer AX53 v1 (RTL8367S-VB, CPU port 6 over HSGMII to an IPQ5018) with a bridge (br-lan, with a VLAN 99 interface on top) over LAN ports 1 and 4, with several gigabytes of traffic through the CPU port and no RX/TX errors on the checked ports. Regression-tested on family C by Stanislaw Pal on a TP-Link Archer AX55 v1 (RTL8367S, CPU port 6 over a 2500base-x fixed link to an IPQ5018), on a tree that also carries an 802.1Q-based tagger for this switch: three boots (after sysupgrade, a reboot and a cold start), a further run of 23 boots (20 reboots, 3 power cycles, none broken, with the UNIPHY mode sequence run at GMAC probe), and traffic between a LAN client and an 802.11s mesh in both directions, with no FCS errors, drops or driver warnings. Family D paths are not exercised on that chip. Not covered: the family D RGMII path on hardware, real Wi-Fi stations, flow control on the family D SerDes port, DCB DSCP trust on family D and the rejection of PCP trust on family D (the tested images have no CONFIG_DCB), which is intentional because the chip cannot assign a configurable PCP to untagged ingress frames. The EXT0 field of DIGITAL_INTERFACE_SELECT is not programmed for the SerDes on family D and keeps its power-on or strap default; whether the vendor sequence writes it was not verified, and the link came up on all tested boards. The error paths in 7/15 and 12/15 (including the IVL_EN rollback and the PBFID/PBFIDEN restore), as well as rejecting a second offloaded bridge in 12/15, were not exercised either. The QoS refactor in 13/15 was retested on family D, but not on family C hardware. Throughput above 1 Gbps on the family D SerDes port was not tested; the HSGMII link was only verified to come up and carry traffic. A cold boot without prior firmware/bootloader SerDes initialization has not been tested on family D. Signed-off-by: Mieczyslaw Nalewaj --- v19: - 5/15: disable SerDes 1 before muxing the shared pins to MAC7, so the pins are never owned by both at once (Sashiko); tags kept - 7/15: make rtl8365mb_d_want_ivl() and rtl8365mb_d_vlan_4k_set_ivl() static and drop them from rtl8365mb_vlan.h; log a failed read or write in the IVL_EN rollback loop; fix the commit message, which mentioned an error path that does not exist (Sashiko); tags kept - 10/15: correct the commit message and the comment above the DIGITAL_INTERFACE_SELECT skip: the EXT0 field keeps its power-on or strap default, as the chip is reset before PCS configuration, not a bootloader value (Sashiko); no code change, tags kept - 11/15: rename RTL8365MB_TABLE_CTRL_PORT_MASK and RTL8365MB_TABLE_ADDR_MASK to RTL8365MB_C_TABLE_CTRL_PORT_MASK and RTL8365MB_C_TABLE_ADDR_MASK; no functional change, tags kept - 12/15: restore the port's previous PBFID/PBFIDEN state in the rtl8365mb_port_vlan_filtering() error path instead of assuming the opposite of vlan_filtering (Sashiko); document the self bit in the isolation masks (Sashiko); update the bridge_join/leave comments in rtl83xx.c for chips without an EFID (Sashiko) - 13/15: document in the struct rtl8365mb_family_info kernel-doc that jam_table is optional and may be NULL (family D) (Sashiko); no functional change, tags kept - 14/15: document in the same kernel-doc that qos_set_untag_pcp is optional and may be NULL (family D); no functional change, tags kept - cover letter: note that EXT0 in DIGITAL_INTERFACE_SELECT is not programmed on family D v18: https://lore.kernel.org/netdev/1383a67b-15e4-4c76-8bbf-65d3cbfa1fc1@yahoo.com/ - 7/15: mention IVL in the commit subject and note in the commit message that only the internal rollback loop skips the L2 flush - 9/15: say in the commit message that the family D PVID helpers are non-static because the family info in rtl8365mb_main.c references them - 10/15: explain in a comment and in the commit message why DIGITAL_INTERFACE_SELECT is not written for the SerDes on family D, and that the vendor sequence was not checked for EXT0 - 12/15: replace the stateful bridge_num/bridge_ports tracking in rtl8365mb_port_set_efid() with a stateless check rejecting any bridge number other than 1 (efid > 1), drop the unused fields from struct rtl8365mb, and update the max_num_bridges comment in rtl8365mb_setup() to match; check br_vlan_enabled() of the bridge in rtl8365mb_port_set_efid() instead of dp->vlan_filtering, which DSA has not synced yet on bridge join, and comment why; update PBFID/PBFIDEN before rtl8365mb_d_vlan_4k_refresh_ivl() in rtl8365mb_port_vlan_filtering() and call rtl83xx_port_fast_age() on the port afterward so dynamic entries learned under the previous PBFID key are flushed even without a switch-wide IVL flip; clear PBFID on PBFIDEN write failure in rtl8365mb_port_set_efid() - 14/15: name both causes in the apptrust error message in rtl83xx-qos.c (unsupported selector or order) and mention the change in the commit message v17: https://lore.kernel.org/netdev/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a@yahoo.com/ - 5/15: reword the commit message to say that EXT1 RGMII pin controls rely on reset, EEPROM, or bootloader defaults rather than the family C init jam table; no code change, Reviewed-by kept - 7/15: clarify the DSA dp->vlan_filtering update ordering in the comment above rtl8365mb_d_want_ivl() (both normal and error-restore paths), note that the IVL_EN rollback does not flush L2 entries, and update the commit message for the single-bridge offload limit in 12/15; no code change, Reviewed-by and Tested-by kept - 10/15: reformatted comment to fit in 80 columns (checkpatch); clarify in comments that FIBER_CFG2 bit 6 only disables the optical/fiber RX path and that family D has no TXFC/RXFC bits in SDS_MISC (controlling pause only via the MAC force register); no code change, Tested-by kept - 12/15: reject offloading a second bridge on family D with -EOPNOTSUPP in rtl8365mb_port_set_efid() so distinct bridges never share FID 1; clarify the DSA dp->vlan_filtering ordering in the undo_refresh_ivl comment and update the max_num_bridges comment in rtl8365mb_setup(); drop Tested-by as the bridge offload check changed - 14/15: clarify in the commit message that the driver relies on the hardware default leaving 1p remarking disabled, and update the rtl83xx_port_set_apptrust() error message not to advertise PCP support on hardware families that reject it; Reviewed-by kept v16: https://lore.kernel.org/netdev/aebcc7f6-d5f8-4157-b63a-e2e707d9859b@yahoo.com/ - 7/15: rewrite the commit message: merge the paragraphs on the switch-wide IVL policy, say that port-based FID comes with the L2 patch, and word the LUT flush so that it does not depend on what the chip does on its own; no code change, Tested-by tag kept - 10/15: mention in the kernel-doc of sds_supported and in the comment above rtl8365mb_sds_probe_option() that family D requires an SGMII or HSGMII external interface in the chip metadata; no code change - 14/15: say in the commit message what the reporter confirmed on hardware (baseline QoS, no CONFIG_DCB) and that neither the rejection of PCP trust nor DSCP trust was exercised; log a dev_err() message in rtl8365mb_qos_set_apptrust() when rejecting PCP apptrust on chips without qos_set_untag_pcp, so users get feedback in dmesg without complicating the shared selector-order check in rtl83xx-qos.c; keep the Tested-by tag dropped, as the new dev_err() path cannot be tested without CONFIG_DCB - 15/15: explain in the commit message why jam_table is left unset on family D: the vendor RTL8367D API does not write an init jam table (dal_rtl8367d_switch_init() writes nothing) and several jam addresses are other registers on family D; merge the paragraphs describing the ports and the jam table; say in the comment above rtl8365mb_sds_raise_rate_limits() and in the commit message that LINE_RATE_HSG_H (0x03FA) is not written on family D, as in the vendor RTL8367D API; Gustavo Foletto Mora's Tested-by tag kept after retesting without the jam; reword the comment on the max packet length registers (0x088C, selected through 0x0883; 0x088D unused), note that 0x1200 and 0x0884 do not set the maximum frame length on family D, and add the jumbo frame results and state that throughput above 1 Gbps was not tested - 12/15: drop the reference to the jam table from a comment, as family D does not write it; no code change, Tested-by tag kept - cover letter: state what the EX511 v2 tests did not cover (error paths in 7/15 and 12/15, PCP trust rejection and throughput above 1 Gbps) and add their results v15: https://lore.kernel.org/netdev/790b9ea4-09d9-4a57-a393-cf10d58ed8cf@yahoo.com/ - 2/15: fold rtl8365mb_init_jam_common into the family C init jam table (renamed to rtl8365mb_c_init_jam) and drop the separate common jam loop from rtl8365mb_switch_init(), as family D does not use these writes; no functional change, tags kept - 5/15: program the family D EXT1 RGMII pad controls explicitly; set the RG1 DN and DP fields to 7 and 5 respectively, as prescribed by the RTL8367D port API, while preserving unrelated register fields; drop the Reviewed-by tag because the RGMII setup changed - 7/15: capitalize VLAN in the subject; flush dynamic LUT entries after a successful switch-wide IVL_EN change; clarify why VLAN filtering remains per-port rather than advertising vlan_filtering_is_global; document that the IVL policy is switch-wide and the resulting limitation for a VLAN-aware and a VLAN-unaware bridge sharing the switch; Gustavo Foletto Mora's Tested-by tag kept after retesting; make the IVL/SVL comment reflect that the family D static L2 helpers are introduced later in the series - 9/15: list the family D PVID reset helper and its family-info callback in the commit message - 10/15: require an SGMII or HSGMII external interface in the chip metadata before enabling the family D SerDes path and its port 6 rate-limit setup (no change for RTL8367S-VB); note in the commit message that the port 6 rate-limiter register addresses and field masks have been verified against the vendor RTL8367D API, and in the code that SDS_MISC shares its address with family C; drop Reviewed-by and unretested Tested-by tags as rtl8365mb_sds_probe_option() changed, Gustavo Foletto Mora's Tested-by kept after retesting - 12/15 and cover letter: clarify that max_num_bridges limits new bridge number allocation, while a bridge already numbered by another switch may also be offloaded and share FID 1 on VLAN-unaware ports; Gustavo Foletto Mora's Tested-by tag kept after retesting; state explicitly that a new local bridge stays software-forwarded if bridge number 1 is already held elsewhere - 13/15: add kernel-doc for the complete rtl8365mb_family_info; call the priority-to-queue table index hw_prio consistently in its comments, macro and helper; reword the qmap/file comments in rtl8365mb_qos.[ch] so that they match the hw_prio indexing; drop the unused hw_prio parameter from qos_set_untag_pcp; Gustavo Foletto Mora's Tested-by tag kept after retesting - 14/15: reject PCP trust on family D because its PVID registers hold only the VID and the chip cannot assign a configurable PCP to untagged ingress frames; keep port-based default priority and DSCP trust supported; make qos_set_untag_pcp an optional family capability and use its absence to reject PCP trust without a direct family check; clarify the qos_set_port_prio callback contract and the family-specific QoS register comments; drop the Tested-by tag because the DCB behaviour changed - 15/15: leave jam_table unset (NULL) in rtl8365mb_family_d so the family C init jam sequence is not run on family D, and update the commit message accordingly - cover letter: document the untested family D RGMII path, distinguish rejected PCP trust from untested DSCP trust, and note that the SerDes tests have not isolated possible firmware/bootloader initialization v14: https://lore.kernel.org/netdev/874b29a3-f47f-4bf2-a0f6-2f9fea712f4c@yahoo.com/ - 4/15: drop the unused extint variable in rtl8365mb_d_ext_config_forcemode(); no functional change, tags kept - 7/15: restore the entry whose write failed too when rolling back the IVL_EN rewrite in rtl8365mb_d_vlan_4k_set_ivl(), as the write may have reached the chip before the error was reported; correct the comment on vlan_4k_used (rtl8365mb family D only) (Sashiko) - 10/15: say in the commit message that the port 6 rate limiter registers were not compared with the vendor RTL8367D API and that flow control on the family D SerDes port was not tested (Sashiko) - 12/15: in rtl8365mb_port_vlan_filtering(), write PBFIDEN before PBFID when VLAN filtering is enabled on a bridged port (PBFID first otherwise), as rtl8365mb_port_set_efid() does, so that a port is not left learning in FID 0 with port-based FID enabled (Sashiko); note that bridges already assigned a number from another switch share FID 1; drop the else after return in rtl8365mb_port_set_efid() and note in the comments of the family D L2 serializers that an entry with IVL=0 and FID 0 is written back with FID 1 (no functional change) - 13/15 (new): refactor the QoS priority handling behind rtl8365mb_family_info hooks (qos_iprio_to_hw, qos_hw_to_iprio, qos_set_untag_pcp) instead of rtl8365mb_is_d() checks in rtl8365mb_qos.c, like VLAN, PVID and L2; no functional change (Oleksij Rempel) - 14/15: add the family D implementations of the QoS hooks; say in the commit message that DCB priority trust with a non-zero default priority was not tested on family D (Sashiko) - 15/15: say in the commit message that the common init jam table is also applied to family D without comparison with the vendor RTL8367D initialization (Sashiko); wire up the family D QoS hooks in rtl8365mb_family_d v13: https://lore.kernel.org/netdev/3f1826f8-3096-40dd-a278-c70fce4852c8@yahoo.com/ - 7/14: write IVL_EN cleared when a 4K entry loses its last member, so that an emptied entry is not left in IVL (Sashiko); move the IVL_EN rewrite into rtl8365mb_d_vlan_4k_set_ivl(), which 12/14 also uses on its error path; Tested-by from Gustavo Foletto Mora kept after retesting the changed scan and empty-entry paths - 12/14: comment on the shared vid/fid storage in rtl8365mb_d_l2_data_to_mc(); unlike the v12 attempt that took FID 1 from VLAN 4k entries (which failed for bridges without a PVID), isolate the offloaded VLAN-unaware bridge from standalone ports using family D's per-port PBFID registers (0x07AC / 0x07AD + port, assigning FID 1 to VLAN-unaware bridge ports and serializing VID 0 entries with FID 1), keeping standalone ports in FID 0; set 0x0A10 bit 0 and include each port in its own isolation mask on family D so tagged frames on standalone ports matching an IVL bridge VLAN reach the CPU instead of dropping; if programming the port-based FID fails in rtl8365mb_port_vlan_filtering(), restore IVL_EN through rtl8365mb_d_vlan_4k_set_ivl(); drop the Tested-by tags of Stanislaw Pal and Oleg Gavrilov on 12/14 as the L2/bridge FID path changed; Tested-by from Gustavo Foletto Mora kept after retesting - 13/14 (new): number family D internal priorities like PCP values, as the vendor API does, converting from traffic types at the register boundary, so untagged frames keep PCP 0 (reported and tested by Gustavo Foletto Mora) - 14/14: patch text is unchanged, but chip behavior changed through 12/14 and 13/14; Gustavo reconfirmed his tag on the full series; Linus, Oleg, please reconfirm yours v12: https://lore.kernel.org/netdev/bc42ae96-dc7e-4b6e-b9cc-64cde5dc51ce@yahoo.com/ - rebased on the current net-next, which describes the available ports with port_mask in struct rtl8365mb_chip_info - 2/13, 3/13: drop num_ports from struct rtl8365mb_family_info and the num_ports use in rtl8365mb_detect(), as the ports are now described by port_mask; reword the commit message - 7/13: track the active 4K VLAN entries in a vlan_4k_used bitmap, so rtl8365mb_d_vlan_4k_refresh_ivl() visits only the entries in use instead of all 4094 VIDs (about 5 s per vlan_filtering toggle before, 20-30 ms with the bitmap, measured by Gustavo Foletto Mora); if rewriting IVL_EN fails midway, restore the entries already rewritten (best effort); the Reviewed-by and Tested-by tags stay dropped, as the update code changed; entries that were already in the table before the driver loaded are not visited - 8/13: reword the comment on the family C PVID reset: family C is left as it was before family D support, its PVID registers are not touched at setup - 9/13: add the missing kernel-doc markers and parameter descriptions to rtl8365mb_d_vlan_port_get_pvid(), rtl8365mb_d_vlan_pvid_port_set() and rtl8365mb_d_vlan_pvid_port_clear(); reword the comment in rtl8365mb_vlan_setup(), as the PVID is only reset where the chip needs it - 10/13: clarify the comment on RTL8365MB_BYPASS_LINE_RATE_REG for family D (port 5 is not an external port on the RTL8367S-VB), and state in the commit message that the register layout is the same as in the vendor RTL8367D API - 12/13: fix the max_num_bridges comment and commit message (a bridge that already has a number from another switch can still be offloaded here), mention static multicast entries in the FID 0 paragraph, and explain why a per-bridge FID from the VLAN 4k entries does not help. Giving the offloaded bridge its own FID (FID 1) was tried and dropped: it only works for bridges whose ports have a PVID, i.e. a VLAN 4k entry carrying the FID. A bridge without VLANs (the default br-lan) is classified into FID 0, so the static entries written with FID 1 no longer match what it learns, and with fdb_isolation the standalone ports' host entries in FID 0 shadow its traffic. FID 0 stays shared as described in the commit message, which is a known limitation of the chip without EFID - 13/13: describe the ports of the RTL8367S-VB with .port_mask instead of a family D port count and set .num_tx_queues, as required after the rebase; reword the commit message, which now says that the init jam table is the RTL8367C one and has not been compared with the vendor RTL8367D initialization; num_tx_queues is 8 as for the other chips and has not been checked against the family D vendor code v11: https://lore.kernel.org/netdev/cf3fd237-2290-4002-8de0-ea4100ef0f85@yahoo.com/ - 7/13: add rtl8365mb_d_vlan_4k_refresh_ivl() to update IVL_EN across active 4K VLAN entries when a vlan_filtering change flips the switch-wide filtering state; drop Reviewed-by and Tested-by tags as this adds a new scan path - 8/13 (new): move the PVID get/reset/set/clear helpers behind struct rtl8365mb_family_info, the existing code becoming the family C implementation; no functional change (Luiz) - 9/13: add the family D PVID get/reset/set/clear implementations and call vlan_port_reset_pvid() through struct rtl8365mb_family_info instead of using an rtl8365mb_is_d() check; drop Reviewed-by and Tested-by tags as the PVID path was reworked - 10/13: note in a comment that the DW8051 reset/enable bits in CHIP_RESET and MISC_CFG0 are identical on family D in the vendor SDK - 12/13: clarify in the comment on max_num_bridges = 1 that DSA allocates bridge numbers system-wide - 13/13: wire up the family D PVID callbacks in rtl8365mb_family_d, make rtl8365mb_d_ext_config_forcemode() static and drop its declaration from rtl8365mb.h - Added a test report from tutzulyk on family D (RTL8367S-VB); no Tested-by tag, as no real name and e-mail were provided - Added a new family C regression run from Stanislaw Pal (Archer AX55 v1, RTL8367S): 23 boots, none broken - Added Tested-by from Oleg Gavrilov on 2-4, 6 and 10-13 (family D, Archer AX55 v1, RTL8367S-VB, 2500base-x): 16 of 16 good boots - Dropped Tested-by from Stanislaw Pal on 3 and 6, as these patches were added after his test v10: https://lore.kernel.org/netdev/d9da17af-f49e-4878-a8dd-59a8919e6930@yahoo.com/ - 8/11 of v9 (SerDes re-latch): dropped. Johan Alvarado traced the symptom to the SoC side: the bootloader hands the UNIPHY over in SGMII and the out-of-tree qca-uniphy PCS programs SGMII+ only from pcs_config() at the first open of the conduit, about two seconds after the switch brought its SerDes up in HSGMII at DSA setup, so the switch receiver trains against the wrong line rate. Running the UNIPHY mode sequence at GMAC probe, before the switch probes, fixes it with no change in rtl8365mb (0 of 32 broken boots, versus 18 of 51). As neither dwmac-ipq5018 nor pcs-qca-uniphy is in mainline, the workqueue, the extra locks and the reboot notifier are not needed in this driver (Johan, Alvin) - 2/12: say "family-specific" in the comment on the init jam table - 3/12 (new): move ext_config_forcemode() behind struct rtl8365mb_family_info, the existing code becoming the family C implementation; no functional change (Alvin) - 4/12: only add the family D force-mode implementation, instead of is_d() branches in the shared code; no functional change; say in the commit message why the function is not static until the last patch - 5/12: log an error instead of a warning when RGMII is not available on port 7, and say in the commit message that port 7 then has no supported interface - 6/12 (new): move the VLAN 4k table accessors behind struct rtl8365mb_family_info, the existing code becoming the family C implementation; no functional change (Alvin) - 7/12: only add the family D VLAN 4k accessors, instead of is_d() branches in the shared code; on family D enable IVL while any user port has VLAN filtering enabled, independent of the port being configured (so the CPU port cannot reset it); document that IVL_EN (bit 3, versus bit 14 on family C) is refreshed on the next port_vlan_add/del of the VID, not on a vlan_filtering change; say in the commit message why the accessors are not static until the last patch - 9/12: do not advertise 10 and 100 Mbit/s on the family D SerDes port, as no SerDes rate is programmed for them - 11/12: do not delete a dynamic unicast entry on family D; correct the commit message about standalone ports (DSA programs no entries for them without fdb_isolation) and describe that FID 0 is shared; name the vendor function that writes the LUT aging value (dal_rtl8367d_l2_init); say in the commit message why the family D functions are not static until the last patch - 2/12 and 12/12: restored Reviewed-by from Linus, reconfirmed on the list after v9 v9: https://lore.kernel.org/netdev/9b73858d-fc09-4988-8bab-fd7b88db9412@yahoo.com/ - 2/11: add struct rtl8365mb_family_info holding per-family data (port count, init jam table); use num_ports from it in rtl8365mb_detect(); rename the port count constant to RTL8365MB_C_MAX_NUM_PORTS (Alvin) - 3/11: drop the FORCE_SPEED_WIDTH macro and add a mask for the most significant speed bit (Alvin) - 5/11: restructure the family D checks when unpacking the untag field; no functional change - 7/11: update the kernel-doc of sds_supported and the commit message for family D always setting it; note in a comment that the register and field names follow the vendor API - 8/11: - use explicit mutex_lock()/mutex_unlock() instead of guard(mutex); no functional change - arm the re-latch only for 2500base-x on a CPU port, and say so in the commit message; ignore conduit state changes of other switches in the tree - 9/11: reach the family C L2 serialisers and entry size through function pointers in the family info (Alvin) - 10/11: - add the family D L2 serialisers to the family info, drop RTL8365MB_D_L2_MAX_PORT and the port checks, as the core never passes a port above num_ports - 1 (Alvin) - use an SVL key (IVL=0, FID=0) for VID 0, so static unicast and multicast entries match the learned ones in a VLAN-unaware bridge; they were written with IVL set and never replaced the learned entries (reported and tested by Gustavo Foletto Mora) - offload only one bridge on family D (max_num_bridges = 1), as the LUT cannot tell bridges apart without EFID; further bridges fall back to software forwarding - do not delete a unicast entry on family D if the entry found belongs to another port; update the l2_lock and EFID comments; note that the LUT aging value is undocumented - 11/11: describe the available RTL8367S-VB ports in its family info instead of a family check in rtl8365mb_detect(); mention the L2/LUT and table access differences in the family D overview comment - Dropped the Reviewed-by tags of Linus and Luiz from 2/11 and the one of Linus from 11/11, as these patches changed substantially. Linus, Luiz, could you please take another look? Tags on the other patches are unchanged. - Added Tested-by tags: Gustavo Foletto Mora on 2, 3, 5, 6, 7, 9, 10, 11 and Stanislaw Pal on 2, 3, 7, 8, 9, 10 v8: https://lore.kernel.org/netdev/08611959-c555-46d9-8e7e-20b85d0c4056@yahoo.com/ - 2/11: declare the rtl8365mb_is_d() helper as a global inline function in the new header - 9/10: split into two patches to improve structure and address reviewer comments: - 9/11 (new): introduce shared MAC pack/unpack helpers and refactor family C serializers without functional changes - 10/11: drop the confusing _any() suffixes in favor of clean symmetric dispatchers, switch to the global rtl8365mb_is_d() helper, and fix the memset size in family D serializers v7: https://lore.kernel.org/netdev/3bf4dd70-9771-497b-8c27-e925e0ef81eb@yahoo.com/ - 3/10, 6/10: note that the family D path is unreachable until the last patch - 4/10: program EXT_TXC_DLY, the pin mux and the SerDes 1 disable before selecting RGMII; warn when RGMII is disabled because MAC4 owns EXT1 - 8/10: act only on the conduit of the CPU port that carries the SerDes; queue the work with schedule_delayed_work() and rename the devres action to rtl8365mb_sds_relatch_disable() - 9/10: new, make L2/LUT access work on family D (5-word entries, narrower table access fields, LUT init, no FDB isolation) - 10/10: update the NET_DSA_REALTEK_RTL8365MB help text v6: https://lore.kernel.org/netdev/5a4715dd-89e0-4868-9ffb-c8fb73b18d04@yahoo.com/ - 4/9: do not advertise RGMII for port 7 when MAC4 owns EXT1, instead of returning -EBUSY from mac_config(), which phylink ignores - 5/9: take IVL_EN from vlan4k->ivl_en and leave SVLAN_CHK_IVL_SVL at 0, as the vendor API does - 7/9: pcs_get_state(): keep phylink's speed and duplex for SGMII and never report the link up with an unknown speed - 8/9: start the re-latch work when the conduit comes up and stop it when it goes down (.conduit_state_change); serialize it against pcs_config() with sds_cfg_lock; disable it for good on shutdown and unbind v5: https://lore.kernel.org/netdev/aa5fa12c-e43e-4e5e-9f77-c6eaf477abc4@yahoo.com/ - 1/9: fix the subject - 4/9: refuse RGMII on EXT1 with -EBUSY when it is owned by MAC4, before touching any EXT1 register - 5/9: drop the unverified rationale for forcing SVLAN_CHK_IVL_SVL, say that the vendor API leaves it at 0, and note that the family D paths are not reachable until the last patch - 6/9: init prev_accepted_frame to avoid a maybe-uninitialized warning - 7/9: comment the write of the whole RX disable field, as in the vendor sequence; fix two comments that still credit pcs_link_up() on family D - 8/9: cancel the re-latch work from a reboot notifier instead of checking the driver data; fix the RESTORE_TRIES comment and do not sleep after the last failed restore attempt - 9/9: fix the description of the external interface indices. The v4 changelog said that only HSGMII is exposed; that was wrong, SGMII is still exposed v4: https://lore.kernel.org/netdev/38872e6f-1264-4a93-9f81-8212173e909d@yahoo.com/ - 1/9: reword the commit message (support is added by the series) - 3/9: document the per-port force enable register - 5/9: document both forced IVL bits, update stale comments - 6/9: clear the family D PVID registers at setup - 7/9: do not override the forced SGMII speed in pcs_get_state(), update stale comments, note that the patch is preparatory - 8/9: remember a failed restore and retry it first; stop the work after shutdown (driver data cleared) - 9/9: expose HSGMII only on the SerDes port, update the SerDes interface comment v3: https://lore.kernel.org/netdev/e84d76ee-03df-49b0-8c9a-b289dfae8728@yahoo.com/ - add a dt-bindings patch (1/9): RTL8367S-VB listed under realtek,rtl8365mb - add chip family infrastructure as its own patch (2/9), no functional change - squash the family D PVID getter and the PVID set/clear patches into one (6/9), so the read and write paths use the same register layout at every point of the series - add the RTL8367S-VB chip table entry last (9/9), after the family D speed, RGMII, VLAN and PCS support, so no intermediate commit can reach the chip with incomplete handling (reported by the automated review) - 6/9: fix the commit message (port p's write lands in port p >> 1) and update the stale kernel-doc and file comments - 8/9: start the re-latch work only for 2500base-x, cancel it from .pcs_disable, from pcs_config() and via a devres action; retry the SDS_MISC restore and come back soon if it fails; rewrite the commit message to match the code (reported by the automated review) - 9/9: document family D in the file header comment and in the learn limit comment (limit confirmed against the Realtek vendor API) v2: https://lore.kernel.org/netdev/28382f3f-03c1-4606-9b11-86f118abeafe@yahoo.com/ - 2/8: mask r_speed to the width of the FORCE_SPEED field before passing it to FIELD_PREP(), so that the family D 2500M value (5) cannot trip the compile-time range check; bit 2 still goes to FORCE_SPEED2 (reported by the automated review). - 4/8: the commit message now explains why EXT_TXC_DLY[5:3] is cleared for RGMII on EXT1: the vendor RGMII setup does it, and the init jam table leaves the field at 2, which would add an extra TX delay on top of tx-internal-delay-ps. Add a comment describing the EXT_TXC_DLY layout (Andrew Lunn's review). - 8/8: document the new struct rtl8365mb members in the kernel-doc comment (sds_lock, sds_relatch, sds_relatch_count, sds_misc_target_val), which fixes the kernel-doc warnings. - 1/8, 3/8, 5/8, 6/8, 7/8: no changes. v1: https://lore.kernel.org/netdev/84fc7483-b22d-45ea-a3b8-3285dc357265@yahoo.com/ Mieczyslaw Nalewaj (15): dt-bindings: net: dsa: realtek: add RTL8367S-VB net: dsa: realtek: rtl8365mb: add chip family infrastructure net: dsa: realtek: rtl8365mb: refactor forcemode handling net: dsa: realtek: rtl8365mb: set speed for family D net: dsa: realtek: rtl8365mb: set RGMII mode for family D net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling net: dsa: realtek: rtl8365mb: add VLAN 4k/IVL for family D net: dsa: realtek: rtl8365mb: refactor PVID handling net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support net: dsa: realtek: rtl8365mb: refactor L2 MAC handling net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D net: dsa: realtek: rtl8365mb: refactor QoS priority handling net: dsa: realtek: rtl8365mb: use PCP numbering on family D net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB .../devicetree/bindings/net/dsa/realtek.yaml | 2 +- drivers/net/dsa/realtek/Kconfig | 3 +- drivers/net/dsa/realtek/realtek.h | 19 +- drivers/net/dsa/realtek/rtl8365mb.h | 78 ++ drivers/net/dsa/realtek/rtl8365mb_l2.c | 269 +++-- drivers/net/dsa/realtek/rtl8365mb_l2.h | 21 + drivers/net/dsa/realtek/rtl8365mb_main.c | 996 +++++++++++++++--- drivers/net/dsa/realtek/rtl8365mb_qos.c | 163 ++- drivers/net/dsa/realtek/rtl8365mb_qos.h | 10 +- drivers/net/dsa/realtek/rtl8365mb_table.c | 48 +- drivers/net/dsa/realtek/rtl8365mb_vlan.c | 525 ++++++++- drivers/net/dsa/realtek/rtl8365mb_vlan.h | 26 + drivers/net/dsa/realtek/rtl83xx-qos.c | 2 +- drivers/net/dsa/realtek/rtl83xx.c | 20 +- 14 files changed, 1901 insertions(+), 281 deletions(-) create mode 100644 drivers/net/dsa/realtek/rtl8365mb.h -- 2.53.0