From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH for-next 09/10] IB/mlx4: Add timestamp_mask and hca_core_clock to query_device Date: Thu, 28 May 2015 11:50:43 -0600 Message-ID: <20150528175043.GA10966@obsidianresearch.com> References: <20150526220724.GC4502@obsidianresearch.com> <20150527184856.GA16059@obsidianresearch.com> <20150527222108.GA7855@obsidianresearch.com> <5566BDE4.50709@mellanox.com> <20150528162416.GA6515@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christoph Lameter Cc: Or Gerlitz , Doug Ledford , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Amir Vadai , Tal Alon , Matan Barak , Yann Droneaud List-Id: linux-rdma@vger.kernel.org On Thu, May 28, 2015 at 12:14:15PM -0500, Christoph Lameter wrote: > On Thu, 28 May 2015, Jason Gunthorpe wrote: > > > After a quick look through, the biggest question in my mind is what > > should the timestamp value in the wc be? > > > > Right now it is some coded thing in clock cycles. > > This is sufficient since it can be converted to ns or whatever one wants. Sure it is sufficient, but is it a robust UAPI, will it support multiple hardware vendors? Is anyone else in ethernet using verbs to deliver IP packets? Having a conversion function, or doing it in the wc generation is more 'obviously safe' for future proofing the UAPI. > > Should we require the driver to convert to ns before passing the wc > > back to the app? (Looks like the socket implementation uniformly uses > > us or ns) > But that requires additional processing. Well, it is only additional if the app is going to ignore the time stamp or not convert it to ns right away. Is that the common use case? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html