From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0073.outbound.protection.outlook.com [104.47.32.73]) by dpdk.org (Postfix) with ESMTP id 4F947CF9E for ; Fri, 24 Mar 2017 09:35:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cWZ117J5Eh3+3ZSL+Z2S6nlL+TTbMDTN+wjdDQit55Q=; b=FzR4zdh/CFkZb/KeMV2M7S5/hhurLyYCOC94SwugyCiF9pdhDr4DteLNz2FVK/67SJbo8MiiNQIAbra3eeoZWkprVZ3oTfoLYYhlNmoAWhVEkJrhdm++/Bq7Qh/KUACnDgxMXK0hUHO8gDfCZDWu0X6SQE+iXXNI46Cb6Y2KcTY= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Fri, 24 Mar 2017 08:35:20 +0000 Date: Fri, 24 Mar 2017 14:05:04 +0530 From: Jerin Jacob To: "Ananyev, Konstantin" Cc: Olivier Matz , Jan Blunck , "Richardson, Bruce" , "dev@dpdk.org" Message-ID: <20170324083400.io6h7vggj4xuljeg@localhost.localdomain> References: <20170228102359.5d601797@platinum> <2601191342CEEE43887BDE71AB9772583F11EA11@irsmsx105.ger.corp.intel.com> <20170228115043.3f78ce52@platinum> <2601191342CEEE43887BDE71AB9772583F11EA96@irsmsx105.ger.corp.intel.com> <20170228132825.37586902@platinum> <2601191342CEEE43887BDE71AB9772583F11EE7A@irsmsx105.ger.corp.intel.com> <20170302174623.268592a7@platinum> <2601191342CEEE43887BDE71AB9772583FACBF10@IRSMSX109.ger.corp.intel.com> <20170320100036.086109e6@platinum> <2601191342CEEE43887BDE71AB9772583FAD3AC3@IRSMSX109.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB9772583FAD3AC3@IRSMSX109.ger.corp.intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: PN1PR01CA0003.INDPRD01.PROD.OUTLOOK.COM (10.164.137.10) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: bb436ecb-715e-4b34-0917-08d47290b654 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:gt4QF2Vh7Ojh4iBkm98Qw9PM+sm1Iu/wKkyEMPjA6aKojPnTM0JocW0iFsS+tbJjW7SetaXrYg4vzcrLiHR+xkpWqe50m07OLMutaSUlcnD+tUPRFEOoz9f5epKvJhlwLg3CLN3BALMO/OjYyV64Ci7BO4150CF30FWdTfYWTUH9T9I++lRTzp2mdcTVyRYLme5mUMJhfxK/SPJu4uaBQy/sdW4HzFN2+iRZXSLp7R+pA9tV+3ktTE4+oMkFNqcM9KorQQXFyhapnMJdRWPelg==; 25:ItkMuJtJtfSbuUXqIGPNVf2S2YMpJ9SMxFUsSD5tStBNotrBAXBIqBAGlRTFz0lhAZVVNgUuOvRsYfL6VHak0mVTJ37WjfIny7kMrsXE2l56udDaPQf9fEN4SzuzV3YllEYchZaNX0XGITcYQMNphM/9u7cRt7RWEiPkWpGU2Ub6TlsBzh3j4NvxN40CFKBSPWU6UxY4YxmKUnUyTTOdKSu3Jn3yr2dxJvoFrLSI4UtNE9oYZm0jYAW6udD3zsuiXGdL/RSk3BXbicdYdP2Rkhmt3bbDjH1geot26ySFEA2z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VX0jW749s4eoBDlUjGRhmpo0eKy0TeOmInI9dTGfqywiNg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123555025)(20161123558025)(20161123562025)(20161123560025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:gR3MPojkIyGhJjieg94qNUaShVXahTwuHKXFi4ejlYmLsv93ukSzkxHNmmt/4yzwhpgXS7dHyvn93l+J33RFBeCv38AAJ0yl60KyD2gNAmr9YyjNCLc3DrFoDtPoyuqO4tp5vcAhiNZok3aOk1xdD+wZRGSPN7Yz3dLs4C+TQmwhVC/LjkzbRsNikT/GKlKxTvDseaTc0HqkICMrDwyZWENdpBTUFtTcVcfEXWqIsA51u9zhVJsAWa+GVR3hdwa2MyGvGebMNCFplOk1BVrQrSMyHsjwG5V6NJGec4muWJxVU2QNR+VoS5Z1OXNWoouVfWtkYu9h2gnhvImHeB9VbE2NRmxoeo7pG1g/Jiu88GlIl2UDKVIGrNSZ15IxOLee289MgnDf+2BnzO8b5Kkx/Vgb67CDzbDGJcClLzCCWVMhVVN9F5IParjCzuSSwOR4Pm4jzF4kFajRkbjIVbjs3Ql/gEsdpaO9o9olqU5eVPjDjG4BUNW+45TXuG2QogZBeNhxolfvvXEMpZn32i5y8D5md3NwaoJtXlwjiIlpL4IcWk1/quGyr0GwukeTuFZotKqv98VzLSx0FlJqcDIf+MpVhhyHjLUNto312LsyflVUxUCRcWjf06LqFxQYeT3m6DOLNN+3vxYFW+gsbe743A== X-Forefront-PRVS: 0256C18696 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(24454002)(5660300001)(76176999)(50986999)(305945005)(54356999)(8676002)(7736002)(3846002)(5009440100003)(6116002)(9686003)(55016002)(33646002)(25786009)(53936002)(61506002)(1076002)(23726003)(6506006)(4326008)(83506001)(6666003)(38730400002)(6246003)(2950100002)(110136004)(6916009)(42882006)(229853002)(66066001)(50466002)(47776003)(189998001)(42186005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:0aDQFxVyRCr5aKtZD8VUb7utER5fq+8c0uS2384?= =?us-ascii?Q?FlMB4GyQ1VoJ13OnBvmO7Fuy+Y9RNc65Vpj4tHQAld/AfD6XWYlFR9f0uZ1L?= =?us-ascii?Q?aZmp+VXVq3bsY6uq+AyqbV1LkL4L9p7Iu/mP1p6eRm5SLRfgh4S8a3meVPsj?= =?us-ascii?Q?iDwhX7lZW39Y1mG/w9P8glxWRDMsY8sxmay113r699ymOflm/qd3Rh5tC+Mm?= =?us-ascii?Q?f0eKjVxP1NVuFjd76jRAqoINshZMSLmg6RaK8ysFUiKTi2LBtY9dgkh80VSe?= =?us-ascii?Q?EPZI8X5eFyYHtsEvElehrKtwuzjqaBC1lFMbmMqXx9pIpKH4HRW0joQHUxxa?= =?us-ascii?Q?93lBytHYQ8ZtRKkf2jCFHVPt0hR4efTQpE9HAgo0hS849eqllusRBPjVQfcG?= =?us-ascii?Q?DYKfm6mv/WcJLGhUW9n3RYtJrps+ASpIAPVrNiRiwR1ar8TQG/0LSpPJJbzT?= =?us-ascii?Q?cBhCaacqT+kHvksGFCadbo5ZURJTmzPfF2nEWThKVA1lj43UuVfH5E8cNGll?= =?us-ascii?Q?FvYAVYfhd0di3yyLQdcfDVRG7Dq+Jq6peWBn8B+B4a1vpkhlLGIgnT/0VJmX?= =?us-ascii?Q?8lv4bHH/0fwgkGjK4uSVKK+64uMY+3ETx3Xx2KN4kbMzeEV1A6CYHV0FZIu2?= =?us-ascii?Q?+wkxtSk0oVUrr0XenT6nU67iojFEZDc1lHvDhL3q/z0HGuQJoQLjnU71gK+e?= =?us-ascii?Q?F70Pc2QDHnB4hnpFcVDxSFj90/OuISeMMir9l7MbTrUAcGujS7bBi+gJAQOK?= =?us-ascii?Q?1xb3HXGuNAB12h9tfRjkihMnksA63ayVH//qmQDcyHSy3O8h599Q8BKiUj8J?= =?us-ascii?Q?Q8yodzHGWK5UFHJuIZn2YxVSwOXyEz7C8W342U0kTHWQktK+p3Y8E/rnISZz?= =?us-ascii?Q?eYJYX8+HZvZTd340WIc5VhgUU8NxPtVLli2vHdCyXqeI69TaeoO4KcIaLMJm?= =?us-ascii?Q?XqDEetoG/yoqn1taAP/bynSfgptTjUb2gB8ME1vr6NK4+BCq2OJd5mTxLq0j?= =?us-ascii?Q?GfXY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 6:5buMTo5u3S1GF3Yj2WYUhT+z9a/KejpGMWUng1mYYnoy9zdTtJvAuCN0L+/l5zVCUA1vczDmVQrUHA6v71qAP60acn5YtgP2H+KNQeEynUeiVwXnDxSA664W41L2mCaZARwghkt5BxlnxQyiabH77PaLpvGtTxZoN4S64JUI9hPP7a5PoM9I77mDt+mX+seiejxkkRlQvlv3vq5tOA8Ks4HRiD6w4NKtftxl4M2uRQWhNIz2ZOEEvG8G0Lv32eIyji9THI4G4b8v4ulRmS93noSHdeWukMyei88AkQ66oaBd4kXy8Gjy/OG+GzXAA92gIS6IeMWT9qP3e8rKkuPP33h00b90KlbfySAjhJYDUFxmN+NlPODf2rYItHQYFefl70b9ZE+geBilpOqd5k1U+g==; 5:N8HlH/CNLrph880mG4/U4wj2cuVQdBL03I9dNqx1DDY7xpmroJWWkc0WQk9bhKEml59jQiev4npbSXsJwXBua2RhYe7b8gLXxZaha9evvpw9HcumEzDTUtC9+Ny/QvBZsciAl/huY/Rzmqr9CSqsig==; 24:5zof3MVaY+9uhWlK3bLBIIzF9Stldz/ie+oTLuLcrenkQMUC0rftIKvq+CHhQpjpm7DTZ06Yfx8yywGtGAJbPsh8H8v3vhUi2LHI6R3y8Qw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:EaH9ok0iOGt/RhAfK4vKmcW0v4FewAtCiKLgDn9NA6dJyzrJ9nNfuMsCegvTkdLZJUeVanACu5lB74XijsML5jaZ5mnqRjx2axUUjq+Rf7Ageyal5BPlyBjYvIfrRMX2jzc+2PIMofwVoF1rbReQC9uJS4nESznt1JHTuMTSQZi5llvgdmRUnrtg+d71/YD/cGl1wlb/MyZbd2Dqngc90A2rLK/tXZAC5AJr8JevXVkVe048yfYHGKY3UQqvRbfn2F7+1Xt22pYCaUj6VZtEp5OFWffbvGIw18lNc4/KgKeLR4BtzItpZuzUnAeRQSsq6NdixvayEFRaLnll5ux+HQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 08:35:20.3830 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [RFC 0/8] mbuf: structure reorganization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2017 08:35:24 -0000 On Wed, Mar 22, 2017 at 05:42:12PM +0000, Ananyev, Konstantin wrote: > > Hi Olivier, > > > > > > > > Another thing that doesn't look very convenient to me here - > > > > > > > We can have 2 different values of timestamp (both normalized and not) > > > > > > > and there is no clear way for the application to know which one is in > > > > > > > use right now. So each app writer would have to come-up with his own > > > > > > > solution. > > > > > > > > > > > > It depends: > > > > > > - the solution you describe is to have the application storing the > > > > > > normalized value in its private metadata. > > > > > > - another solution would be to store the normalized value in > > > > > > m->timestamp. In this case, we would need a flag to tell if the > > > uint64_t dev_ops->timestamp_normalise(uint64_t timestamps); > > > > I think (but I'm not sure, it's really out of scope of this patchset), > > that the timestamp synchronization API will be more complex than that. > > > > My current idea: > > > > - a rte_timestamp library holds the normalization code > > - we decide, for instance, that "normalized" means: > > - unit: nanosecond > > - based on system clock > > - reference: 0 = time when rte_timestamp_init() was called > > - the PMD provides an API to get its clock > > - the lib provides something like: > > uint64_t rte_timestamp_normalize(unsigned int port_id, uint64_t timestamp) > > > > > > > 5. If the user wants to use that function it would be his responsibility to map mbuf > > > to the port it was received from. > > > > Yes, if the application uses a port_id, it's its responsibility to ensure > > that this port exists. > > Ok, so for 17.05 we'll have: > - raw timestamp value inside mbuf > - ol_flag bit to represenet is mbuf->timestamp value valid or not. > That's it, correct? Hi Olivier, The ARM alignment fix also will be part of the v17.05. Right? > > Konstantin