Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2024979iob; Thu, 19 May 2022 23:13:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz8eEpL6C50pR5xplGwU1or1qsrcZvnX3PyaJLFaNw/hW/nn3Mh417v509yo/bSfrj9cXv X-Received: by 2002:a63:df02:0:b0:3f6:ba8:95b2 with SMTP id u2-20020a63df02000000b003f60ba895b2mr7058196pgg.245.1653027233432; Thu, 19 May 2022 23:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653027233; cv=none; d=google.com; s=arc-20160816; b=kZ6WNwGyIPrlUHGgmOH95LWjbOp3TQruPfcyTu6f+zwoaAxqrge1T+b07xZjycrlQU 2fOX4DQq8YWg7bWtB+ZL4YulaUjAez/4bq6w9vjReC1lfWBbJ41T3ejCh+TOLKH2Lgk4 z/wmCUgFXLdfkJb+lhcHU27+y5vrcnB6d6oI8Iiql8/oJSm7ARjPJftZzk3uaTziQuFD ndzYW64KEjQGHvH1vByCPXCQ8f3O4x9qBnhWT/SSF1TFn9qBDsPSyHffp8CsiRhHOiDB rKHjn3azh417tWbtIN6xktk6d0KEabCdfqoT8SPbv0H9kroZdbhrq01cayeCyGT0ymFC kyuA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=CCe4jzkEM21jgBEAbYUjXJxP7mWaBW+jz2xznXdsy+I=; b=IC85eTiOILvgTK1cI7peUv73TccE/Ff1Wnpnl++zX8RF9WSZBJIefFSaVYt+NjwOYK NSlveKg7i+zdfv2ZzZDiZXPBpKNCpQrJnLC6ykXiQru/verYXfCA+E7AiODTtWKdAkgT ehrlvcM4xvIqtR/2nvMRpeDKcXm1J0FbLSeucXDxOTaJoYc5TxTqOuSf5kcSwZ71h8dd mQW7gu0tpFq5e/yXunl0EDihjujxCCtnPcd25Kxi8CDtH63FDoWItgZs7OoxuJFlnrQP gYwa68+/74unJiIHUBHJ6Cjuxb0ff3rvSNX5oFe17dfTITLF4kF/K2+PlcDfzz55cyIX YQAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RuPr1C3H; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902f78800b00156eeb5cd6bsi9094488pln.562.2022.05.19.23.13.39; Thu, 19 May 2022 23:13:53 -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=@redhat.com header.s=mimecast20190719 header.b=RuPr1C3H; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243058AbiESSSI (ORCPT + 99 others); Thu, 19 May 2022 14:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbiESSSG (ORCPT ); Thu, 19 May 2022 14:18:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D07A7CFE04 for ; Thu, 19 May 2022 11:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652984280; 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=CCe4jzkEM21jgBEAbYUjXJxP7mWaBW+jz2xznXdsy+I=; b=RuPr1C3HHVhYWb0EvnMn3BYXswEcW3kqLR0hFm9QGuelLdUSRhygsl8YPmJT38R6W41W+p o+srbXoOjf1eUmoy2o0Ny9iJrcGl5UkiidDNpZXvTs/0o608T385Z7X8FI2RbdyC7PCf3r foOlpv1s+o+cAxb31hBA7hEbGq4bnGw= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-633-aWlwZmKsMsONuK5n6jZL5Q-1; Thu, 19 May 2022 14:17:59 -0400 X-MC-Unique: aWlwZmKsMsONuK5n6jZL5Q-1 Received: by mail-qv1-f72.google.com with SMTP id c9-20020a056214146900b00461c7b83672so4927761qvy.7 for ; Thu, 19 May 2022 11:17:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=CCe4jzkEM21jgBEAbYUjXJxP7mWaBW+jz2xznXdsy+I=; b=VF/Kyfvbljy+C5r42ZiUY1P9fE2vs3f02Bp+pU4yyCeKXylA1//GKGLeoyZ9CapvTB ZW7vf2SIEhZqRByvrthg6MGgMhR1Dn5eObrM9rBIvWfzCW+Yy64DS5TkWUKLcfR7mfNA +isTyDzaZ04TPsM/G50q4hcYmeXU8M/bE4no4BXdb9tMDs/5PZ2oUOpoElajf7VR5KVX mXUAbP/TdO220Bz530nM4nIe1OcLZeie/aGNjcFnuSrFu9dkImo/9DojRqT7ldjHVpPp SZQfSyMnhQl8Zufs0cUDoaiiHEsvczQg/MmxgDNgUb2v5YS6GY42CFnbSbO0ziaOUUuj eyaQ== X-Gm-Message-State: AOAM533dopLnpWOhT5lwz1jgdUuc5LejfirLhqBQmCZXe5ABxTNlJiKy 8C4CGTFpwDr1+wXAvmH2YljROte98J6v+XwyEJL2C/loIMLLdbTZR4BLlGXiYNQDWNC4FQABUGn q4wc0RXSGgeO8p0e3iuypVRCV X-Received: by 2002:a05:620a:2943:b0:6a0:11b6:3a71 with SMTP id n3-20020a05620a294300b006a011b63a71mr3954547qkp.719.1652984279151; Thu, 19 May 2022 11:17:59 -0700 (PDT) X-Received: by 2002:a05:620a:2943:b0:6a0:11b6:3a71 with SMTP id n3-20020a05620a294300b006a011b63a71mr3954535qkp.719.1652984278883; Thu, 19 May 2022 11:17:58 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-112-184.dyn.eolo.it. [146.241.112.184]) by smtp.gmail.com with ESMTPSA id v64-20020a376143000000b006a32baf67aasm1687002qkb.27.2022.05.19.11.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 11:17:58 -0700 (PDT) Message-ID: <3ecbe9d60f555266fe09d5a8c657b87d6f7564b8.camel@redhat.com> Subject: Re: [PATCH net v3] net: macb: Fix PTP one step sync support From: Paolo Abeni To: Harini Katakam , nicolas.ferre@microchip.com, davem@davemloft.net, richardcochran@gmail.com, claudiu.beznea@microchip.com, kuba@kernel.org, edumazet@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, harinikatakamlinux@gmail.com, radhey.shyam.pandey@xilinx.com Date: Thu, 19 May 2022 20:17:54 +0200 In-Reply-To: <20220518170756.7752-1-harini.katakam@xilinx.com> References: <20220518170756.7752-1-harini.katakam@xilinx.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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, 2022-05-18 at 22:37 +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 I'm sorry, but I cut the -net PR to Linus too early for this, so the fix will have to wait for a little more (no need to repost!) and even more pause will be required for the net-next follow-up. Sorry for the inconvenince, Paolo