Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2707256rwb; Fri, 9 Dec 2022 05:32:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ubdfd4FYm5J5wkoHMycSecewWEA464rZVGzEro4tIVnttPeTrCXYnJETUy2nNscWH1G0H X-Received: by 2002:a05:6402:540b:b0:461:e82b:be07 with SMTP id ev11-20020a056402540b00b00461e82bbe07mr5202154edb.2.1670592753940; Fri, 09 Dec 2022 05:32:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670592753; cv=none; d=google.com; s=arc-20160816; b=lpU0ka6tkrNh/2GVXOajdiadxQecyfIKimbsFvyTJLBvUMVabW52YPmukLMnBrjtvf japcMGur/EvvOOfSeh3bdeN/YTWX9uxw1dlUwA/4LIc3siZArEOqBNPIIQosQSSD0cqM yl1M7rxbxGDsEtF2CfSDdoQj1ZEKFH2YDzwiHF6lKLZ21pbzcH7jKSo9PfbCWSpjQXaa Gr1oy4MvHyD2N7bJDbo+KTiLP7o96CoVrQIQidF7yhoQSj5jws5+/jx4vag7aFUiNcH7 XQREy8+8hnhvBjFLRyVNNwdBgFFjfs8RzeMWPsLJb1WpOEbvgjavlHfFQOcrwzsTCPOB u4Zg== 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=7d1Hk/u5OkE2zPYqVbYpGU1t6ccVyflAO01wLSPYehQ=; b=UDcRUF8cB69XqYzFjmyjkTmr2uAlS9ylKZjAHMrkJYQT1VwfCGlvYMoOyhl5TowZAA gluBBxtWO1xhiy3o7JN9AuNQn7iNrfZ/yXU7bXEgoLjRunALDN1Xx1nblHbOGi98i4u7 gTbw0MDPzayteNWYq03rPvw6nYMBaRchrBlsI9nCJSIK6NV/TzQid6kaIb1nXSB/MCuc 0hcfX2N/frbjo74h2+JRz3DhX47vwUr+rhAUJF5HrcA3ff57ETxAVygi4fjun4Tyjwrh W89fdes5+3jdwDHxvrgujnfWf62vlisIIUkPrClrP32V7VsfqxpLskBSxDEBIKG3Ut4O MCwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nrcyWL5B; 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 n16-20020a05640205d000b0046cadaade54si1471963edx.619.2022.12.09.05.32.13; Fri, 09 Dec 2022 05:32:33 -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=nrcyWL5B; 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 S229979AbiLIM4S (ORCPT + 75 others); Fri, 9 Dec 2022 07:56:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiLIM4Q (ORCPT ); Fri, 9 Dec 2022 07:56:16 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2276D7C2; Fri, 9 Dec 2022 04:56:15 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id s5so2937890edc.12; Fri, 09 Dec 2022 04:56:15 -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=7d1Hk/u5OkE2zPYqVbYpGU1t6ccVyflAO01wLSPYehQ=; b=nrcyWL5B1D8yzm6Claadu23KRt4dCLQtQAj73LLu7tsf+fEBzT/Lc/Ue6lS5DKTgK/ UHc75St4Muf57R5UmYqzFRHKc0qu9UbqFN6kNVFKVCZSvfqVrs9uxUJx73P/NTxkECEa iUA5ZLXWXZ+YvoBwsHkMNZEvYuJ+FR7l6RBcX8Hs4t4SYgJkPsSw/+3/h/ft0VFjJOge hFRhvqY4Np343jaAUrpHfDA5epFToMDsrgJKomlCQrFA8jenbVrSm+6lFmA3Lm1nbQ3S 10oMLMsCuVJjpih+mRqFx0vVPyIfygG5Y2QJxjLHP+OO0fy4lLbPUlD84m47Jpx1F/Lm bU7A== 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=7d1Hk/u5OkE2zPYqVbYpGU1t6ccVyflAO01wLSPYehQ=; b=P9M02mT7VjWHCnxSRHf2eqGaUmt+IQ5tc6FM7Oi0563t96DGrwlbZnh24/3M8w6pLv yI0MN0qOvehWjAGe10+UsBTekbiKsEFFb9ZeDKWt2sPH1ENwLCGsnbj9dXaFtejW1Dlx l5qkFpD1drvhMEQrFoUgJnQw2Rm+GZVUIpygzNApTNf+k6dypJ+yxxKftnMflhFcod3Y gajUQoYyLdc4phkINbVxUkshRBZxuJFWCZaEajx1JBGHxOtv146V3DRZcqN7ArFEb6X0 DNPwGOsDmrPU6FdhQWZ9hF3xBctsgVwyRDIXZCo2laWkxo8jPvAIWLUqVTB1aEwn5dki lAOA== X-Gm-Message-State: ANoB5pm2PXiH0xEXFZxkELUcvOTgm8YIRGVp4BGeSozJZjad0/BZzCcc ETf4vwoTCP2fTpvjXY56Riw= X-Received: by 2002:a05:6402:4006:b0:46c:d5e8:2fc9 with SMTP id d6-20020a056402400600b0046cd5e82fc9mr6363175eda.13.1670590574002; Fri, 09 Dec 2022 04:56:14 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id n13-20020a05640204cd00b004677b1b1a70sm595922edw.61.2022.12.09.04.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 04:56:13 -0800 (PST) Date: Fri, 9 Dec 2022 14:56:11 +0200 From: Vladimir Oltean To: Horatiu Vultur Cc: Michael Walle , 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: <20221209125611.m5cp3depjigs7452@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221209125857.yhsqt4nj5kmavhmc@soft-dev3-1> 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 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.