Skip to content

kernel: modules: netdevices: improve Realtek DSA driver - #19644

Draft
namiltd wants to merge 4 commits into
openwrt:mainfrom
namiltd:Realtek_DSA
Draft

namiltd wants to merge 4 commits into
openwrt:mainfrom
namiltd:Realtek_DSA

Conversation

@namiltd

@namiltd namiltd commented Aug 3, 2025 •

Copy link
Copy Markdown
Contributor

Allows switching from realtek,rtl8367b and mediatek,rtk-gsw drivers to realtek,rtl8365mb driver (forum: https://forum.openwrt.org/t/reduce-number-of-drivers-for-rtl8367s).

  • fix mode mask calculation - already implemented
  • add VLAN and Bridging support to Realtek rtl8365mb DSA switch - already implemented
  • add SGMII and HSGMII mode support - already implemented
  • add support for rtl8367sb - already implemented
  • add support for rtl8367s-vb

This patch is used in:

@github-actions github-actions Bot added the kernel pull request/issue with Linux kernel related changes label Aug 3, 2025
@namiltd
namiltd marked this pull request as ready for review August 3, 2025 12:02
@namiltd
namiltd force-pushed the Realtek_DSA branch 3 times, most recently from fe42816 to 0dd841f Compare August 6, 2025 12:44
@hauke

hauke commented Aug 7, 2025

Copy link
Copy Markdown
Member

Please link where it was rejected.
Please add some git header to the patch.

namiltd referenced this pull request in luizluca/openwrt Aug 7, 2025
This supports only the rtl8367s variant of C5-v4 and not the variant
with the rtl8367s-vb switch, which is still not supported in the
upstream Realtek DSA driver.

Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
@namiltd

namiltd commented Aug 7, 2025 •

Copy link
Copy Markdown
Contributor Author

The patch is a squash of several others e.g.:
torvalds/linux@163e320, torvalds/linux@c222427, torvalds/linux@eff85f2, torvalds/linux@26a6e09

@hauke

hauke commented Aug 8, 2025

Copy link
Copy Markdown
Member

Please do not squash these patches. This makes it very hard to identify their origin and complicates the task when one of then gets backported to an LTS kernel or when we go to the next major kernel version.

Please add the backported patches to target/linux/generic/backport-* and follow the format used there. Then add the additional patches to pending or hack.

@namiltd
namiltd force-pushed the Realtek_DSA branch 2 times, most recently from 1fd7833 to 3cf9dd3 Compare August 9, 2025 21:16
@namiltd

namiltd commented Aug 9, 2025

Copy link
Copy Markdown
Contributor Author

@hauke I went back to the original successive stages created by @luizluca

@luizluca

luizluca commented Aug 9, 2025

Copy link
Copy Markdown
Contributor

Please do not squash these patches. This makes it very hard to identify their origin and complicates the task when one of then gets backported to an LTS kernel or when we go to the next major kernel version.

Please add the backported patches to target/linux/generic/backport-* and follow the format used there. Then add the additional patches to pending or hack.

This is a squashed mix from my WIP kernel branch. I'm not sure I pushed the latest version but it is mostly torvalds/linux@master...luizluca:linux:realtek_offload

It will not get upstreamed because the maintainer has an unfinished concurrent alternative, but much more complete.

@namiltd
namiltd force-pushed the Realtek_DSA branch 2 times, most recently from 447c13a to 5f7e901 Compare August 15, 2025 07:08
namiltd added a commit to namiltd/rtl8367d that referenced this pull request Aug 21, 2025
initial files of kernel 6.6.101 + patch openwrt/openwrt#19644

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
@namiltd
namiltd force-pushed the Realtek_DSA branch 5 times, most recently from c294455 to 5cd65de Compare September 8, 2025 20:34
@namiltd
namiltd marked this pull request as draft September 9, 2025 11:39
@namiltd
namiltd marked this pull request as ready for review September 9, 2025 15:14
@namiltd
namiltd force-pushed the Realtek_DSA branch 3 times, most recently from fee0acc to a85df3b Compare November 4, 2025 20:43
@gusfm

gusfm commented Nov 19, 2026

Copy link
Copy Markdown

@namiltd I ran v12-pre3 (head 3e9bd3c11e) on the EX511 v2: 55 tests passed, 3 were expected failures, none failed.

  • The plain br-lan (no VLANs) behaves as in v11 again. Static and group entries without a VID steer and drop as expected, the hosts are learned without a VID, and 5000 full-size pings with learning off arrive with no loss and no port errors. Group entries: a second member, a partial delete and a full delete in the VLAN-aware bridge, and VID 0 groups in the unaware bridge with one or two members, all behave as expected.
  • Live vlan_filtering toggle: IVL/SVL changes at once in both directions, and a toggle takes 20 to 30 ms (5.4 s on v11).
  • The 3 expected failures are the documented shared FID 0: unicast between hosts on standalone ports of the same switch, with learning on in a VLAN-unaware bridge (with and without a PVID on the bridge ports), and tagged frames with a VID the bridge does not have.

One nit: the comment in rtl8365mb_d_vlan_4k_refresh_ivl() still says "The scan below reads every entry"; it now visits only the VIDs in vlan_4k_used.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • e53d8cf1 "net: dsa: realtek: rtl8365mb: support DCB ingress QoS offload" — the subject is the raw kernel subject, but the commit only adds target/linux/generic/pending-6.18/770-* patches. Use an OpenWrt area prefix like the sibling commit, e.g. generic: rtl8365mb: support DCB ingress QoS offload.

Generated by Claude Code

@namiltd

namiltd commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Updated to version v12-pre5, which is identical to version v12 submitted to the Linux upstream 'net-next' tree: https://lore.kernel.org/netdev/[email protected]/

@gusfm

gusfm commented Nov 20, 2026

Copy link
Copy Markdown

@namiltd v12-pre5 (head 6a3003546c) on the EX511 v2: 55 tests passed, 3 expected failures (the documented shared FID 0), none failed; same results as v12-pre3, with the DCB QoS baseline in place.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 new commits; no new issues found.


Generated by Claude Code

@gusfm

gusfm commented Nov 21, 2026

Copy link
Copy Markdown

@namiltd v13-pre2 on the EX511 v2: tested at 5199216f69 with the same &priv->ds fix that 3b1d00b7f0 has, so the same code. 63 passed, 1 failed, 1 expected failure:

  • port-based FID: 0x07AC/0x07AD read back as intended in every state (standalone, VLAN-unaware and VLAN-aware bridge, live vlan_filtering toggles, after leaving the bridge); the three shared FID 0 expected failures of v12 now pass.
  • 7/13's case (the last ports leave a VLAN while filtering, then filtering off): the frames are learned without a VID, 20/20 replies.
  • failed: PCP 1 on untagged frames that leave tagged, from the DCB baseline, unchanged since v12 13/13.
  • expected failure (new test): VLAN-aware bridge, a VLAN tagged on two bridge ports, learning on, with the hosts on standalone ports of the same switch. A family D IVL corner case; the VLAN-aware path is the same as in v12. Details on netdev, with a possible fix that I only checked in a focused run.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 new commits.


Generated by Claude Code

@namiltd

namiltd commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

v13-pre6:

  • 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; drop Tested-by tag as the scan and empty-entry paths changed
  • 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 Tested-by tags on 12/14 as the L2/bridge FID path changed and needs re-testing and review
  • 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 by Gustavo Foletto Mora; needs review and testing)
  • 14/14: patch text is unchanged, but chip behavior changed through 12/14 and 13/14; Linus, Gustavo, Oleg, please reconfirm your tags

