From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6069C4332F for ; Fri, 9 Dec 2022 14:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GWRl6OIUydAVxtudPQlsjTU1Xg2uytMNPwPXW7Wypcc=; b=yT+2fy38a4ZCEh ilWN3Nr0xu8VQJhy/+gkYchkC+jb+PZuHYpGLOGszzj3hVoJBCp5P77Gz05TVGgpevkK4TZjerdWW 1Ocuh16eZZIseXxWrm1yCpA86pdoB2zLqGS7Pez+PJbGg2c54Yb8XffTshK/b/Q3Ts/RFsHwVeZDH xEVTqLDk5ZXv28GXB+tj0RvblIds6dDdBhbT6TWeRixjhieCHka5ZCKtbDpN9TobgXBajEH+zAGkT +xpmLbFJn3h3qY7lsLg/3xReXTGVhw3K2oy7OkGLUBsMIlRTf8Dv6Dhr5TtCo6WsaWLABj1mXDun4 hG/MjOMcvMKo7GLLW55Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3eb9-008Y5r-40; Fri, 09 Dec 2022 14:43:35 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3eb6-008Y33-FS for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 14:43:33 +0000 Received: by mail-ej1-x636.google.com with SMTP id ud5so12010954ejc.4 for ; Fri, 09 Dec 2022 06:43:32 -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=D20OyJ3zuiEaGi/DMMYTp6sCrUU0uqeDQNQLFJkeVKU=; b=HCRkqlSZRXzk54NVCCGe6FdzNNRYyVGCc28998rDNjy2sGgE0YILFzZ9qmWcw5izMV vlNcmhgnkjSDP5DR3k+ffeW5hEaKbpFL3qe24ui0f0K0n4bF9qxbzgSu/BOvsKe4de6Q sQ+yUVgIRPMRM+csuEAagpFAU6lcw/rFpKZsRuZYk2qCCOBQkVAklOdp+Z2Ni8Vjoj0S mOIRvW6F7MLUvc8E42BP7u+F70gDGsPkoe7ph2Hcd9yMTWMdHWKHRMEIJnL7Pyz61CCQ IGr8+8r8n7C+1c5Tc3PcmlHJG07hlAhbK6KQ+WrQECbIk63rv7agsOaf0903eSnubq0C Ftgw== 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=D20OyJ3zuiEaGi/DMMYTp6sCrUU0uqeDQNQLFJkeVKU=; b=QD8k9YMFHaRU7qYnB8ZvS1J0ZKElZYL/HKw6LOz8n45M+o80fAbpnB7X8Bh5Ilai8V rn7TXdtfwwbrUtJVKpU1EfCDrr5gKFM+IAc3y45WVnxTiUI7dj1hw2gaAvEVHRUYlknr wlcNjfLCWwP1GdmwguxUfcFVs0ud5y0me1OQEphucNEUVhRqdjXYiNOOyFnXc+CaQlC4 4hsb6BiXzWd/aR25meK0Pre8gMYAN8YqTvVVlm/6ZAiwssCKcQskp1l9lS1L+aKzAQ0v Q9+eNXdFudvdwk/l6vIsoD66GDkMOv/SXTchmFKSzozzpvFQMYj5PXQpcvT+xhUpNBF8 lMHQ== X-Gm-Message-State: ANoB5plyKHxVnS5G0ntgLs3YaWiGRK5gJqH1Q4sHrt7yuc2dBmFRJpxT IvdOfd4FOUfNRVpz+W359Ck= X-Google-Smtp-Source: AA0mqf6yyZN/fiCfewm+0GGs1z1Rqmxrju3RsTmqzGBFlLQECo8gvzp0NcyHdw/MXV9QBb+oVGaqeQ== X-Received: by 2002:a17:906:2802:b0:7c0:b3a3:9b70 with SMTP id r2-20020a170906280200b007c0b3a39b70mr5368012ejc.62.1670597010983; Fri, 09 Dec 2022 06:43:30 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id b18-20020a17090630d200b007ae1e528390sm623066ejb.163.2022.12.09.06.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:43:30 -0800 (PST) Date: Fri, 9 Dec 2022 16:43:28 +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: <20221209144328.m54ksmoeitmcjo5f@skbuf> References: <20221208092511.4122746-1-michael@walle.cc> <20221208130444.xshazhpg4e2utvjs@soft-dev3-1> <20221209092904.asgka7zttvdtijub@soft-dev3-1> <20221209125857.yhsqt4nj5kmavhmc@soft-dev3-1> <20221209125611.m5cp3depjigs7452@skbuf> <20221209142058.ww7aijhsr76y3h2t@soft-dev3-1> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221209142058.ww7aijhsr76y3h2t@soft-dev3-1> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_064332_563330_DC8AEF03 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel