]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: b53: fix extracting VID from entry for BCM5325/65
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 28 Nov 2025 08:06:20 +0000 (09:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:29 +0000 (14:03 +0100)
commit6f2311c6cb9f16b8fa50f4c2d5bef22d1a54f4aa
treeafa5ffb244d320dbe1321be30aa2a194f9725e63
parentc25b004020809fb71aa712d55eb19b853c327e98
net: dsa: b53: fix extracting VID from entry for BCM5325/65

[ Upstream commit 9316012dd01952f75e37035360138ccc786ef727 ]

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")
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://patch.msgid.link/20251128080625.27181-3-jonas.gorski@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_priv.h