Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2777427rwb; Fri, 9 Dec 2022 06:17:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RcUj14yHUhg78jWSLLZQvkr8eWnjmt5v8ImSQQ4nTQvobwHaaKJk4PS63pfGy7ocvHuk7 X-Received: by 2002:a17:90b:46ce:b0:219:e613:9006 with SMTP id jx14-20020a17090b46ce00b00219e6139006mr5889272pjb.41.1670595448342; Fri, 09 Dec 2022 06:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670595448; cv=none; d=google.com; s=arc-20160816; b=iBGOKnVDLFhJ5ObDVokmnl/Lc/PzFPgUFYWKtYDe0Zde6PhBcyOwhSMS5S//+LYNth /WZlVil3XBbY133OlRHofr+lLgBLWR5mLmUPTY1V0+LaumHGOnl4dDad9Tzj+Mr2slbz 55Tz+cUn5wjkqe66S+Giby842dYCQYanNwkMLF00IK6on4FikEmHlRwtsbpz4DfcZnwj a3LY7zEx0IHAx5ZkeWePOX0tIlL1GgrCOb1VdpHdje4N2z2nT9ebeTagB+f0ylto0p5k HVKjfPlkl5y8Gk8s5sgz+Vk/MvOoP4ZJFnRv92By6HXqrHItQjRCPjJ11dWzFadPbtqE TMmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=2YpDJExtWrn75eERpM+XzkW1nqJfI2pmtL3qmKW7EzA=; b=at5qbsLhK3Iw5Ca5uO5oAHaO1yuzv58kaUieVJPjs+G+JDhJOOURsInp3My2JYyswQ NcBytpYTByCeIrzQwYUy6KfQwXWOYMfkuAnBUhxWPLtLv7iNVBnmN4NRqCmlLdyzYI0i OlpnPE71km4p2fih42frrYuaX1TT/h3plfvXTdbrIROX39gqe7JlFMXCggbDi9qkCaEn CexC3Y1hqqAsrokl+dBgUVZN1JSdIp1Uc1wBF1tns4oDyngd0A1BV2n6/IWChjvzeREJ 3h/vHIGyqdKNrNFV3BK2VXwf+nNhOiXpq9y1iSgs6ueJxgrOgTR83/yLItCGohDHBeYE amZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b="zX8/PUNd"; 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=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a17090a664700b0021995eb1b2bsi2176849pjm.13.2022.12.09.06.17.07; Fri, 09 Dec 2022 06:17:28 -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=@walle.cc header.s=mail2022082101 header.b="zX8/PUNd"; 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=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229840AbiLIOFH (ORCPT + 75 others); Fri, 9 Dec 2022 09:05:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiLIOFE (ORCPT ); Fri, 9 Dec 2022 09:05:04 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8601572856; Fri, 9 Dec 2022 06:05:03 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 591661D2A; Fri, 9 Dec 2022 15:05:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1670594701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2YpDJExtWrn75eERpM+XzkW1nqJfI2pmtL3qmKW7EzA=; b=zX8/PUNdaBaxPoSJ4n9rhzUf+l3ji7UlL+QRJMRzT6Mu4qFVzSEdeAm1ThWrnJU3ANlMhY 9RAlIhCpyF39JQ3Sj2qGLqPExZboJinxhgdWUCIWCvXQtsIteB8/9J95lovnf6JyJHI/CN YeA7vd80KskZG549v6xnBkjt75n6eHLYDJqka3IUlXXsFnh/8r/vJ+l1fVwK8b/lY8AjDw he0B7/m/xUAFyxhCOY+D/xwwzXkVk/d2FGRNiGKTLlMwFQZluI3/YUpl+ne1sbnwd5D6FM hY0amjHPtxQrE99V8zasG7kYG8q+eDl3h0uYtNCPeXerv7+2klulpFtXZWZcFw== MIME-Version: 1.0 Date: Fri, 09 Dec 2022 15:05:01 +0100 From: Michael Walle To: Vladimir Oltean 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 In-Reply-To: <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> <20221209125611.m5cp3depjigs7452@skbuf> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. -michael