Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1061511rwl; Thu, 5 Jan 2023 08:11:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXvLBv/fsM1V9NoMCx3KIh5naYXVtJl5HnmFbZcuknhnxT4EvGCHENBS6gK3H25usDYjyA8k X-Received: by 2002:a17:906:ccc7:b0:7c4:a773:4d72 with SMTP id ot7-20020a170906ccc700b007c4a7734d72mr46419077ejb.64.1672935079507; Thu, 05 Jan 2023 08:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672935079; cv=none; d=google.com; s=arc-20160816; b=ltwFc8BQos8CFBsJxLgxqvrDOcDJXmQn2K7BLoo9YoyJxgcbSCXyS0lhqnPjukYWZh IccAxQrP3dbKYGgyTPVVGbUjTQAQ6EZrr9DXvL2hVRJIU+g+RqxW5Ym0JLj4XvHQoLZ+ /IPS3lt5VgAZ6dYDV2JdqQi30OFgVGkD7Ti2P97EE/2KEIRZGeuiFRecY89x1qcoaRUR v/E+UItuDri7ZHK3HICDZvcFEKRe0KTVJBY++pw201EW+o2JUKA2LPIglI1caBOTxdPB 0iK9If8oWzwNSraAmfQLpg7oknBglaf7rv/sK/FU5rjGldR2/ikeX+mOKZXVFqTOcUho FAyw== 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=680zHctk+9g3XOjt2E56oakXKseN7DiQQH3pba4FlnM=; b=W17+26FcH2G764fIQ3bPEymO4Z5IbotckTDm6GnzjDWOMcbdXZwYbFO0QAGIkWPaYv bQkhytdvU1OSkjDPftkt+c5dyTunbLwK6YlbvEC8KNLNKZU7lzqsIs1wlnmw6Io2z48m iwGZcrhF2ReKNGJ143GPdaVOesONRMMSRLxzAxxsbh25QInGjaC2bMbZ5sZPX7eIIOxX yii8iKgYy0s09jlq5gWfrKidgtdrPzBImB4PtWhH9hekiUS8g8YjSFJ10WVPl939b06b JdUo5sxrUfdrMNnfzSaygh/LQ3RI3GRzyhNjXCth77mpRrSPMdWLaHIaC3wfbmdHYeyz o23w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=qIW3DmL3; 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 c12-20020aa7c98c000000b0048eabb86492si2639181edt.42.2023.01.05.08.11.06; Thu, 05 Jan 2023 08:11:19 -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=qIW3DmL3; 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 S233571AbjAEPJw (ORCPT + 55 others); Thu, 5 Jan 2023 10:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233379AbjAEPJj (ORCPT ); Thu, 5 Jan 2023 10:09:39 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D3305D404; Thu, 5 Jan 2023 07:09:15 -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 71D6761; Thu, 5 Jan 2023 16:09:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1672931353; 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=680zHctk+9g3XOjt2E56oakXKseN7DiQQH3pba4FlnM=; b=qIW3DmL3Bk0BcZW84fBZ57BDpGHX34Wr0mrQVpFn+aRZnXAaqPW0ScLJZe8u6v9FR9uDsV RKwx+Pung3ErH808H5weO8grwfyn6yXCzkFf9u9Y9DFhP0UlgA1HOzUYzlolDtCceX+ylw dZjpmpiOEDLZMIGKpFqPxspK0o8eFw6C5EHRRUX312kFTAWTmPhZgjPZJ+6w5f6PnEW1o+ Kd/XovQGI7sMyjQZw6AAkl8dR7GBp4/h5tEYOSEM/bwKN+pekiKPsw3KNTR/xdUpy9BVu+ xqxeI9WeUmK+Go1f3B5WclIg58O6FvLWH8tMr1bc7oc6dsZG7R2lL2uSKDEaig== MIME-Version: 1.0 Date: Thu, 05 Jan 2023 16:09:13 +0100 From: Michael Walle To: Horatiu Vultur Cc: 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, olteanv@gmail.com, pabeni@redhat.com, richardcochran@gmail.com Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules In-Reply-To: <20221209092904.asgka7zttvdtijub@soft-dev3-1> References: <20221203104348.1749811-5-horatiu.vultur@microchip.com> <20221208092511.4122746-1-michael@walle.cc> <20221208130444.xshazhpg4e2utvjs@soft-dev3-1> <20221209092904.asgka7zttvdtijub@soft-dev3-1> User-Agent: Roundcube Webmail/1.4.13 Message-ID: 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, >> Also, if the answer to my question above is yes, and ptp should >> have worked on eth0 before, this is a regression then. > > OK, I can see your point. > With the following diff, you should see the same behaviour as before: > --- > diff --git > a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c > b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c > index 904f5a3f636d3..538f4b76cf97a 100644 > --- a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c > +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c > @@ -91,8 +91,6 @@ lan966x_vcap_is2_get_port_keysets(struct net_device > *dev, int lookup, > > /* Check if the port keyset selection is enabled */ > val = lan_rd(lan966x, ANA_VCAP_S2_CFG(port->chip_port)); > - if (!ANA_VCAP_S2_CFG_ENA_GET(val)) > - return -ENOENT; > > /* Collect all keysets for the port in a list */ > if (l3_proto == ETH_P_ALL) Any news on this? Apart from the patches which would change the need to use some tc magic, this should be a separate fixes patch, right? -michael