lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 0291/1039] net: dsa: hellcreek: Allow PTP P2P measurements on blocked ports
    Date
    From: Kurt Kanzenbach <kurt@linutronix.de>

    [ 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>
    ---
    drivers/net/dsa/hirschmann/hellcreek.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/dsa/hirschmann/hellcreek.c b/drivers/net/dsa/hirschmann/hellcreek.c
    index b488990b5b06e..40ce8c0c9167a 100644
    --- a/drivers/net/dsa/hirschmann/hellcreek.c
    +++ b/drivers/net/dsa/hirschmann/hellcreek.c
    @@ -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,
    --
    2.34.1


    \
     
     \ /
      Last update: 2022-01-24 23:10    [W:3.195 / U:0.216 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site