Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1090509iob; Wed, 18 May 2022 22:00:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEfhi2q8hWL4m6OXj1Xf858y5a93vPCQz6gVc/SfOSDnrA76bp7xkzoKuSvqRcyYzNAeNo X-Received: by 2002:a17:90b:4a43:b0:1df:d1e3:6fd4 with SMTP id lb3-20020a17090b4a4300b001dfd1e36fd4mr2208526pjb.30.1652936412127; Wed, 18 May 2022 22:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652936412; cv=none; d=google.com; s=arc-20160816; b=mKtHvyUN3qm7LlsB5RCDDIpQG8xi4rIpNy9GWjs66ugyLs9RrZ8ROMJf3NIa5xadd+ aW8gGrpP7LfUFURVjDNFsG3lRn1hMqGoXVJODDwri3QF1OoTurU4NKID72q2bVmFY69J ASG8d2W4JlXbYgwgnomSkpM6qBgpe27BtCJFU++fsYU+IDindZbNKXkSD+m2XKOyW6+e lmWe46Duy/I9zUKlA6rZ/W+zcfjagFfxYBSNz9J6Xjr/6cANULFRWO7ShOadpQfiq49v voESvUTm+HTU8O0XXpRpFY/nq51GphD32yeDQXeWxZ8AwMOMBsltSDjB8eumWqWYb/Gc 8xLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NNKMg+4oxD2kxow+eolshu+4z5eVclCd4RRhnH/i+Pk=; b=JrTiQdL3XkxXTjhok11LJz3DKi5mMVAGVN+2yfJvcqy5k2jDE7KFJRH3yQLrNjaP1B CrXkuvwSbI6dcqW2wpzNffMoHId5t98v4wUdD5eSAiO4HyBwLICyWryB9CRKyDtHZyTc O3zHW4jmpO2LtIBY1uqqx19Afi3RXcpouGpWRrHtv6oRMfBjo9gkP24IGvUhCu7EHo8N 3jARlCs+epL6hDHOyV/uLHD3ITnhAr8VScVShB+u4zu6rIuTyypi7yY0EGyBY2TSEitG ZzlmhML+LfDXtBoDvqCuC78kUJcQcy2Md+xOiPM8TGkUZ9Hw1TQWaRlg6/QDxVxpwmWR AqXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Us05cmks; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a170902ef5000b0015d10bd48c2si5050782plx.32.2022.05.18.21.59.56; Wed, 18 May 2022 22:00:12 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Us05cmks; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233727AbiESElF (ORCPT + 99 others); Thu, 19 May 2022 00:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbiESElC (ORCPT ); Thu, 19 May 2022 00:41:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9065C661; Wed, 18 May 2022 21:41:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 22BDD619B9; Thu, 19 May 2022 04:41:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16E44C385B8; Thu, 19 May 2022 04:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652935260; bh=ydUDPQfiDFXRRUsRJHQC3B3uycrZ1kC9Z7zzJcg/1HE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Us05cmksIJ7DW7J0qyymfrkO8pUQpwexdf3W+0QjTVkBTbg+e7quQlI5eQ3/R84yl xdLE++bqOJ7Bsmxifq8X6NOTcB+cG5/EGawKvvsSdHFZ32m9MzttDnQshSmVT92kP/ 8BTM9OWJGUYtwk6ewx7tydIOTYpBW/AQJQzH3fcKgrFGgG5T1hefei6jYGo3ES4F2W QOxNv+CeHpbsLlwY6Kwk1teQywwRepeIt+c7PcmZoja3lMvHvTpgRELyQINahjMCUQ 0R8L8OXTUbU0ZgFv4mb5Z9gOaxwmQZODjcQbOv+Adx6Cfs4ujU5GcOfQy55gQ9XMa6 9s/DH2hrqHaEg== Date: Wed, 18 May 2022 21:40:58 -0700 From: Jakub Kicinski To: Harini Katakam Cc: , , , , , , , , , , Subject: Re: [PATCH net v3] net: macb: Fix PTP one step sync support Message-ID: <20220518214058.2a964dba@kernel.org> In-Reply-To: <20220518170756.7752-1-harini.katakam@xilinx.com> References: <20220518170756.7752-1-harini.katakam@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, 18 May 2022 22:37:56 +0530 Harini Katakam wrote: > PTP one step sync packets cannot have CSUM padding and insertion in > SW since time stamp is inserted on the fly by HW. > In addition, ptp4l version 3.0 and above report an error when skb > timestamps are reported for packets that not processed for TX TS > after transmission. > Add a helper to identify PTP one step sync and fix the above two > errors. Add a common mask for PTP header flag field "twoStepflag". > Also reset ptp OSS bit when one step is not selected. > > Fixes: ab91f0a9b5f4 ("net: macb: Add hardware PTP support") > Fixes: 653e92a9175e ("net: macb: add support for padding and fcs computation") > Signed-off-by: Harini Katakam > Reviewed-by: Radhey Shyam Pandey Acked-by: Jakub Kicinski