Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1801748rwo; Wed, 2 Aug 2023 23:00:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2cYVARkqEG6FbHpLaHLDiVAaxEyr8fXg+2rPa9oS6AaLLc8a5rSUXY20NhDkNXdtNzTHf X-Received: by 2002:a17:903:2308:b0:1b9:f97a:16ab with SMTP id d8-20020a170903230800b001b9f97a16abmr17707315plh.57.1691042458282; Wed, 02 Aug 2023 23:00:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691042458; cv=pass; d=google.com; s=arc-20160816; b=epLj5kCiXEk7oxZqao6/N+H46gfUuGRfUX7dsDz0GRF4ZNjo8jegGLfzlrgOLlH9dZ KF1C2Xa97n93YePfTPSNm1jyngLf9vK3t2iBw2V8Io0ttg1d0vK2ms70IoOtOxSY9gO/ eMzW2FTeqinK2xnxC1+Tx03Qtx7gfQvFdAS0cB5anPvfotZR75W2KpZUqCARkl1MZxHS JKnG3Cw/G+8/u0ITBF+JFRIRE8WeIYGlgUFkxBvfNJesT+Enyj+MqeiZTyizUoV5Y+Qh VtmZV1egOqnXtanOhS2iNJPMiPxUa22WxEaNRL2pe/7W7QpvNsaM6PS4M4klYcrfnO8N iwgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=N7bDdfAd9kscOME6a8bL1AeAOwDy25qj29gDRpSQt/g=; fh=RehocZZvetOCVlWyDU/wKjfPCkhGLJWanGqSR0sSfCo=; b=alk6n/t5B1YVvSKWgqiy65qKm5tREVkXh+TSSnZe/wdgNSWtDg6STnXGFxBHKrmuqE eOoOgDs5Ig3f64pCfKtxArkUAKSjZUIgHUUHe79GfkFNJ/bs3N1icdfQiE2/cZTF2EpT FqbcIMQiqs2BhYgaViG1CP5d9lkn2mNeNdvhNLp5OTiFlMgaYhbMwIzECoxojIkxjmha w2d1lcix5M1VqHGwH+X/oiEllQcYt4VkQ//g9I3SI7CJc+0vQ6zPOPuYRufxQfsW7OPg kAtvOENbUaAO+GrFU6aWg2EzDFkYHbDwN5ns1FgKoPV4uFqo8nnMizYUqD1Xd84n/u5A G9YA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Bggp0Ahg; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=sxmIoSuH; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); 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 kx15-20020a170902f94f00b001b81fe65fa3si11920347plb.569.2023.08.02.23.00.16; Wed, 02 Aug 2023 23:00:58 -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=@microchip.com header.s=mchp header.b=Bggp0Ahg; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=sxmIoSuH; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); 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 S231681AbjHCDjp (ORCPT + 99 others); Wed, 2 Aug 2023 23:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjHCDjn (ORCPT ); Wed, 2 Aug 2023 23:39:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9612719; Wed, 2 Aug 2023 20:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1691033983; x=1722569983; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=N7bDdfAd9kscOME6a8bL1AeAOwDy25qj29gDRpSQt/g=; b=Bggp0Ahgkd9DJ3iWzIwYguQTucPSa+ktyUwWlJxmQR60n3tu7izHGBm2 SDiQOrC1L3Sxe4ffzUIES16A1lv5HhXHpNqPuVXB0lzvPUQOAMbpUMBgZ gW1nzeMA7ZVnBU10M204Aoho2f0bRzPOvJb9tRjg2PSgX6vUYJnY3BFgw PVFSqAoDrdduoCcXf6pn6g3GoK5ANy5ARsCxzJOs+9o4BvhzbgGby2v2F MdnVJkbdPx1egiOT9+qABlwsa1GVfIN8wAoNipkoe92v1CrJD8KNkpDcI HY9BywGLBfikzWaC17U4mRBqmRW66k+KAlR+R4+vve1CwDfl/GckyeH35 g==; X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="227719827" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Aug 2023 20:39:43 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 2 Aug 2023 20:39:37 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 2 Aug 2023 20:39:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a7deCk+USxDomjtr2wTLDjpsdh7ISxtpBhiStqmwajzA6VNd1+kxfBu6N0NR4P5prOog182UK1iFPXAPsJf37lqLvR7ajE1z/RSGJJgbWrOt3fc1NCZVYDn/gSymT3rADPCNb3fuFT6XDe5mlyWfssdO91I8G6q5eRpSguWGOVe/HIfjdIfcJ28iJfcagX1Cbiz+I3lBK/POzAK28tTBJJ6iDJbrHw0/NqZUvf1PU6v4gQHSK7DHLGPG0UjS1EH0rXCTNmSelrI1hTXLvlhL5JwLLYcCYd1o5LXyZOUIMNJXl+2P6wqsOP9Zq48EFNMGCFtyo1ygAfm4UHO9bj3oDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N7bDdfAd9kscOME6a8bL1AeAOwDy25qj29gDRpSQt/g=; b=IUk8B9V9oYMU/Udt4EdZZvuM0lpIpIQZekaALymHxt+/ajms7RpG9ieAvo3qROVojVaPhSTAx37CBFgAamYwo+WkUdN2+E8Zpk8o0q/NWFQ0ZvVhju0YyokhdgWMQVz5gYHzJd4obvdYDu8x7B+4BRLdUS9zRwkYZCysLidO9jIhmsYMlL/6KZ0Khz8wEB/TyLIRm4MSLfjhDoSfAdHg2eSJ7UjF5ierB9Ma4OMBhfyRADLgXZtA70dt59wVSE1+lPpenxczaaQ0wBLFzY/nzCZiX3XvcH8nEXrJJ/pXTnuzy2jZ8KjYQnNtz1OPV9Vl9Oz8tGZ0vv2P8rI4TyXUrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N7bDdfAd9kscOME6a8bL1AeAOwDy25qj29gDRpSQt/g=; b=sxmIoSuHtxacFl4EZxhKPd9jTxh2o/h8Pl1B/rSI+kL5zqRxiGc6zBzHQeHHwTk4N7Tf2p2iQ7ct2icudWqIcT9MGjT7m8lYIS6iIYkCCCjeHb28bHvFbezMTnb5d1ILaThs2WFGJMPwqNv9abAPm1rNjFvu8YN2m7FTQ3auL6k= Received: from SN6PR11MB3341.namprd11.prod.outlook.com (2603:10b6:805:bc::27) by BL3PR11MB6506.namprd11.prod.outlook.com (2603:10b6:208:38d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 03:39:34 +0000 Received: from SN6PR11MB3341.namprd11.prod.outlook.com ([fe80::f71d:7e80:690d:ee1c]) by SN6PR11MB3341.namprd11.prod.outlook.com ([fe80::f71d:7e80:690d:ee1c%7]) with mapi id 15.20.6631.026; Thu, 3 Aug 2023 03:39:34 +0000 From: To: CC: , , , , , , , Subject: RE: [PATCH net-next] net: lan743x: skip timestamping for non-PTP packets Thread-Topic: [PATCH net-next] net: lan743x: skip timestamping for non-PTP packets Thread-Index: AQHZw2rbMPoDf41Sy0CTnd7RT703zq/T5UkAgAK7ffA= Date: Thu, 3 Aug 2023 03:39:34 +0000 Message-ID: References: <20230731125418.75140-1-vishvambarpanth.s@microchip.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR11MB3341:EE_|BL3PR11MB6506:EE_ x-ms-office365-filtering-correlation-id: 8504b372-d21a-40ff-c94a-08db93d34118 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BS57fVTfA+8Go/7YoZLxHk7Wn5oe8VObNFllmU0iPOrkgD7LFYvwHKATaKRLSUibvxY44ElGk+CngpZuWdHASQqCWRXzd7V7bVnNOCri6dByx2BE08e/GXCBqeCr++HqmNs8zyYzol0fUvide3TWeORzRNj1PJ6UNKDnfpTZ0YU1LHeaDKoPPgEw5TgXWZlCTU6VqpgaBSx/2Aa965mIefd/OJvjqg9dh0OEvK0eKWGVTbgKUjYj8uHHNJf3fwbF857imvprk4iBAyVS3/02KJUestyEDk+K3t+5AHGEBiU6U+KQCjxNN5dli5JbHgi74HgYUjeWpCLSTPLMK4gTUMdKVS6JKOPCXHW4fWAZ8JE3Qn59KaZ7w86KS6gMaYqtrqUjwlKGYVQyIITP8VTTW/alSFfcko3TcbE3m/FDLB+69BBdCB9C0Dv4tnrmGxBt5KmnB3B3liVW6+tU8BOjnIDPMwC4h7vHeFytwLZvMtJuMsPVwJpRXPTZ3n6xSQqrrBiLMWEqPHalT4750fM+12HNjspCsPYccIZTTA+SkHNHu+S0fEZX3eciGWF8+0uxJ0tIEsx5tY7d7qFYOABc+D3OJi/4NGMIygxPuc52MLwvaW0xD155uzNFOroLcaj0 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB3341.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(376002)(346002)(136003)(366004)(39860400002)(451199021)(41300700001)(316002)(4326008)(2906002)(6916009)(76116006)(66556008)(66476007)(66446008)(64756008)(66946007)(52536014)(8676002)(8936002)(5660300002)(54906003)(122000001)(38100700002)(33656002)(26005)(6506007)(53546011)(186003)(38070700005)(86362001)(83380400001)(9686003)(478600001)(7696005)(71200400001)(55016003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MU5z/WoMW6BBCi1Jd6PLJ4fEiTmW8ChgsnXOx29u5LoqwW85CuNs09RMniZ+?= =?us-ascii?Q?v8Vcqbc9hIN2qtiS6yulp5HFqAkbbWCTMh8r+uUdxyML8lstGxX5swOWRslU?= =?us-ascii?Q?ps5FFRPGT6aQmBL8J9czOlh5mwPdSRCjO3NeKdOvvc/aNlZJd0B6CXZhPrTX?= =?us-ascii?Q?TH9YUsYmExTkePXmpwBdnnUMub1TiD5JAd0s7AftgqmfmGXIPK3kZpBSjN7N?= =?us-ascii?Q?IF99QtK6BzWMjGI0FJQogYYDTEeb3CW8WR6T4mFWGvaubDyQbpyOZelJzdti?= =?us-ascii?Q?hcFdnMnwW1igQZ380qRLhYMvRn6o/RuhxSlB5O1q+M0dv/XNH6T+pVYsdyr8?= =?us-ascii?Q?em2e/WgcWUUDw+bwtS4f9/g6uk4LHOa0HDiMUdoweDIqCrw1Gym4kzIcorMm?= =?us-ascii?Q?jtqN/Gw1qy2loE4JwX+HMhaYCQEz9Eov05HSsiPbb67ucmGEtd/PXUQ3KHJG?= =?us-ascii?Q?GQySiyWFo+Yv92PfrUVv9f3fppY3cgyJKa7zkzTtvu/0Pzg2bvObvWVo4RhF?= =?us-ascii?Q?wu66sC6C3mdef9u4DObqbukS+PfYuOSWCouBs4Ey2gkOWOkhBTPpbEPlsACG?= =?us-ascii?Q?mkBMbI3i2xohd0gVZinERpA2E9mqc9rnspyBg0DcgIe4Il7bYx51E6eFYCwy?= =?us-ascii?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dMbvvR?= =?us-ascii?Q?7livvQSmx4Yc1u1MbNBlvm8Es+/c9z4MxYNEqh5jsRtXm0zyEhbD0K9x2G2I?= =?us-ascii?Q?3w=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3341.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8504b372-d21a-40ff-c94a-08db93d34118 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2023 03:39:34.2244 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Fz9UVyke226dHaGvtjafTo31Rw5M8i16qNPJEeP7Hay7pXjmeN57124zsygGD7ZXLllBMWuHywKONpSqR/SNZee2VvGKg1GOAHhDdIl2Wq0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB6506 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Hi Richard, Thanks for your review comments.=20 We will work on configuring timestamp based on hwtstamp_config. We will upd= ate in the next patch submission.=20 Thanks, Vishvambar Panth S -----Original Message----- From: Richard Cochran =20 Sent: Monday, July 31, 2023 7:21 PM To: VishvambarPanth S - I69108 Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Bryan Whitehead -= C21958 ; UNGLinuxDriver ; davem@davemloft.net; edumazet@google.com; kuba@kernel.org; pab= eni@redhat.com Subject: Re: [PATCH net-next] net: lan743x: skip timestamping for non-PTP p= ackets EXTERNAL EMAIL: Do not click links or open attachments unless you know the = content is safe On Mon, Jul 31, 2023 at 06:24:18PM +0530, Vishvambar Panth S wrote: > Currently all the RX packets are timestamped and the timestamp is=20 > appended to the RX packet for processing, this reduces RX throughput.=20 > This can be optimized by timestamping packets only when the PTP messages = are received. No, you should not do this unconditionally. Instead, you need to dial the correct setting based on the hwtstamp_config = in lan743x_ptp_ioctl(). Thanks, Richard