@gusfm

gusfm commented Nov 22, 2026

Copy link
Copy Markdown

@namiltd v13-pre6 (head 1a8c07e249) on the EX511 v2: 66 tests passed, none failed, no expected failures.

  • 12/14: 0x0A10 reads 0001 and every port is in its own isolation mask, standalone and in both bridges. The VLAN-aware case from v13-pre2 (a VLAN tagged on two bridge ports, learning on, the hosts on standalone ports of the same switch) now gets 20/20 replies. The own bit keeps same-port filtering: a static entry for h2 on the ingress port still cuts (0 replies), and a group entry only on the ingress port still keeps the group off the other bridge port (0 frames). The port-based FID reads back as intended in every state, as on v13-pre2.
  • 13/14: untagged frames that leave tagged carry PCP 0 (100/100); tagged frames keep PCP 1 and 5. The QoS registers read back in PCP numbering (PCP map 0-7 as is, qmap 7 1 0 2 3 4 5 6 7, port priority 0 on the ports in use), and through them each PCP, each DSCP and the port priority end in the same queue as with the traffic type numbering. 0x0851-0x0852 read 0. Baseline only: the kernel has no CONFIG_DCB, so the dcbnl ops did not run.
  • 7/14: the emptied VLAN case passes as on v13-pre2 (learned without a VID after filtering off, 20/20).

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 new commits; no new issues found.


