Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2827638rwb; Fri, 9 Dec 2022 06:51:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6aHSmiP4p4obPzsKn//pQTticHNb5465lztTGYHmXrz8AM5ERVNCBRNZv3xu9ehs4RH5oO X-Received: by 2002:a17:902:744b:b0:189:9cfd:be72 with SMTP id e11-20020a170902744b00b001899cfdbe72mr6206802plt.8.1670597469246; Fri, 09 Dec 2022 06:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670597469; cv=none; d=google.com; s=arc-20160816; b=wMsmX440RQR8eZ6cTaG0ypdRKUFy45+84DcEEOeeeRbjdBw5/zWVI6Aby0716FCNJm W3SwHWqy4qAGGpjNpwAKBIPji+ejAk0AkByo1QbHQ8HeEzmBwqc9G3wh4yFOV6/uGuSQ 8aifyc+Durh31MPnYaNk9+AaItYVDxQ7V3mwzv9JS24FKKoVwyGDptot78Wa0IAFHHwa gdDryoW/OWA22ycbUexPvjooPKQjf9pkJ90hbnWzk1p6wEsMhPabGBTmCkY3ZxRZLdtK ch3j8fjxCpECWiR+Ev5JN1KVUFCqE990xTtINUlkTUKDIwYFmDsP6nu2anPOF6hJfkSK 6jSQ== 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=Chp2n3ay18nBkST/OunfW2Lm53v//eawAShT7k/YG4U=; b=fiIy4sYkEu/s1v8Qjstl03oEl7VZ0UpCPx5hmCx6t4BfCHrHfA/dIGVQy4zT33a8Ck cGI81J152RkEsba5hiyQ3vc5NWt9EM4lINREAe5VJ5xLfNg79DZ9nfYqzNEfGrfBinQV EudlEFvTrzo16wJu7080MQBkfyC/Wl3Se8H4cTi7qLtgRZLc12NZ5AxpYECDFPPwgCMl IBFgNCy68hH5Hrn3qc18yWx432XErHB94FbwwarnD9NiyV/GOgzcqZf154q8LodlsMVn lMHc/VPizKeojr00Oi2Gs8XNX1K7j3PY6qFOG1NHX2vUAs/09V5EqpCda9HU4hZmu2c5 IjSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nnk2q8E3; 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 l19-20020a656813000000b0047701a21acfsi1574497pgt.604.2022.12.09.06.50.58; Fri, 09 Dec 2022 06:51:09 -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=nnk2q8E3; 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 S229821AbiLIOrc (ORCPT + 75 others); Fri, 9 Dec 2022 09:47:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiLIOr2 (ORCPT ); Fri, 9 Dec 2022 09:47:28 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07656DEC6; Fri, 9 Dec 2022 06:47:28 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id n20so12113035ejh.0; Fri, 09 Dec 2022 06:47:27 -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=Chp2n3ay18nBkST/OunfW2Lm53v//eawAShT7k/YG4U=; b=nnk2q8E3MyYSalH3bsr/ati99hfOgwFx/e9QEnpUthYo8f3xizSWEDDJPTU/+bH55m re2rW7lJr9H/MDxUQ5FufYNFzYTrk9xxjwlw3D/b9Mo2kxgxAlfxH4V+guLuwGiB21TG nrwJidW7XkkpVIP5i6dmpAJFSd1B8iimn3Al6eikIYLAEEa8Q4ukl0WnfWsVYOeHzols 5W/G0lqqrSfEhNECPIFMBUr9eHOEqU5aT9CbQEkQxs9gp5K88+H/vZLs+XRjxQ9sN+sZ IvO5yUL2dcC8vSQ1ZiW2BQ/QCg/khbgA0yd2etuCT7we4n9ps+JceRyHaSeaisg6mnI1 xn5w== 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=Chp2n3ay18nBkST/OunfW2Lm53v//eawAShT7k/YG4U=; b=hduJkJsfsWAIzB+b0OxRxFKI4wroWTbN5oXpA2YiOjVUDrmPi6P7IFJzYSUt4IhATG mAM0fP1qbZLWG8mykhLRkbi6u5CGzNVUGfy8ykbGNLUMyDsY9oQBlvyGIp69FfqfNUGt U6t7twLCKZeKynO0cKSYDQVr4R5cYCTxlhTabUMGoZqIiL6258xQx5d+VlCBNJ3ebJ3v 6fNLc/sW/phhmiqkU6CQcVYPPmRJgZzsBEzZyReMB6/EGr1okDv4BsNX34V4/uQpoKId UzxJ4jEhaq3bMoKEjP5ETID/dDbaIW3b74BTSfmoe1gJdeft0C6F8S1d0D9u+qlwvEUn zRPw== X-Gm-Message-State: ANoB5pkjfoTjyAa7bEQA52j7vNhvyhHAJHofwtkI+J4pali60KDl+Q4A k8QhnaKKw3vUQjE3UQ2lJts= X-Received: by 2002:a17:907:a4c1:b0:7c0:a350:9d29 with SMTP id vq1-20020a170907a4c100b007c0a3509d29mr5367908ejc.18.1670597246415; Fri, 09 Dec 2022 06:47:26 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id 10-20020a170906308a00b007ad94fd48dfsm628951ejv.139.2022.12.09.06.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:47:25 -0800 (PST) Date: Fri, 9 Dec 2022 16:47:23 +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: <20221209144723.qdbf2wr6vp2dmty7@skbuf> 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=us-ascii Content-Disposition: inline In-Reply-To: <20221209144328.m54ksmoeitmcjo5f@skbuf> 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 04:43:28PM +0200, 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. It's simply > too unfriendly for somebody who just wants PTP. You can use devlink > traps to show which non-tc traps are active. To put it differently. Why do you even bother to make the driver auto-install PTP traps, and not let the user do that? It's the same argument as asking the user enable the VCAP lookups.