Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp358312lqt; Thu, 18 Apr 2024 18:55:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW35EVSueyJdKa6se0VddRlQkWXirDA/yiJndLt2aREUH89TfSwWLaPeqwl/gyHXUewiXFGZWQXger7ck6jXbpP54c3exhFf70ACWLO0A== X-Google-Smtp-Source: AGHT+IFBC+6h0t41gC4KwYLyJICEIp2ApDZcqEv9X3HREVGAEr+GgCf8IXMkd4MY3au97JdiPSWk X-Received: by 2002:a17:906:378f:b0:a50:7cdd:348f with SMTP id n15-20020a170906378f00b00a507cdd348fmr506750ejc.46.1713491736010; Thu, 18 Apr 2024 18:55:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713491735; cv=pass; d=google.com; s=arc-20160816; b=x4ICOzW1mvTZJWcgkIE24hP3YZ2srQEWHvfICmJ8Y08PPkFqqNc7xpjxA2TFeTeUEi qHJdpvi24hd8Gv6EO417p+i4KJbl+j6bLkTTxMqAHVW5eER3HUocZvzt4BskuLUfv7Yv 435sJjX8PRFBNqmbMmNktjnid5jFEutwXzQVOMXXS7dz6qebBsXRzPhCaBSTZWglLuXp mwwbZa6ZZUWB37eHQ/Kd9tYNPvxYvFcPClYHrwm6GHS+PPsFW/IH6M09nNrzfye17z9Y yKR4W17gKiDHPt/W8tM0wuYtpKlP6/ALZMMMpwY+DzDcQwsqBUKSvw6AYXy2018VbTN7 vMJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=RCwNbGQ6L8eRZlcd0OmYBPORUD3k1eAi52fs5fKVf3w=; fh=QGxxt1lwHrrZleFA7U0c0sNFDYOUXWQ4ZRAnatIWcUI=; b=Vyz7jAbMtSK1VU/I0LedEmHE+h1X/SnV4UturBt9xxOAU4uYgYJtFBSLTgu8tncUYO 96AoNDO70VC5XMhYzqMtRjCc+vLZsqtMryuXyrOtZ0KXcLPMwD/0L9yfnl7gdJLZfVHK jZGJNk8oNI2r+cAaHd5J75JN2Op1jT86dREiMNV5sX0zkNgM+QMSRxLPBVvuvn2mQw5i ADUn+65Am2uQI08OGLU6e3UzQw7Y/VjrcqxT7PcdzGN+WAwoaTBJdtbcZ12VKha/fMyn Y8ja/EnYsjULsM68/3Z5RZ5HZ6W6kDDH9mT5YZZN7rymsSROSMm5dwauKF96Rr4GGI7k I2BA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pObsNj9F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y20-20020a170906471400b00a51dfabe259si1543821ejq.306.2024.04.18.18.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 18:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pObsNj9F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AE68C1F21C3E for ; Fri, 19 Apr 2024 01:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F4704A3E; Fri, 19 Apr 2024 01:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pObsNj9F" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42387137E; Fri, 19 Apr 2024 01:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713491726; cv=none; b=B9WmtbMuWlM+BQmfxQLiKwmv5Z36dBIhf3xjKWHZ4cn5+daJjMKOhDerym8heWEBqWT7JYH9AEAVnV3XEq/QWIiGkEWqU/4Pp3AOYLHX6QGRS+SkTbQCP9B+1ns4aBL4i83sOJ+j8tnsFc5gGGnaRmgMZo/XSx8aCnAAMJf73J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713491726; c=relaxed/simple; bh=Z1qeLBAS2VxS7zLPOdYBW2uzoW9207/K4imjfec+zbU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FTPea+eMssA1OsFan+Fsq3iqx5XHhhBRUiuFuTys/ypl40tu4g99PAPweRYwzP5VH7RtOXNm0auOdFdRbVIEWSN5d0Aij9lukQUT1VB+VxfXGAReXSve/H8V4P4WZnBO/qDfq7bN+IKzYBW1iIlCUUw6MJCosLP0kRKFhyiRkIY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pObsNj9F; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F94BC113CC; Fri, 19 Apr 2024 01:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713491725; bh=Z1qeLBAS2VxS7zLPOdYBW2uzoW9207/K4imjfec+zbU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pObsNj9FOxhCLq25tTQOnDSSi8ExwVy2PQHmLz5vxb8RlNwSpA4TVEFOvVrPx6Q/D ai6wI3af/nxRvsqU9uXfUs2ZbdUFZ08FhOav4KESYVv8ClUo3Cj61+OQBhJxIItFA3 GIl33t3PVX+zjyZn5M4jQn+xOCIiSBMTkI7ynKFsJwUQCOggQa5jdhnXxNs7LM6ZA/ xq5ReCgMQ3JHcZq3Fs6IC1dpDHwVtgTy9BQteddWzXHjssse4eWy2JbBBKid6h91Dz aGJPKBp/isz9mI22383ds1ldlITjD+qt9pztzA0VXel6Ln2NcfqeAXkfs/DP1PgnSt FiWjpFPG8H2Vw== Date: Thu, 18 Apr 2024 18:55:24 -0700 From: Jakub Kicinski To: Mahesh Bandewar Cc: Netdev , Linux , David Miller , Eric Dumazet , Paolo Abeni , Thomas Gleixner , Richard Cochran , Arnd Bergmann , Sagi Maimon , Jonathan Corbet , John Stultz , Mahesh Bandewar Subject: Re: [PATCHv2 next] ptp: update gettimex64 to provide ts optionally in mono-raw base. Message-ID: <20240418185524.18801983@kernel.org> In-Reply-To: <20240418042706.1261473-1-maheshb@google.com> References: <20240418042706.1261473-1-maheshb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 */ | ^ -- pw-bot: cr