From mboxrd@z Thu Jan 1 00:00:00 1970 From: Soheil Hassas Yeganeh Subject: Re: Extending socket timestamping API for NTP Date: Wed, 8 Feb 2017 06:18:02 -0800 Message-ID: References: <20170207140144.GA11233@localhost> <02874ECE860811409154E81DA85FBB5857D6DC87@ORSMSX115.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "Keller, Jacob E" , Miroslav Lichvar , "netdev@vger.kernel.org" , Richard Cochran , Jiri Benc , Denny Page , Willem de Bruijn To: Willem de Bruijn Return-path: Received: from mail-it0-f50.google.com ([209.85.214.50]:38466 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932148AbdBHOSn (ORCPT ); Wed, 8 Feb 2017 09:18:43 -0500 Received: by mail-it0-f50.google.com with SMTP id c7so103627569itd.1 for ; Wed, 08 Feb 2017 06:18:43 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Feb 7, 2017 at 2:32 PM, Willem de Bruijn wrote: >>> 2) new SO_TIMESTAMPING option to receive from the error queue only >>> user data as was passed to sendmsg() instead of Ethernet frames >>> >>> Parsing Ethernet and IP headers (especially IPv6 options) is not >>> fun and SOF_TIMESTAMPING_OPT_ID is not always practical, e.g. in >>> applications which process messages from the error queue >>> asynchronously and don't bind/connect their sockets. >> >> This would be useful for application writing. > > What kind of user data are you suggesting? Just a user-defined ID > passed as a cmsg? Allowing such metadata to override > skb_shinfo(skb)->tskey sounds fine. Yes, exactly. Just a user-defined ID that overrides the skb_shinfo(skb)->tskey. Thanks, Soheil