]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: dsa: hellcreek: Allow PTP P2P measurements on blocked ports
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 14 Dec 2021 13:45:07 +0000 (14:45 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:35 +0000 (10:59 +0100)
BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit cad1798d2d0811ded37d1e946c6796102e58013b ]

Allow PTP peer delay measurements on blocked ports by STP. In case of topology
changes the PTP stack can directly start with the correct delays.

Fixes: ddd56dfe52c9 ("net: dsa: hellcreek: Add PTP clock support")
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/dsa/hirschmann/hellcreek.c

index 1469e41f2045ab4462d143c7cabdd66f1438b7bf..2dd1227e0c357ac8808a17635c87c73039bd4ae9 100644 (file)
@@ -1069,7 +1069,7 @@ static int hellcreek_setup_fdb(struct hellcreek *hellcreek)
                .portmask     = 0x03,   /* Management ports */
                .age          = 0,
                .is_obt       = 0,
-               .pass_blocked = 0,
+               .pass_blocked = 1,
                .is_static    = 1,
                .reprio_tc    = 6,      /* TC: 6 as per IEEE 802.1AS */
                .reprio_en    = 1,