]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: b53: move reading ARL entries into their own function
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 7 Nov 2025 08:07:43 +0000 (09:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:29 +0000 (14:03 +0100)
commited2f26bf281bfd061d3b64bd6c23846839fee08a
tree6f3493fc8594cbc09a6a2850078c66660d94525f
parent397fdaf790ceb3cfa2b3b11bbfc384a5526b6d9d
net: dsa: b53: move reading ARL entries into their own function

[ Upstream commit 4a291fe7226736a465ddb3fa93c21fcef7162ec7 ]

Instead of duplicating the whole code iterating over all bins for
BCM5325, factor out reading and parsing the entry into its own
functions, and name it the modern one after the first chip with that ARL
format, (BCM53)95.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20251107080749.26936-3-jonas.gorski@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_common.c