From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DDF145DA7; Tue, 26 Nov 2024 09:30:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BE324025F; Tue, 26 Nov 2024 09:30:10 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id BC2B6400EF for ; Tue, 26 Nov 2024 09:30:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732609808; x=1764145808; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=OvqgFiQTg2nROevLz4QY2NMoPLFXRifIc1Ulm9898jk=; b=Y8sEM729EDRhfASbo/PXB4HZnZDZ47/tVTVGcgASTArOuQH/wZnPzmeq ra0NBs5YiARGxs6CwWq3+Lh36ajTNvf79/WcwMGQZXyJTfGp09wRMlJEy gn1q7ObYv2HEPKP0AmS6NEgQH0imaneRMbqGoHLGmqxJlzuZimnLP1MgY 7SC221LvT40MbUTisTypZ4E1+zFVrn+D3eY2d/wVpYVDVMM9NUQAUEngs z9JgXLGLd2QmXRwnH1A+G5zylJVQt1Ft0hUDNvxP+SNDlVvoGusd1YTxU ADZ01jrtQ5nsGiXh9NLRjzZ4Jm6TOsW3MCOr2m8gbedGnIbgpkfTELtjQ w==; X-CSE-ConnectionGUID: o4x0a5ESToqvNAUFEtWPDA== X-CSE-MsgGUID: WhZ4Tuv9T96zCV8rrjP4jw== X-IronPort-AV: E=McAfee;i="6700,10204,11267"; a="32904011" X-IronPort-AV: E=Sophos;i="6.12,185,1728975600"; d="scan'208";a="32904011" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 00:30:07 -0800 X-CSE-ConnectionGUID: ql/BDiv9QDWi/wwtD+nzZw== X-CSE-MsgGUID: ZF3wUW7vQ6GS7n5N/PsY2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,185,1728975600"; d="scan'208";a="95628508" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Nov 2024 00:30:08 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 26 Nov 2024 00:30:05 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 26 Nov 2024 00:30:05 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.41) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 26 Nov 2024 00:30:05 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F+WyL1vVs1efLe0kJ8Hs4v9QuXQO9OE2Vd/E8eBDL5K6Yjf3uyanHwxrBST7GdXq7ZaO9RNEmQ03VTR2TkHy4DhnVJPD9ChD+QvXCtuM5RJa8k8nUowWvlO3kAqWp/dkDu0zj5LigUKQomDnJ8dbTjDb+XF3MgmwSEl5hSW95q8hWOUhrslitqlKIT1fsWdYlIuRiYkIdU7azRSUlhVKwrgSocqYKdkraf8BTrIcBhHqc26jhFxJKZkOaEUowVt4mefYLL4j+CCByzkwQoURw+te3eLn5u/P8q7HZqkj+XeWbW4Iqtw6jOw/VFxnfGchO3TKE7kD65T33Q7o+G5m7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=OvqgFiQTg2nROevLz4QY2NMoPLFXRifIc1Ulm9898jk=; b=h3hV0FM42CG9yy08WCo65Tz+TiuRHQcVFZVKa/g2zP+K0wKKEMaV3cUWa146J/py4ZpNl5RHj/gzKUYYeixUIpnNJOSQQniPwtf8DMSj8k89yxXa7jUufJH7wKf8FZcbKjIczgxRD5I4XrvyQVB+ZErNJmRXtaaQBNOIe+0UvHRBnRmEur9tYCsYE+agzvrlz4GHcZggSjbUUSt5ktcT7Ay4nyPpjRz4j5Tnj8CdAAndNSrhSZtOKqMEvwJE22EA649kz1S+rYrxmDrjZNmlD4FhZq1jmdUQMIZj4NOyK6bHqQK498S83uinc3806v4rbJK52Cqez9FINrU7lwedmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5912.namprd11.prod.outlook.com (2603:10b6:303:18a::20) by CO1PR11MB4881.namprd11.prod.outlook.com (2603:10b6:303:91::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Tue, 26 Nov 2024 08:30:03 +0000 Received: from MW4PR11MB5912.namprd11.prod.outlook.com ([fe80::7a4b:e159:c4b0:7c21]) by MW4PR11MB5912.namprd11.prod.outlook.com ([fe80::7a4b:e159:c4b0:7c21%5]) with mapi id 15.20.8182.019; Tue, 26 Nov 2024 08:30:03 +0000 From: "Xu, HailinX" To: "Burakov, Anatoly" , "dev@dpdk.org" , "Medvedkin, Vladimir" Subject: RE: [PATCH v2 1/3] net/ixgbe: initialize PTP to system time Thread-Topic: [PATCH v2 1/3] net/ixgbe: initialize PTP to system time Thread-Index: AQHbPy38IURjRwUMSEKyJcPIXltms7LJO3Cg Date: Tue, 26 Nov 2024 08:30:02 +0000 Message-ID: References: <38eca384ecd00e1601532dd10e20ef45aedf8434.1732288709.git.anatoly.burakov@intel.com> <672ea483818966221e348a09531a9975e2b83b38.1732534388.git.anatoly.burakov@intel.com> In-Reply-To: <672ea483818966221e348a09531a9975e2b83b38.1732534388.git.anatoly.burakov@intel.com> Accept-Language: zh-CN, 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=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5912:EE_|CO1PR11MB4881:EE_ x-ms-office365-filtering-correlation-id: 2ac37a78-9072-4f94-9427-08dd0df48621 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|7053199007|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?MWWLGdmLB0JSG5M8Lq3579bZpYHuoENlpwj7ekaYtTw8YiymaYOlU9PqCV5n?= =?us-ascii?Q?NMJM2VxREvkdON7k3/g1rY+W32PS3iusERvRm7nVWl3Ylssahz0EsdbsvTQg?= =?us-ascii?Q?LuyFIiYV3DpLYrmngrt1VgP3l2O3qYxXMdhcue0y6j+L1b4Sq6EkB4uRqpR4?= =?us-ascii?Q?xI6Y6SFZrLx9eoiw113s0dSu9XcL+NZMbfWIm6k1lJz43nveq5qaQh8vUyeX?= =?us-ascii?Q?Rhotp7q0mpbJRDxNwwbSUNxELOWV6nrsNlP3gDBnmZKvjhqmRiJrWQbC7Y63?= =?us-ascii?Q?AmhZd8WYP9j2JkEVffvrjnRCXZfiqFrQDlrwqlXTICe+PtNdJG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jz5pNWxrBzMF2oGY5E/0P1Jtiucym/Xrfyt3GB5N?= =?us-ascii?Q?RuKuZx3azON2BZyE3LgvJAIvj7PGapuBrwbtd65dbYMfq42TARCZLmC31W+l?= =?us-ascii?Q?ckrOT//KOrhl7JqV+LQzqiPfHp9KMvvzN4SFvqH6J+ICX9L0QB0dHLdJ5cVW?= =?us-ascii?Q?eWTPc34V2DZILzVgkmzozcqG3C7zEqptZcA3uB2XVwX2PULiUg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5912.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7053199007)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?z9fqWVL4v4gmS3VhpYnJLbptdxuG7U57Es6F4nIeRGwnS7aWfWI/RXnOK7AP?= =?us-ascii?Q?NmswZXz3N2p/r7ahzRF780Yq9bMLGDrSAIzsoJDtx+cau0pEYz49PpiD8Yoa?= =?us-ascii?Q?+R1dmrbmB3/qbBDTsgburDASJCXixCfqq2zaHxMqNR3R44GpNnK4w7xIAYY0?= =?us-ascii?Q?xDx22xeoh3InH9YLMFa9xyOXGL2nmc54TwudYAuIvzPGMlRi/3JevZ1XuQ6L?= =?us-ascii?Q?tdkh1f/HuNe6KLDK8GVmdZy+Yr13UyBBr6Th12iyirLOWRUb2DunbZCuuj0K?= =?us-ascii?Q?uraWQZFM6R+b2TP3qKdD+asxnfxJeIkg/zmbsMYkcobFtq4mt10C17rMxlrd?= =?us-ascii?Q?mC7xE8s8L1hVKIl0koPWElEzjUaS1O8uOT5ISigUbL0+vYXQTlGf1qz4Okg1?= =?us-ascii?Q?/sZmQsmnYeuYHARYXUicYhZiWg8MEv5+nyPDYVW32ukJ3LsnzGt16/iirZvz?= =?us-ascii?Q?fJmwCBelO+4V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=?us-ascii?Q?2gO+GE9soWrN56FSQP/oaw1gE6t1xYUm9MkKRMyksiSRR9SneOQeo90fBIZs?= =?us-ascii?Q?vCREU8e2VWEBOTXTWEJdG2poVcbrG9Y+UjKqQKck0cjg4tv0nf0+KdGjW0by?= =?us-ascii?Q?FcRQXPTlyQPZ+lKRj3E7flPNIVJOYnvD9P+NTB2frlSPGjr1BY7q7geqhGh5?= =?us-ascii?Q?itCXILaeQqe7pEZSQ82Pk5WX83bTfafYj8XHDW1k?= 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: MW4PR11MB5912.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ac37a78-9072-4f94-9427-08dd0df48621 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2024 08:30:02.9492 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: f93kpIl7jYqRce45bjZ41W4+FSMxc3c4GsATRVBbQTcJPxcRq3U7oqaZGp9g8IGVCMyLq8Rb4U6PfrF6Uc4bqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4881 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Anatoly Burakov > Sent: Monday, November 25, 2024 7:33 PM > To: dev@dpdk.org; Medvedkin, Vladimir > Subject: [PATCH v2 1/3] net/ixgbe: initialize PTP to system time >=20 > Currently, ixgbe driver initializes PTP timestamp to 0. This is different= from > what kernel driver does (which initializes it to system time). >=20 > Align the DPDK driver to kernel driver by setting PTP timestamp to system= time > when enabling PTP. >=20 > Note that ixgbe driver always uses zero-based timestamps for PTP, so we > would only ever update the internal timecounter and not the actual NIC > registers. >=20 > Implementation note: in order to get access to clock_gettime on MinGW, we > have to use rte_os_shim.h header, which provides a wrapper around that > function. However, what it *also* provides is wrapper macros around vario= us > other OS-related functions such as read(). Due to one of the mailbox ops = in > base code being called "read", MinGW will misinterpret a call into that o= p as an > attempt to call read() the OS function, and produce a compile error. This= is > being worked around by using parentheses around access to the read op. >=20 > Signed-off-by: Anatoly Burakov > --- Tested-by: Hailin Xu