Generated by Claude Code

@namiltd

namiltd commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

v14-pre3:

  • 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

@namiltd

namiltd commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@gusfm please confirm that it works - provided you have the time and inclination, of course - and I will then submit this version to the Linux upstream as v14.

@gusfm

gusfm commented Nov 24, 2026

Copy link
Copy Markdown

@namiltd , ok I'm going to test this tonight (GMT -3).

@gingernut1978

Copy link
Copy Markdown
Contributor

@namiltd before you send v14 to net-next: would you be willing to include the family C SVL change as a 16th patch in the series?

It only makes sense on top of your series, because it reuses the family D IVL/SVL handling from 7/15 and the L2 changes from 12/15. Refreshed for v14-pre3: gingernut1978@e894780743b

Changes from the v13 version:

  • It now applies on v14-pre3, including the rollback change in set_ivl() and the new undo_pbfid path.
  • The family C behaviour is unchanged.

It builds with W=1, with no warnings. I'll confirm here once I've tested it on the A8000RU (RTL8367S).

If you'd rather keep the series as it is, I can send it to netdev myself as a follow-up once v14 is applied. You're already credited as Co-developed-by in it. Whichever is easier for you.

@namiltd

namiltd commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

There are so many changes in my series that I wouldn’t want to add anything else that might delay the approval process.
I’m already at v14, and I don’t know how many more there will be - I wonder if my patience and persistence will hold out.

@gingernut1978

Copy link
Copy Markdown
Contributor

Understood, that makes sense. I'll send it to netdev as a follow-up once your series is applied. Good luck with v14, and thanks for all the work on this.

@gingernut1978

Copy link
Copy Markdown
Contributor

Tested the family C SVL patch (gingernut1978@e894780743b) on top of v14-pre3 on a TOTOLINK A8000RU (RTL8367S, family C): Wi-Fi clients roaming onto it from another AP keep DHCP and traffic, with no outage. Before the patch, they lost both for about 100 seconds.

@gusfm

gusfm commented Nov 24, 2026

Copy link
Copy Markdown

@namiltd v14-pre3 (head a46b7b355d) on the EX511 v2: 66 tests passed, none failed, no expected failures, the same results as v13-pre6.

  • 12/15: with VLAN filtering turned off on the bridge, 0x07AC reads 000d and the bridge ports have FID 1; turned on again, 0x07AC reads 0000 and every port FID is 0, and the hosts are learned with the VID again. Nothing is left in 0x07AC-0x07B1 at the end of the run.
  • 13/15-15/15: the QoS registers read back as on v13-pre6, in PCP numbering. Untagged frames that leave tagged carry PCP 0 (100/100), and tagged frames keep PCP 1 and 5.
  • The error paths (the IVL_EN rollback in 7/15 and undo_pbfid in 12/15) were not exercised.

Thanks a lot for your work on this, and sorry for the delay.

@namiltd

namiltd commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@gusfm v15-pre0:

  • 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; no code change; Gustavo Foletto Mora's Tested-by tag kept after retesting
  • 7/15, 15/15 and cover letter: clarify that RTL8367S-VB exposes seven ports numbered 0-4, 6 and 7, while the hardware port numbering spans 0-7
  • 9/15: list the family D PVID reset helper and its family-info callback in the commit message
  • 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
  • 13/15: 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; drop the Tested-by tag because the DCB behaviour changed
  • 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

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 new commits; no new issues found.


Generated by Claude Code

@gusfm

gusfm commented Nov 27, 2026

Copy link
Copy Markdown

