]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: microchip: update tag_ksz masks for KSZ9477 family
authorPieter Van Trappen <pieter.van.trappen@cern.ch>
Fri, 5 Sep 2025 18:14:35 +0000 (14:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:54:19 +0000 (18:54 +0200)
commit062c74a26266831402ed6419eb93358a24f67ee5
treed5209b46daf38ed2b8ce46ac8d099b460af70c81
parent0033086a5ec48346cb0008293ded1ebfd696136b
net: dsa: microchip: update tag_ksz masks for KSZ9477 family

[ Upstream commit 3f464b193d40e49299dcd087b10cc3b77cbbea68 ]

Remove magic number 7 by introducing a GENMASK macro instead.
Remove magic number 0x80 by using the BIT macro instead.

Signed-off-by: Pieter Van Trappen <pieter.van.trappen@cern.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20240909134301.75448-1-vtpieter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: ba54bce747fa ("net: dsa: microchip: linearize skb for tail-tagging switches")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dsa/tag_ksz.c