Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2862287rwb; Fri, 9 Dec 2022 07:12:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pt5EinDNQWd/poc6tw+4wIVg25vBCqP53+RsSl91dG4L8Dz6iBK6bJ96R42W3z29UNdLu X-Received: by 2002:a17:90a:4494:b0:212:edde:e59a with SMTP id t20-20020a17090a449400b00212eddee59amr6241062pjg.13.1670598751898; Fri, 09 Dec 2022 07:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670598751; cv=none; d=google.com; s=arc-20160816; b=Fw70q6w2qjyGeXtNTJS2kkeJFZ/5aQ6m/mnyqtkLGmcpQKV37nRVJeXEwz95ecacGG BhIDn+NUvQpgwDlspe4pjNdaZ1rXI+i8N7fXY+b48/fD/5i14C6iaMH4MthJ+dbWZMFT wroCg83KZ9mVxWLhX52HATT42c6K223I5sh2IypEMwUu9xQ6rG+O4IYhU9GOYnGbpntm eqcIjzofTKUxqkmsa9UcUxUG4RDN1547gohI7Ac4cLoipGpeObZNljAcWYbRARc/vzO/ GKQU7H9Ivprd8HOa1YrLdGdNfWMf7Rpd0DHYYITxHO1j5AZ1VkfZ/xXjI7odvucZEAAl BCpQ== 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=3zcHQbToQQmeR/njCZHEwerikKC8TIT+gWtuX/BdypQ=; b=M6otBWZ+OeKZ9iYXK7tH3Kd29ISWIa/26txQWnL3Ur7zzr6Ep3qBxNlal3429WIB3R B2H+CVE/UJF2oXl7tfR3V7CYlRJRX0KkiY7K3ZPUXFZCg5j014f5Q4Wfptue/YZ1FcoZ arWq81tw1X1G+1zel4KQL86VsWBqW5eWsdi2L7VJ4mWMwNksllh8GGgQuYnmclVrIKUf LlDGXfxgwKcoL1lza5NxM5SblgaIe0ShcSc9IEZNIhcFBpCfJvVntpW41B+457WffXJ5 NdLMglpiZnB4OvxjOdJH2mJByK8PPgfkTV489Q7EhFrOPRc62UZLJjZMjdorsONfTn3u FjMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="Cse/+WQq"; 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 n68-20020a632747000000b00478b771fa15si1720371pgn.232.2022.12.09.07.12.21; Fri, 09 Dec 2022 07:12: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=@microchip.com header.s=mchp header.b="Cse/+WQq"; 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 S230086AbiLIOuR (ORCPT + 75 others); Fri, 9 Dec 2022 09:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiLIOtv (ORCPT ); Fri, 9 Dec 2022 09:49:51 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2430B801CE; Fri, 9 Dec 2022 06:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670597376; x=1702133376; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YUXAzZaiIHP+TeJDcIUQIh8idIpiiNMmvl01maD+8eY=; b=Cse/+WQqoA+jUhE37jUbCo/YvADagjzV3GEDovT3Dlchhl9lFlbOfABz drwMaebL6D8U3veR7yz7pcC9oXGQCtwXupZR6nXxb/V26OXrQr7zxw8Yy r0b9w3tAjPNM3tqIhAoLiQYUWH3C+QQWMX7UBeSl8EvpDOdgJ4MEDmyuw r2K8naCBihZbIsVOpyVga7OQynHuT460WiqNPM/+OOa5R99ODPP0WulaP oVezIPir8pMWZyo7L+7qF0pW0Iw3fb7aDTYjMz3+c30Tzr8iqcACyQ0pF dubsc/rhOageeMARL5ApnoA3tYlhE0CuC8EHsJ8iZ19pk65pv7aoGfDg6 g==; X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="187394902" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Dec 2022 07:49:35 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:49:29 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 9 Dec 2022 07:49:29 -0700 Date: Fri, 9 Dec 2022 15:54:36 +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: <20221209145436.o5nclzrtu2eztvzs@soft-dev3-1> References: <20221208130444.xshazhpg4e2utvjs@soft-dev3-1> <20221209092904.asgka7zttvdtijub@soft-dev3-1> <20221209125857.yhsqt4nj5kmavhmc@soft-dev3-1> <20221209125611.m5cp3depjigs7452@skbuf> <20221209142058.ww7aijhsr76y3h2t@soft-dev3-1> <287d650a96aaac34ac2f31c6735a9ecc@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <287d650a96aaac34ac2f31c6735a9ecc@walle.cc> 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:23, Michael Walle wrote: > > Am 2022-12-09 15:20, schrieb Horatiu Vultur: > > 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? > > Scrap that. ptp4l is reporting an error in case the device is part > of a bridge: > Jan 1 02:33:04 buildroot user.info syslog: [9184.261] driver rejected > most general HWTSTAMP filter > > Nevertheless, from a users POV I'd just expect it to work. How > would I know what I need to do here? What about a warning in the driver? Say that the vcap needs to be enabled. > > -michael -- /Horatiu