Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2794939rwb; Fri, 9 Dec 2022 06:28:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cOk18OoVOpOjGK5E+yr3leFTFV+wlIZYPYjSfmOEvpnDqqEbbgFLorExDGb6vNaHr2M4M X-Received: by 2002:a05:6402:2421:b0:468:3252:370f with SMTP id t33-20020a056402242100b004683252370fmr6163965eda.34.1670596111711; Fri, 09 Dec 2022 06:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670596111; cv=none; d=google.com; s=arc-20160816; b=f0fgrhqkQf9ItEg4LhjsNfZAFzz3eGAyHb5gGY0AD1wSLLtVH/kRKknrh0G51TfZrx C84iAEt26vfwu0XYGpDjAzA4nPGarTymaoSnvgb0AwwgSIL+L7vaB8SThjLXoQTTYkq4 jWfpIV+3EI3Vb1MXcjZwOhsYokIF8AAnkxA+QIPFEaZdkUAhb8l7lYP2glYpPXFMP/El jvOVbgAhzH36pwG2cOUOENbJ73G1qJizG9ZTaJgrjZgmR5AW+pfQFyAWozurtj7YKSzZ CRYXMow1i1yEODcYNxTcNosn30K1f7Gv81AVOZXBdvyjvs8yGsoZdEss6akHjoo05Lkx 2KKQ== 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=njNEdeCX3LeD6obQtBUMLdU2E9++XdRLWPu7vVBlAeA=; b=mqAwFY0+PBZJ045nkDjjxbMJbRdeF2H+yyj7foefQkZ9fdTlzpl7ApnbkSSr/YvRji g3JIqxmWd4nQ52iXnYiHZXq2LAWLTPQa8YBFkcEmZjvxoOeVejxQqiR8eXxYjTDSNBFd An/jEzUmHoWXcd58N/7lqU0b+SfeA0/UfY9QxuBMKYlGmTyMPJ3ZrzKCkRYFPoPyotJm DSuYpH/UJiu6sV8GlLaR2+dJ8Wj4x1gXSUI9e3SEkCWSbou+sZhuxJpctbtceBsM8XoI lFdbyQaqZWai84/H2Ti8u6vBGNqBCrEz2f3qMHdkWQnu5Lq/AuHvrRt0HEcB0nAmXUcZ Y6TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="YouCT/pV"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056402271300b0046844a19058si1704274edd.288.2022.12.09.06.28.11; Fri, 09 Dec 2022 06:28:31 -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=@gmail.com header.s=20210112 header.b="YouCT/pV"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230132AbiLIOQC (ORCPT + 77 others); Fri, 9 Dec 2022 09:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbiLIOPg (ORCPT ); Fri, 9 Dec 2022 09:15:36 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0C079CA3; Fri, 9 Dec 2022 06:14:30 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id v8so3265564edi.3; Fri, 09 Dec 2022 06:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=njNEdeCX3LeD6obQtBUMLdU2E9++XdRLWPu7vVBlAeA=; b=YouCT/pV13R+oR5x7eur72V4wd1rmyWDhlKQfyLGGDS3c4Cf0TSVuD9xca7Wa2PPb2 HUMcChLk/zXhSMtJBX+zKmWkqmwr+tMk3XVyZGurCeFTiaJCeGl57Ld39VA49CJX319M 9lNg27jgnRdqMUI3Y9HyUbQMFBXvFzAK6+WY82IcpoFfARy/rgNvbIFEawMuk6vZNW5Y PWWHvD1btsgooE5/guwvMvUz/jUKsqneZlFyqkopb8lvsao3QCII7sTJjSOPobwdyVuE ZKqSst7UpN9fLacvWpf8KSSIzWxIkR8uGYsubxOy812bGPqezyFsCWNFXyA87ahkrd2e +iHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=njNEdeCX3LeD6obQtBUMLdU2E9++XdRLWPu7vVBlAeA=; b=vK74/d1kl1vQrCiTPBeQvAVovTSZCHET1OtIGYdBYjO0iFATXHCfCGusSYbvcCC5d7 sDHEJbZilLhPeh+0YzYTUtW+EqgiNSyKErkAXheHtXmhukyFcg4gQN0cp6/OWE2nWEgq A1yWqwZDPPiW+CM4Cqae1RahETRQZQFlwGpFKoROynsxtU0nfCv6OZXcaf0Jv7MCXujr aeOVAqePs7bm4rcH09Tf24b945QO3Q6Tu4ffr5CYsV0q1eewPYKTMGO8vtbpIfNYQL8W 95E0Z75flxMRBtvvkqG5AQlCdDG+ZA+Io3NJ3CBdYxbXH42alvfz7uH6bKoDYAlklVd2 bM4g== X-Gm-Message-State: ANoB5pm7kwn8DN/UjsEawcUqyXGYRXQMgJ/5/Hntb1ILgoD5rgyKYfeY rlco5HvCA7tIA29/ApxGEKyKfyJJsWGiSg== X-Received: by 2002:a05:6402:e06:b0:46c:2c94:d30a with SMTP id h6-20020a0564020e0600b0046c2c94d30amr5836585edh.31.1670595269014; Fri, 09 Dec 2022 06:14:29 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id a35-20020a509ea6000000b0046a0096bfdfsm688698edf.52.2022.12.09.06.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:14:28 -0800 (PST) Date: Fri, 9 Dec 2022 16:14:26 +0200 From: Vladimir Oltean To: Michael Walle Cc: Horatiu Vultur , Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, daniel.machon@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, lars.povlsen@microchip.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, richardcochran@gmail.com Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Message-ID: <20221209141426.2b7psesiu6txd6ue@skbuf> 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On Fri, Dec 09, 2022 at 03:05:01PM +0100, 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. > > +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. Also, you'd force the user to have that Kconfig option > set. Yup. What I said about Ocelot is also applicable to MRP traps, which Horatiu added. No tc necessary there, either.