Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2858355rwb; Fri, 9 Dec 2022 07:10:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Chy/uYtCOC6sqTufDu4Ik0LtQNTgQgpr9SWj8VClw5BAoXEgLWAp1TcCe5iUt7Az+XpgI X-Received: by 2002:a17:902:b081:b0:18b:ce84:5c34 with SMTP id p1-20020a170902b08100b0018bce845c34mr3864467plr.10.1670598615870; Fri, 09 Dec 2022 07:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670598615; cv=none; d=google.com; s=arc-20160816; b=V+I5Ic+DS86pdv3RXGT5kWbxgihuAIlAKPcPXDeExqA2PSIk3d2M5dlaei4681PEyb H0cX27IOcvvXf4ww13KCZnUwleoqoVIPJgv6WwhWVVkUYMWIewVJr0k1lWo9HGuj/1wI IUDyOoa66D0m9gNEVWsMOTUcUey3ShhYIkAwkIe3UhAVWD/auw0OF1X50iLxXxdxLKLf vwrMRLOCflklwIWosYk/ho6oKGlMrGY4oBVmvKo7xkahJfLIUHTzzTZVrkXiusZvzGEQ /DHgp631PIH1jqe2x/XzlVJq/S4JOl2MUMShbz2qU3unq/td5o93k13R5caP0qKReE8p hW6g== 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=e8PnmIhHfu89KerW1SRtUd7VG3I+IEsYPlRmyuRlZoc=; b=L2dWdtcggfcXA1N7YasblLHHesuzYbi4DzZMoC+Jq5tI/bUDFQSlewZbxoSc9C1eeJ vOtbcKRgZ+ditzn1Uhm3RZC6VGmiGA5pJW9axNJIKjfCFX7sI+85QcZs2wPcmVCq0ZIH Kq5U06nUM+CTkSwheANYylk9yDND4d+BHx/rfhRNvLiuxo6U6SY7PIEttdALjX54HNH5 7M+zCZGExEZkJudQ9rOhvu48d5tBvvsIJMJnMqYb7tlMCvydTujliSnuk7rUJa8Y+4mV K1g7dzcYsiiuK0/h8b6DZsf2tWXwyCVngT6u8bZ969ZFxHORNpYUmvfK+KtHz2YTrqk4 NxcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=N4SVX0O8; 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 jx10-20020a170903138a00b001897919de28si1716992plb.546.2022.12.09.07.10.04; Fri, 09 Dec 2022 07:10: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=N4SVX0O8; 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 S229749AbiLIOwY (ORCPT + 75 others); Fri, 9 Dec 2022 09:52:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiLIOwW (ORCPT ); Fri, 9 Dec 2022 09:52:22 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE0DE31F99; Fri, 9 Dec 2022 06:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670597541; x=1702133541; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=soL3nnB0D4xyE+xbuKsXWiTXpWmeQbH/LNwKxozF2SA=; b=N4SVX0O8v18jAIKUFme3fiYcbZqghjuUpzYjk9qjN3bqHqG7lj3SX2ay pwEN3LsXjGbq3K95FeaUIIJYaHEj4iiDBLiDpM4lw0lUsuSA0bYVrFLb9 0NdX8TC7h+6MdycbE3VuXf64UiFCv15g8AF+l5vT+xmVoXm81lJedzn4C sV+FDgqwiVRVzf0WL292Xz10jxZhKy7iIKnFGvguI82z6xZ66+cl2Fg40 yAGDUuFjdYDoCj15RXptW11GNCspxqqpJxd2iP0qGOV9a2aplT8JcpuyT ZXMDlyMq057fzML8kbob9CgYRAntSpv+b2/SsRw5Fn3X+GC3zXDWiePyP g==; X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="190901720" 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:52:21 -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:52:13 -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:52:13 -0700 Date: Fri, 9 Dec 2022 15:57:20 +0100 From: Horatiu Vultur To: Vladimir Oltean CC: Michael Walle , , , , , , , , , , , , Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Message-ID: <20221209145720.ahjmercylzqo5tla@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> <20221209144328.m54ksmoeitmcjo5f@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20221209144328.m54ksmoeitmcjo5f@skbuf> 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 16:43, Vladimir Oltean wrote: > > On Fri, Dec 09, 2022 at 03:20:58PM +0100, Horatiu Vultur wrote: > > On ocelot, the vcap is enabled at port initialization, while on other > > platforms(lan966x and sparx5) you have the option to enable or disable. > > Even if that wasn't the case, I'd still consider enabling/disabling VCAP > lookups privately in the ocelot driver when there are non-tc users of > traps, instead of requiring users to do anything with tc. I was thinking also about this, such the ptp to enable the VCAP privately. But then the issue would be if a user adds entries using tc and then start ptp, then suddently the rules that were added using tc could be hit. That is the reason why expected the user to enable the tcam manually. > It's simply too unfriendly for somebody who just wants PTP. You can use > devlink traps to show which non-tc traps are active. -- /Horatiu