Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp927481lqt; Fri, 19 Apr 2024 15:14:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwjkBBXzJz+kBImJ32gPwr0S5cyfncqCW/CH0NaB6sPvZLRixtijmXAOxVjg7AqNN7EfQGEqG2B/4oMK5lEHqqVH6PPynFVbMID+28Fw== X-Google-Smtp-Source: AGHT+IGiemrCGpNSgJFcPn+nOOtGh8MiWFgbxnveZKIOW1I0obtxQ7MY5N0w+GeEFvhpWz2Em2Vo X-Received: by 2002:a05:6a00:1915:b0:6ef:a0fe:c478 with SMTP id y21-20020a056a00191500b006efa0fec478mr3850892pfi.34.1713564898988; Fri, 19 Apr 2024 15:14:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713564898; cv=pass; d=google.com; s=arc-20160816; b=qwD3pglvkq6FEtLf0GwjKjxMa3CBGg/nFGFQCsBx04BhihEHVFI/JYzh3/wKe/NOiG hFccTGEJpjbA1/Zjwa0jLN7w7gJYmk5ganwu5jE5oLs2dy+6utnK7mZXBV32ToSBhEzg gZoAXTP+8wlr6IYjpyDbYg1MMtnIeZDkNCGIKQfVyAlWm3+cHT/hR2WUo2xc82fbBS2H Jiiz3tGm14LGwBYCZgL/hQzOKQAJVBW1l6Zf8jD0TKytPphGZSD4JgSoRIxdv6imiCrb 1HUgG+uJrge0EPuVAHo0DkWao/74DDUE/Thkw/qxriP6VvqWwMWYNrzqtzAaxNk1zXAB R2mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=b6gH6XCg5jIlnRMmDrx2Di9LcjiK/49bY7DTwVZH5Us=; fh=+d4VhZrRl5iIqPTN9Sg04KbsE9XXU+WTe2xYiVX6tOE=; b=YCriN9qwfp//i3N6RaQV9pB2w0JDGkPW40hsaTO5s/Di0dnVimZSkQebXiZkZJqgeJ Ncre5I9/0NHz9VVRzkSHOFyJFD35kcnvo5HcyXktBlruf5EYfZsJnl8ziUGXnikgd28Z 3EHrh2K/xsLrUMwFjKyw1ibwbPZoDzCEF7BPTFXzS5k0c9doyFQVCFmjkrFqeJ2MumY6 jpxkA8pdBFRAd+j+vJM11tKbw8nP4In8rw8ZX7VLv3880hrDOHyaapsWoxThMue+jLeE Pus278dBmqmMVBJYWbpbG1FWOyRCnWBEAOQkkeQghNU1rQbfIFp/e0WZrN5QgP8N6B+b 2ISA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="I72Toh/B"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-151994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h2-20020a056a00170200b006e629ca2803si3986395pfc.180.2024.04.19.15.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 15:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="I72Toh/B"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-151994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9657C28302D for ; Fri, 19 Apr 2024 22:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1352213D29D; Fri, 19 Apr 2024 22:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="I72Toh/B" Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D710B13D250 for ; Fri, 19 Apr 2024 22:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713564890; cv=none; b=iJ//osDTLALwy5qGEkJ1GpFV+J0L0HEvB6WAz9SrkxdI0y1rnd+goMxHM73GQkbq+BciXrfdtPgkgydq54fVokpjdzNn1BlC0oF31EGoBBV62WKLC9x7InbXfTK9mYTsTM3fCP4W9+q+9g5sImBVZmyO4YfMZ5Hnm2JigO+3jIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713564890; c=relaxed/simple; bh=rvuzjRzSkyxRF2iNeXMy1pRg2zH+eva/o8+UMG/qlIY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UxSGSW19eQuhtlVhw8WpPEwxOBx75LA4dWhGD3fsaIB8a+5WM9Hcw8xJz4Nb5PELZhS8ktuGgx1W5hL99CkvhFsejAteuPjgoP5hMKIvoQhOXbgEWJsrHFPlWwnDXxySYeGbr7vCSGX7z2H8DaPMzqQylIL6TZwGEbnfibtiEjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=I72Toh/B; arc=none smtp.client-ip=209.85.219.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qv1-f51.google.com with SMTP id 6a1803df08f44-696609f5cf2so14565606d6.3 for ; Fri, 19 Apr 2024 15:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713564888; x=1714169688; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b6gH6XCg5jIlnRMmDrx2Di9LcjiK/49bY7DTwVZH5Us=; b=I72Toh/Bv5q28LAfQJFs9TrfvMzoT1dw4Mku+A+9rmxoHFWT7iUlOk5YUJxKYhGd67 3dvvap4MyL61kuFqyoPQpDis7KbM+1p9gxsVSkcdrm1y71/rUv1UtTMLxxuVa9ZgG6uC hfSh68vKF0r8T0dYChXpVlWR5zmpG7Q25Kj4FPwyT0ZN2EjjoNSifF42wEuAknDpqWdE 910UroTfC6X9gAfKrRqjmVAzbMkq5D5/TywEiP74xNkLkIQrgoZR5bfYxkSApaPIM0za q8f9XcBHeRFAbcv93anSIrKGErIwitzTQh8FRNsaJfYrXHk038rWzHSwlWKLrS0BaCBb E1EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713564888; x=1714169688; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b6gH6XCg5jIlnRMmDrx2Di9LcjiK/49bY7DTwVZH5Us=; b=UlRPSA7txGwU9KCJv0XSnnLHxuDzSGKpfxlqItPk/f2gu6eaIBpNFmikm7pK/qFQlr dvguJu0YS37oTSWTjVF7+6HXUHBTfazo69qc19dgyCRsNSlmSUyZehOyyd2xkA3z1yAf ENbBDmBtG5XCwxtcIKTKY+QzZOLD5oP923N4pFyenA584eLQeMWkFO6AlxIn4iWzsB0l n95jKyJYo2ouIx+zaP/KRZJekgMDapgAJDEJKOSLVrbVsIKgbGihwC1jWAqXTuKxg+Fd 31aNL1bsoYXGbPxGzvpJ/+UlKQQbZMHhhmBwSB4uSmRVtswoANi3wCGurEIZhhFaLVsK m8tg== X-Forwarded-Encrypted: i=1; AJvYcCXo+lwOLYfk2m2PliiLrZ2e08S6CvDcGCo2ozMemPRtfTQp+fv59lvcvyhWR1hRJfQU0uZEJ0i+yck4d3KDZ2UDj5JlkyS0s6bB2zOc X-Gm-Message-State: AOJu0Yxy3YZeIfWmpDf2r0eTEblUjk2/Zo+hpX0cZSfUOfN3V/95RcTJ +Vz55B4c76s0NJE6k3plOdS1II76SJVp7mIHCUuQrbIqVcn2TucI/NxDLXra3Vk8FixZ3nwsdgx pwi7H74H603RoiFGIBGDDVmgJaKUvg3xeTe6b X-Received: by 2002:a0c:e113:0:b0:69b:1be3:e773 with SMTP id w19-20020a0ce113000000b0069b1be3e773mr4168322qvk.5.1713564887745; Fri, 19 Apr 2024 15:14:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418042706.1261473-1-maheshb@google.com> <20240418185524.18801983@kernel.org> In-Reply-To: <20240418185524.18801983@kernel.org> From: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS14KS+4KSwKQ==?= Date: Fri, 19 Apr 2024 15:14:19 -0700 Message-ID: Subject: Re: [PATCHv2 next] ptp: update gettimex64 to provide ts optionally in mono-raw base. To: Jakub Kicinski Cc: Netdev , Linux , David Miller , Eric Dumazet , Paolo Abeni , Thomas Gleixner , Richard Cochran , Arnd Bergmann , Sagi Maimon , Jonathan Corbet , John Stultz , Mahesh Bandewar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2024 at 6:55=E2=80=AFPM Jakub Kicinski wr= ote: > > On Wed, 17 Apr 2024 21:27:06 -0700 Mahesh Bandewar wrote: > > --- a/include/uapi/linux/ptp_clock.h > > +++ b/include/uapi/linux/ptp_clock.h > > @@ -157,7 +157,12 @@ struct ptp_sys_offset { > > > > struct ptp_sys_offset_extended { > > unsigned int n_samples; /* Desired number of measurements. */ > > - unsigned int rsv[3]; /* Reserved for future use. */ > > + /* The original implementation provided timestamps (always) in > > + * REALTIME clock-base. Since CLOCK_REALTIME is 0, adding > > + * clockid doesn't break backward compatibility. > > + */ > > + clockid_t clockid; /* One of the supported clock-ids */ > > + unsigned int rsv[2]; /* Reserved for future use. */ > > This suffers from a moderate inability to build: > > usr/include/linux/ptp_clock.h:164:2: error: unknown type name 'clockid_t' > 164 | clockid_t clockid; /* One of the supported clock-ids= */ > | ^ Hmm, my bad, it didn't fail while I was testing/building. I should watch the bot checks more carefully :( I'll fix it in the next revision. > -- > pw-bot: cr