Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1475934rwl; Thu, 5 Jan 2023 14:17:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXtoJKIHDLfiCj5WkL/C9vEbwSA7obDQ/8i3ygsqzHUY7ppAaEsB3yKYwhWMzVr2lXkLsEQf X-Received: by 2002:a17:902:a70c:b0:189:dcc3:e4a1 with SMTP id w12-20020a170902a70c00b00189dcc3e4a1mr53406850plq.9.1672957064167; Thu, 05 Jan 2023 14:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672957064; cv=none; d=google.com; s=arc-20160816; b=0Y74nyQ7o3kK+JfOlA2T2EVvFtYppb54E0e1fblGx5Zpvnb2z+O9AGpTmbmzTZQBtf LSMhK9nbTuixr9CReO2WkVPnJxJKeXTK0cel3Wh0WMp06kR3ZBFmqENMCgGssyvoxrPe onql2hMBJ4rDQeSXjdqvYHLr50B4ikmXXp5OpzjTR8PguKvZkLLlcycV1JD9nh5w2rAU B1eTGeGb+jW7Q7Rha/AulDyDV9KZTi0EogzfJTksosNy6/98ey3c2vEiNCNLYC1GfPlx lbVVM1c2n3tmcodkasevanYRy8mIoPuUZvbMQ9YQkgTfbMpQyREmcvRAJJ1PQINdXMbL li1w== 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=y9PCoWz492VFuK974lvGgaquRB0FnmF/+Mub3e7wlRk=; b=KDTiInpOhrPFprDXO6047jcLh1reY6zs2/N9KBsudTXz5gi+5u53r6cVDPJSMnhLWQ hYKWDL4l6mFwZFU/gfMzbLjy1LmnJY78krv/uiBCmWNwyg4tyNrGJksuVb8wU+ps29jN pfj5AiC3oVor6CsvmNlgrijTfRh0BiYwgiNlWnVllzURHJZcRxw8KQYKmdCvazVrip5q o7dStNjrGx5i6sQg0WMEiIV7ZDWp9XU7Ay63UptxJRqHsxFL6qYgXjf0KKuJA5WKsp2b yOHMoSy5BmHpKJ295Skw9P2OW8GulzjrVb1fK8hRONUFf0oo81s8N4ZpE9oN3pY394rD 4U5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=l4Kacu2X; 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 v1-20020a170902b7c100b0017336c464ecsi37439685plz.407.2023.01.05.14.17.32; Thu, 05 Jan 2023 14:17:44 -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=l4Kacu2X; 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 S235721AbjAEVv3 (ORCPT + 55 others); Thu, 5 Jan 2023 16:51:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236117AbjAEVu7 (ORCPT ); Thu, 5 Jan 2023 16:50:59 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79FA63199; Thu, 5 Jan 2023 13:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1672955395; x=1704491395; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GWLfTS968CloPMevtoM4MSviKK8lba7mNlv0zXAMW2M=; b=l4Kacu2Xe5LHBsXCDWh6lINbxECnboldEbE/eyui48eD63Vj5s/jkUu7 rjb90Drb9FyUEwJ1NDXBLyV1J9oSWVpXj9p/6akWlg+rAHheNb1stX9F1 UgBLno5HuVDhjh63bePss5hF11q2eNwAty19JEsKmMqqQ980Ja/yfXQ5G rvWQMSpFMZHOKTnMmXuRZPE5gqJi78CmG2yFKl+hUMUDYeEqjQGUQ3rdr eKD+Ir+kITrPzI1HJ86EQ/TguB7YeFCWuYmwegruEvJiUHSwA6vikz734 vHv69FWoSL6AH+aIHSM1AtXajs0uYkXdCYJVyICZ/5GN8TMEE6pHrd8bS g==; X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="194503577" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 05 Jan 2023 14:49:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 5 Jan 2023 14:49:53 -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.16 via Frontend Transport; Thu, 5 Jan 2023 14:49:53 -0700 Date: Thu, 5 Jan 2023 22:55:12 +0100 From: Horatiu Vultur To: Michael Walle CC: , , , , , , , , , , , , Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules Message-ID: <20230105215512.uck2gy4hyd2z7hq4@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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: 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, RCVD_IN_MSPIKE_H2,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 01/05/2023 16:09, Michael Walle wrote: > > Hi, Hi Michael, > > > > 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? My colleague Steen, has sent a patch series here [1]. This allows to PTP rules in HW without any tc commands. [1] https://lore.kernel.org/lkml/20230105081335.1261636-1-steen.hegelund@microchip.com/T/ > > -michael -- /Horatiu