Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4768308imu; Tue, 8 Jan 2019 06:05:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Zp/nuf3zW1eGWiH9SaQ6xZKbUDXc/tSN8lI0GklSHBgux84nanEUfKHi9B2SbK5Gh/T9d X-Received: by 2002:a63:ba4d:: with SMTP id l13mr1636941pgu.194.1546956311696; Tue, 08 Jan 2019 06:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546956311; cv=none; d=google.com; s=arc-20160816; b=jCFnt+sXCy0uKOyvJRSW/v9rUBHbBFcIK6Yi6yZC9oGBmqEZka32gQA7ZcqL48eAPs vpqUZwthsdmfSK16ZI22jDyMQeVga+FeN4p2shf67YumSYzK52gkRBkSvqhSOtqymevC 8z/Pa6WRrOrCA2yF4BH+H7f33whfRwIh8tkG8qA4SgAZYENIL4t7f5xu2FaI9uLEiMJ6 JBPqwOhp31aZw2TXWs8M24nFty3RKAyQ3RkW576s8mCRWaR+RJL10273FxYa7BDpOfFc +BZsIGA4U0x4ksNWRQSG1aqus0VbawIf5ZHdYIFJNYdjOpZpxu7hYXBlXbalHg8xsMAQ 3L2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2u1e3R9FKHkYT4sG/wFzD0rdqI12hDyfz5KaMxjR9iM=; b=KaAru2H6ZqnFT6BgnPiR/Yk8Pf6+DU1j0hzr1WGXNdmMs2EqsThW7mU50Kuuikv8qq hdc4ZrcquWEVCsRWPD7+gCnBffAZTm8UOZY77tEWDQJSIz+dmDF7xMtqAr5xCMsJ98H6 Lnfy9dzSFBeBlXngrkTgVtf8TuRoBQhAQzJN22tKXMNvYEDmdelq5guZ8kGoC3xgMAiz 7xEq0Mio4ZK/UFbyq9hgEhN2PLTtlzzY+IvDdA/K2SR0pABEbxdM3zX2z2vrY9Oz1X7N +8dA6RERRBkNZf3JFQcC0DwR8jeNSS+yPCw/XkGehwEipDtuEbLrQeJ7YEN0a6CuDOkR SXRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mcbxLlYk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36si31435324pld.46.2019.01.08.06.04.53; Tue, 08 Jan 2019 06:05:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mcbxLlYk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728624AbfAHODo (ORCPT + 99 others); Tue, 8 Jan 2019 09:03:44 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45920 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728112AbfAHODo (ORCPT ); Tue, 8 Jan 2019 09:03:44 -0500 Received: by mail-ed1-f67.google.com with SMTP id d39so4290782edb.12; Tue, 08 Jan 2019 06:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2u1e3R9FKHkYT4sG/wFzD0rdqI12hDyfz5KaMxjR9iM=; b=mcbxLlYku3eSZzrS/PjlTJ61jmlRNiW3xrwNwVihU0gjdoTaCxClHPWdPw06gGNCst pgiUoNjbMhcqYifr0k1Q7EDqZZyEJHnH5ftiIWC8OwymLkxpWEblgvN+zwwnQcr60IgD uJ0zvHlCpfXHyxppAOGFysgq2mlrcUYF+RnLeXvfb2Tui4pAFQtEng7gFFwIf1ZBoovJ /z09MSZZUKdR4QZHmyDIJL8Aitsf0Tyk0Rf+zsu7vfhxpNC2Ywvj4EsCxRJxJ1N1wDy3 ErupAlDDHue0uvy7bCVWuLyfuCwOMH/FfEkf2hC28eY73vrqao9OQmBoDHt46CQ//U/U 7ecA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2u1e3R9FKHkYT4sG/wFzD0rdqI12hDyfz5KaMxjR9iM=; b=eq4EyZ+XBdrooeo2XT808udCRLvWB6++y6vGhO1DOGAJ64hYPwshMmWpKctxkwvK4w DtOOgmGQSNqgXDIhnsBO/Vl58GlhqvMV+kezw8okX/uPbtW/wf2C/X0UurAzdiHOpYo7 +zvaKnAT2gONUM7yyxUs/62nTCpYwgg1B/AOIKCnVFPB7dyzvBaXIEER53CXYbxMH1hZ iM0FZtCmNXjfBegT79kNf3vj6p/JD2gFl6wodY/frHZpwyyQSPwWHeG6tk10w6srLSni K4IUja8QRMuPJpQ13Fpa6MjRvK+7E8co7QoES3TuxrdcPFAPR5CDw/11RcmAvhvf7195 mfjA== X-Gm-Message-State: AJcUukdbC8U/aB7WkVAsJOEcriLS/sqEy+oNlNVltjpuE+/Jeb7vgLco geccVTrr3q03ELZFlg6dRldKAD8ZyVIY7eL8kJPHFkjG X-Received: by 2002:a50:a458:: with SMTP id v24mr2182504edb.241.1546956221463; Tue, 08 Jan 2019 06:03:41 -0800 (PST) MIME-Version: 1.0 References: <20190108032657.8331-1-deepa.kernel@gmail.com> <20190108032657.8331-7-deepa.kernel@gmail.com> In-Reply-To: <20190108032657.8331-7-deepa.kernel@gmail.com> From: Willem de Bruijn Date: Tue, 8 Jan 2019 09:03:04 -0500 Message-ID: Subject: Re: [PATCH v3 6/8] socket: Add SO_TIMESTAMP[NS]_NEW To: Deepa Dinamani Cc: David Miller , LKML , Network Development , Arnd Bergmann , y2038 Mailman List , "James E.J. Bottomley" , Ralf Baechle , rth@twiddle.net, linux-alpha@vger.kernel.org, "open list:RALINK MIPS ARCHITECTURE" , Parisc List , linux-rdma@vger.kernel.org, sparclinux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 7, 2019 at 10:29 PM Deepa Dinamani wrote: > > Add SO_TIMESTAMP_NEW and SO_TIMESTAMPNS_NEW variants of > socket timestamp options. > These are the y2038 safe versions of the SO_TIMESTAMP_OLD > and SO_TIMESTAMPNS_OLD for all architectures. > > Note that the format of scm_timestamping.ts[0] is not changed > in this patch. > > Signed-off-by: Deepa Dinamani > Cc: jejb@parisc-linux.org > Cc: ralf@linux-mips.org > Cc: rth@twiddle.net > Cc: linux-alpha@vger.kernel.org > Cc: linux-mips@linux-mips.org > Cc: linux-parisc@vger.kernel.org > Cc: linux-rdma@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: sparclinux@vger.kernel.org > @@ -1864,20 +1864,39 @@ static void tcp_update_recv_tstamps(struct sk_buff *skb, > static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, > struct scm_timestamping *tss) > { > - struct __kernel_old_timeval tv; > bool has_timestamping = false; > + int new_tstamp = sock_flag(sk, SOCK_TSTAMP_NEW); nit: move above has_timestamping to maintain reverse christmas tree ordering