]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl931x: Fix VLAN tagging and untagging 19576/head
authorHarshal Gohel <hg@simonwunderlich.de>
Tue, 17 Jun 2025 12:46:42 +0000 (12:46 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 7 Aug 2025 16:33:09 +0000 (18:33 +0200)
commite45d783bce28c647c29a56f5be69da1b2a1db52c
treedb56c17dbf0602a1716b503ff25477ab7568ecde
parent536a25ebf849b2de22792786b4c6f0c15471ee93
realtek: rtl931x: Fix VLAN tagging and untagging

* In RTL931x, bit 31 of the (4th column) of 802_1Q_VLAN_QINQ table
  indicates the validity of l2 tunnel. Before bit 63 (3rd column)
  was being checked for validity of l2 tunnel.

* The untagged_ports requires 64 bits to represent 56 ports. Do not
  store u64 in u32 variable

* First 24 ports are represented in the 2nd register not just first 20

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19576
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c