Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3630479pxb; Mon, 24 Jan 2022 13:57:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1A3JGvYJpARJhuYWf/xVrc8EIl0vTDLoUFXa0c+F50qfpxEQtT37UbOZjpx+n8xY48g9/ X-Received: by 2002:a17:902:b489:b0:14a:4747:9917 with SMTP id y9-20020a170902b48900b0014a47479917mr15839804plr.26.1643061465933; Mon, 24 Jan 2022 13:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061465; cv=none; d=google.com; s=arc-20160816; b=zbqxrTdS0q0rnJ6Pp7S7452ZJPQVY5L4TzrGwFJsK4Ebx2Kp7MAr7RTgxLia+DwBXc wQr5Imf/40X2XvUu1WqyGVKKJLRls2OGFtkDOFNPSkeAY+eyUYthmBIxBeORstvhdKOT Vw3QueYePmyRqmyzMDx4rUAyhy6Ry0LSNKcWR0yd0J7o1d1txmD/WZdOwjeeRF74t5I3 olzLwZExyc+b2V8Tw9UUMe1lJa8JCxOmm7Piq7xmAPKfBbUCVsQb3/1I7U0Zzcl/JDs2 mx0DzVPheutckyWM4CS25hKx5tqioW5V0UZVx17zP6++IVT6ZvVKODiGkWBxFTx+BwPo 81iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9IeKauS4rnsRSjTUfba9CmfjU5l+7rda6OHPp1lOF+o=; b=d+F27/tiY9DADY79dnHrRDMqlAYbG9BPJwAAEsEWKNPYJDUZXZA+6aSj1Aubh1G0OS R5AyDxr6cYXtpxUhI45Mp6j+ECsXiGFqiDBN2qdzGsv2aGc7eZGVP8GwBFAr07YfXgqx tljupj4uQCvoy0hk9es+/aQDvYjequvbvewjTM+tRtRsqIqsWXTAkKevR3tSch2sGMrc lJOWs83iQNtNwdgTF7Jdb3MU8XjKST6EfdMlUrSeBlqS+zTzc+Ny00NrsxStvGpIYe6k Nx+22JLw25Ujb3kXGbjvCNysIB9wQwCvDid9eKZuhKlErlTKAIs1KkLvWGFakuRFGOIC QTuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d8i0r7Yu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si432356pjd.81.2022.01.24.13.57.34; Mon, 24 Jan 2022 13:57:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d8i0r7Yu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573452AbiAXVo5 (ORCPT + 99 others); Mon, 24 Jan 2022 16:44:57 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:59408 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352884AbiAXVHd (ORCPT ); Mon, 24 Jan 2022 16:07:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5AF4AB8122A; Mon, 24 Jan 2022 21:07:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8308DC340E5; Mon, 24 Jan 2022 21:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058448; bh=dshKwD90z+e4wGtfVuUQB/JeJSaBr+zQf1ZJXNHxZwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d8i0r7YuIBuSjYXuhWQrJK1GVYr4bEQODdgO271M2dIdhlEQRoYoJKwv5WPknchMG XPaq3DJ/ZA9t6G8NreBJMor/78Bof99OXDbbe3jgMgwoEOTHv2S3N8YBr4tayjcGKh XczrMvg2xGNgmMzAp1hCgOk9EvyPxBllTAxFsup0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kurt Kanzenbach , Vladimir Oltean , Richard Cochran , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.16 0291/1039] net: dsa: hellcreek: Allow PTP P2P measurements on blocked ports Date: Mon, 24 Jan 2022 19:34:40 +0100 Message-Id: <20220124184135.058794109@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kurt Kanzenbach [ 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 Reviewed-by: Vladimir Oltean Acked-by: Richard Cochran Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- 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