From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f65.google.com ([209.85.160.65]:42532 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104AbeCHQoW (ORCPT ); Thu, 8 Mar 2018 11:44:22 -0500 Received: by mail-pl0-f65.google.com with SMTP id 93-v6so3605605plc.9 for ; Thu, 08 Mar 2018 08:44:22 -0800 (PST) Date: Thu, 8 Mar 2018 08:44:18 -0800 From: Richard Cochran To: Eric Dumazet Cc: Willem de Bruijn , Eric Dumazet , Jesus Sanchez-Palencia , Network Development , Jamal Hadi Salim , Cong Wang , =?utf-8?B?SmnFmcOtIFDDrXJrbw==?= , Vinicius Gomes , intel-wired-lan@lists.osuosl.org, anna-maria@linutronix.de, Henrik Austad , Thomas Gleixner , John Stultz , Levi Pearson , Willem de Bruijn , Miroslav Lichvar Subject: Re: [RFC v3 net-next 08/18] net: SO_TXTIME: Add clockid and drop_if_late params Message-ID: <20180308164418.f3vmql2kluvattq6@localhost> References: <20180307011230.24001-1-jesus.sanchez-palencia@intel.com> <20180307011230.24001-9-jesus.sanchez-palencia@intel.com> <1520391209.109662.33.camel@gmail.com> <20180307052410.m2yqmokrivjlwcjz@localhost> <20180307173524.i6mpg3f2rjnwl3xe@localhost> <20180307173722.hvqorkaiougt4qjm@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Mar 07, 2018 at 09:47:40AM -0800, Eric Dumazet wrote: > I would love if skb->tstamp could be either 0 or expressed in > ktime_get() base all the time. > > ( Even if we would have to convert this to other bases when/if needed) We really do need variable clock IDs. Otherwise the HW offloading case won't work. The desired transmit time must be expressed in terms of the clock inside the MAC. This clock is not necessarily related to the system time at all. But in addition to the performance concerns, I think putting this into a socket option is the more natural solution. Thanks, Richard