@namiltd v15-pre0 (head c899cd9a2b) on the EX511 v2: 66 tests passed, none failed, the same results as v14-pre3.

  • 12/15: with VLAN filtering turned off on the bridge, 0x07AC reads 000d and the bridge ports have FID 1; turned on again, 0x07AC reads 0000 and every port FID is 0. Nothing is left in 0x07AC-0x07B1 at the end of the run.
  • 13/15-15/15: the QoS registers read back as on v14-pre3. Untagged frames that leave tagged carry PCP 0 (100/100), and tagged frames keep PCP 1 and 5.
  • Not covered: 5/15's RGMII pad setup (the EX511 CPU port is SGMII), and 14/15's PCP trust rejection (no CONFIG_DCB in this image, so only the setup path ran). The error paths in 7/15 and 12/15 were not exercised either.

@namiltd

namiltd commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@gusfm v15-pre4:

  • 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

namiltd and others added 4 commits November 27, 2026 22:46
Add ingress QoS offload for the RTL8365MB switch through the dcbnl app
interface: a per-port default priority, PCP trust and DSCP trust. The
mapping helpers go to net/core/ieee8021q_helpers.c so other drivers
can share them.

Two changes are visible to users. The driver now rejects a devicetree
port that the chip does not have. With a default priority set, an
untagged frame that leaves a VLAN-tagged port carries that priority as
its PCP.

Tested on an RTL8365MB-VC with eight queues.

ETS scheduling and CPU-tag pre-classification will follow in separate
series.

Signed-off-by: Oleksij Rempel <[email protected]>
Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
This series (15 patches) extends the existing family C
(RTL8365MB/RTL8367S/RTL8367SB/RTL8367RB-VB) driver with a new
family D branch. Family C's functional behaviour is unchanged.

Patches:
 - 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: set and get VLAN 4k 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

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Refresh the rtl8365mb hunk to match the current 6.18 tree.

No functional change.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
- phylink configures the PCS only at ndo_open, until then the UNIPHY
  keeps the bootloader mode
- MR80X v2 u-boot hands over in SGMII (MODE_CTRL 0x421, MISC2 0x70)
  while the board runs the trunk at 2500base-x
- the RTL8367S CPU port brings its SerDes up at DSA setup, 2 s before
  the first open, and trains its receiver against the wrong line rate
- CPU port dead or FCS errors on 18 of 51 boots, 0 of 32 with the mode
  sequence run from pcs_init
- add qca_uniphy_pcs_preconfig() and call it from dwmac-ipq5018 with
  the DT phy-mode; pcs_config at open then hits the mode cache

Signed-off-by: Johan Alvarado <[email protected]>
@gusfm

gusfm commented Nov 27, 2026

Copy link
Copy Markdown

@namiltd v15-pre4 (head 4ff4c8e660, same driver code as fdaf04892f) on the EX511 v2: 66 tests passed, none failed, the same results as v15-pre0.

  • 7/15: read right after each VLAN filtering toggle, before any fast age of ours, the rows learned under the old key are gone: turning filtering off leaves no row with the VID, and turning it back on leaves no row without one. The hosts were already learned again under the new key (lan2:0 after off, lan2:100 after on).
  • 2/15 and 15/15: without the init jam, 20 of the 26 jam registers read differently than on our production image, which still writes it. Everything passes the same. This matches the vendor RTL8367D API in the EX511's stock firmware: there, dal_rtl8367d_switch_init() returns 0 without writing anything. Several of the jam addresses are other registers on family D in that API: 0x1303-0x1305 and 0x13F9 (port_macForceLinkExt), 0x13EB (combo port media), 0x09DA (mirror leaky/keep) and 0x18E0 (RLDP).
  • 10/15: the SerDes CPU port comes up at 1G as before.
  • Not covered: 5/15's RGMII pad setup (the EX511 CPU port is SGMII), and 14/15's PCP trust rejection (no CONFIG_DCB in this image). The error paths in 7/15 and 12/15 were not exercised either.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 new commits; no new issues found.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages kernel pull request/issue with Linux kernel related changes target/qualcommax pull request/issue for qualcommax target target/realtek pull request/issue for realtek target

Projects

None yet

Development

Successfully merging this pull request may close these issues.