Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2172050rwl; Fri, 6 Jan 2023 02:57:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXuBBqPs/xz6yRfejeFYB9UIqaC+HxA2dLJ+mMAcQw8up+P5oorU0PxDaLRr6h0MRggVn/7n X-Received: by 2002:a62:1d96:0:b0:575:e8c5:eb14 with SMTP id d144-20020a621d96000000b00575e8c5eb14mr54019684pfd.18.1673002648778; Fri, 06 Jan 2023 02:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673002648; cv=none; d=google.com; s=arc-20160816; b=08uOzy+PpvQhwSO9RF+NUQtVqkLNAiEl6RMuiKdaJjtzlGRtqqLQhDTr4DmrN+jgSM tunC55t9UkXwoarWd/5M96k73hDEPpKOqqdvtrPuTfpf918JtZXngShTPvsSGUWj6mx1 HS8HwQTCiRW9IxJ5GNvMn4/LvliBeNnADI6EVHKRsUHTdsNEIrj23lxKlwe1HQlm4oBP 3yJzZSGvQ9Z+aToJsPLThe6Smcs1Wy8+gDukAznEPyVY6YhWbx31+CKuaBM2zxQQQ618 qOkY6b5aHx2Gr4LXT3rTM1ImIL7ycNrZQuN6If+0RV9ITv+RYqWoHhITajsI8NL7JGWJ nRpw== 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=2sAgKVw2R59p7zF72zbcRbRDTSb5XaO8aLxzjSwbQ5E=; b=bfsUdUCoRP0dCfbRA0u/lDWQb4RLK7ZnyPU+LV5IR2CH60khKr/t2dXZZbkJuQ1ayd I/f5Yp5/SHyPtCKwvusVLSITPj0tlLCdmmn9mfPaWIY0+6QGRVWJvuXi+2jcN1Rvp/b3 6qQkKfHf6tY7BPh9zdtzlgykiEHnl8WgdPXMK8YDIQr0Ci+04oXuUPg58KPYjvjLeUtZ W3Vu8vYL8rnkbLJydNJZAeK7FRKrPC0LLnaaC9fKfN59rjEfmhO4B0cituFTo3Gghd54 8l1MPOeKXuNzHAyg2EH7To1bVMA2AXBDpVUD1qkRDMa8STar3qwTCCZDyOKvYEDQderp vbXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=kkMunGl6; 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 k4-20020a056a00168400b00557bb4f6977si1209391pfc.106.2023.01.06.02.57.20; Fri, 06 Jan 2023 02:57: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=kkMunGl6; 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 S229833AbjAFKrF (ORCPT + 54 others); Fri, 6 Jan 2023 05:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjAFKrB (ORCPT ); Fri, 6 Jan 2023 05:47:01 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B75F6C2BF; Fri, 6 Jan 2023 02:46:59 -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 A1AA7125C; Fri, 6 Jan 2023 11:46:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1673002017; 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=2sAgKVw2R59p7zF72zbcRbRDTSb5XaO8aLxzjSwbQ5E=; b=kkMunGl6kfvzkLRQNl9fJNG4bpD3Yh9+Iw8tcAc/PJDpBVjwJqJlttqS4LB/6a9UDOzHg1 PHxXpkM19VIzqhEFfnT8L0N9fajkdc3sG0O74CHcjJy/EWnT8ZWzGKN6niptWxs3byMIul y2eEjxNT35nM0Bwi3euwG40JL+p5H+79wLccWExtbIUiKkvbbCPsoabJGP/er3Qiu4Va6O +HR9NOaGatdCuTbjTJp2bjgM6/p6ranApKmYmQwx/o2Ow2nwsvgl5wibraJaP9OSfxIe5W He28n858M2gbBw8ZMyVleNeTHzsuc+S5fqa5evTqQkAqvXi4k5VKHQ4+hxK1dg== MIME-Version: 1.0 Date: Fri, 06 Jan 2023 11:46:57 +0100 From: Michael Walle To: Steen Hegelund Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, Randy Dunlap , Casper Andersson , Russell King , Wan Jiabing , Nathan Huckleberry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Machon , Horatiu Vultur , Lars Povlsen , Dan Carpenter Subject: Re: [PATCH net-next v2 0/8] Add support for two classes of VCAP rules In-Reply-To: References: <20230106085317.1720282-1-steen.hegelund@microchip.com> <35a9ff9fa0980e1e8542d338c6bf1e0c@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <40eea59265ce70a80ca61164608f4739@walle.cc> 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 Hi, >> Wouldn't it make more sense, to fix the regression via net (and >> a Fixes: tag) and then make that stuff work without tc? Maybe >> the fix is just reverting the commits. > > I have discussed this again with Horatiu and I have the following > suggestion of > how to proceed: > > 1) Create a small LAN966x specific patch for net (see below for the two > possible > variants). > > 2) Continue with a net-next V3 without any 'Fixes' tags on top of the > patch in > (1) when it becomes available in net-next. Sounds good. [coming back to this after writing the response below, so see there for more context] When do the patches from net become available in net-next? Only after a merge window? If so, depending on the solution for (1) you'd have two "in-between" kernel versions (v6.2 and v6.3). > The LAN966x patch for net (with a Fixes tag) could contain either: > > a) No check on enabled lookup > > Removal of the check for enabled lookups: > > - if (!ANA_VCAP_S2_CFG_ENA_GET(val)) > - return -ENOENT; > > This will remove the error that you have seen, but will still > require a > matchall rule to enable the PTP rules. This is compatible with the > TC > framework. > > b) Always enable lookups > > Enable the lookups at startup. > Remove the lookup enable check as above. > > This will make the PTP rules (and any other rules) work even without > the > matchall rule to enable them. It its not ideal, but solves the > problem that > you have been experiencing without the 'TC magic' > > The V3 in net-next will provide the full solution. > > I expect that you might prefer the b) version. I *assume* linuxptp would have worked in my case (no bridge interface) before Horatiu patches. As mentioned before, I haven't really tested it. Does that mean with a) the error is gone and linuxptp is working as before? If so, I'm also fine with a). Honestly, now that there is a good solution in future kernels, I don't care toooo much about that one particular kernel. Other users might disagree though ;) I just want to point out that right now you have some kind of in-between kernel with 6.2: <=6.1 linuxptp working (but not on bridged ports) 6.2 linuxptp working only with tc magic 6.3 linuxptp working Therefore, I've raised the question if it's also viable to just revert the former changes for 6.2. The you'd have a clean transition. -michael