Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2810536rwb; Fri, 9 Dec 2022 06:38:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7CwOBfOxSFau6FCcPILUF8Rg2z07xxK6g2a5MmTaWbiHS0cSSmNcGlejQ0JnwuQFY6FvBt X-Received: by 2002:aa7:8807:0:b0:566:900d:6398 with SMTP id c7-20020aa78807000000b00566900d6398mr5097747pfo.24.1670596695281; Fri, 09 Dec 2022 06:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670596695; cv=none; d=google.com; s=arc-20160816; b=ibfZEUWxDJMX/r8C9QUpX1t00tFyYCi9EQwhuI8lvxJlPGjS9WoQENft7eKC+f0lyE xoMW+vLiTwPrO+5nFxVesZ8TjnzPKADEsKRDRC2n4neOhgT+RBjPVnqbklve47xW9KoB 7BCJ8vDL6vJ57LZXYxveXPHzkI70+LMgBWzFjZLkL724FFJRL48H9TUCVK9xUFVRyrUD CKmZt9ZFqq6c3/J982htIO0VtL5MTx7SI9Js90XknYzJ2/Mk2n60s8mOyjjn3UX5eqoJ /dNZf5l6eLQfYH+3swxAnK8DHXKCYjW5tiE1g6ev1kzxrPK5o9R5nlwvD9NWctlygsHR e0wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7/a6TY/rgz4jZECqBklQS4Y1f0WnzjbqxaCClvbnzOc=; b=iNzyGTPbLICyuMuKKqvqXr1mCwwUk8NZCsosknC3Q/VqXAPhbR0dPj5JhVYB3bhud3 7eJ/Lr0zXH29NWemzau8AqSviRvUofL2OWZktXuOu/MhIFK+lEQJNfPPDrzrQ1JA0zKP jtJviwzEeJpvD0+NGq2D5fX5eeIR8oD7lCcMrAf9c7ySLfhr6vH/xA83R2QL6s5Ha1ps SJjKsgSqttrB774+D+bbVebSPkrsoPpWHDcYxK2BDJjgiAxK28HK3SYNDZGKZ6hDMyev HPNvTjLaWaAbmjNg+rLG9ugc8MZXhjvtZjqV82imlDhMDcPFM8MevSWBJ36+BqJSH7Fy rkDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=IravYnSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a62aa19000000b005766cd2128dsi1756183pff.269.2022.12.09.06.38.04; Fri, 09 Dec 2022 06:38:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=IravYnSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbiLIOQj (ORCPT + 76 others); Fri, 9 Dec 2022 09:16:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbiLIOQQ (ORCPT ); Fri, 9 Dec 2022 09:16:16 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DC664D0; Fri, 9 Dec 2022 06:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670595353; x=1702131353; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q4a9U1SZ0Rp7ftX9JdBYHlEBnCnbX6tXmyOibpHi2+M=; b=IravYnSqmliil7Q4B85Nd9h4Mtewnm9OVLHxgEC9vHtLFY0Hv+cQe6gG 2YyYFQG7mFAK5/l4i1OuA69wFUkcIzmPZU8EUPcgU76vo6VxdCs2NQ0kw peCHh/khoDt6JVk40idnE6NOO65S6GRE1jBJO9Ylcv0zQMQ643ytRCk0T vMqN22ub2z3R9tzIr9v18TFqGuY7/4PWhdfd4nZBHCasm0np7BOxuKHFe jnWlgP0Mp+Xsc+MksXx6tUbv6gxh0xnJZ5s2ODbmNxqx+pLwJzY7kCm0S /GguS3lFTdJA5O4OwWXt8cuUrQu/pm9se/XRu2dbP6GveWefjQX4+5+oa A==; X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="190897842" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Dec 2022 07:15:52 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 9 Dec 2022 07:15:51 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 9 Dec 2022 07:15:51 -0700 Date: Fri, 9 Dec 2022 15:20:58 +0100 From: Horatiu Vultur To: Michael Walle CC: Vladimir Oltean , , , , , , , , , , , , Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Message-ID: <20221209142058.ww7aijhsr76y3h2t@soft-dev3-1> References: <20221203104348.1749811-5-horatiu.vultur@microchip.com> <20221208092511.4122746-1-michael@walle.cc> <20221208130444.xshazhpg4e2utvjs@soft-dev3-1> <20221209092904.asgka7zttvdtijub@soft-dev3-1> <20221209125857.yhsqt4nj5kmavhmc@soft-dev3-1> <20221209125611.m5cp3depjigs7452@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 12/09/2022 15:05, Michael Walle wrote: > > Am 2022-12-09 13:56, schrieb Vladimir Oltean: > > On Fri, Dec 09, 2022 at 01:58:57PM +0100, Horatiu Vultur wrote: > > > > Does it also work out of the box with the following patch if > > > > the interface is part of a bridge or do you still have to do > > > > the tc magic from above? > > > > > > You will still need to enable the TCAM using the tc command to have it > > > working when the interface is part of the bridge. > > > > FWIW, with ocelot (same VCAP mechanism), PTP traps work out of the box, > > no need to use tc. Same goes for ocelot-8021q, which also uses the > > VCAP. > > I wouldn't consider forcing the user to add any tc command in order for > > packet timestamping to work properly. On ocelot, the vcap is enabled at port initialization, while on other platforms(lan966x and sparx5) you have the option to enable or disable. > > +1 > Esp. because there is no warning. I.e. I tried this patch while > the interface was added on a bridge and there was no error > whatsoever. What error/warning were you expecting to see here? > Also, you'd force the user to have that Kconfig option > set. > > -michael > -- /Horatiu