mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-08 05:32:09 -05:00
These patches fix the remaining issues with BCM5325 switches and allow dropping the default VLAN on Huawei HG556a. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 2bed2d0932c37d6cae9a745613c2e8f83649ed39 Mon Sep 17 00:00:00 2001
|
|
From: Jonas Gorski <jonas.gorski@gmail.com>
|
|
Date: Tue, 25 Nov 2025 08:51:45 +0100
|
|
Subject: [PATCH] net: dsa: b53: fix extracting VID from entry for BCM5325/65
|
|
|
|
BCM5325/65's Entry register uses the highest three bits for
|
|
VALID/STATIC/AGE, so shifting by 53 only will add these to
|
|
b53_arl_entry::vid.
|
|
|
|
So make sure to mask the vid value as well, to not get invalid VIDs.
|
|
|
|
Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
|
|
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
|
|
---
|
|
drivers/net/dsa/b53/b53_priv.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/dsa/b53/b53_priv.h
|
|
+++ b/drivers/net/dsa/b53/b53_priv.h
|
|
@@ -350,7 +350,7 @@ static inline void b53_arl_to_entry_25(s
|
|
ent->is_age = !!(mac_vid & ARLTBL_AGE_25);
|
|
ent->is_static = !!(mac_vid & ARLTBL_STATIC_25);
|
|
u64_to_ether_addr(mac_vid, ent->mac);
|
|
- ent->vid = mac_vid >> ARLTBL_VID_S_65;
|
|
+ ent->vid = (mac_vid >> ARLTBL_VID_S_65) & ARLTBL_VID_MASK_25;
|
|
}
|
|
|
|
static inline void b53_arl_to_entry_89(struct b53_arl_entry *ent,
|