Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp45407rdb; Thu, 5 Oct 2023 16:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKTTmste5VloUfH7IryVuGv8Ne/nDtsn/rANeH4Hz628Eo3qtJIHKgBiZQsIho9QtFQar2 X-Received: by 2002:aca:2811:0:b0:3a5:a78b:f773 with SMTP id 17-20020aca2811000000b003a5a78bf773mr6440277oix.6.1696547617676; Thu, 05 Oct 2023 16:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696547617; cv=none; d=google.com; s=arc-20160816; b=hNw8InSGVl2htjJAdXzDAiW73uDaj2eVOz3+XswBMablHShsOlhjXFjD3JnqzJm0Wt /mdrSKfhgHfJ9qloFS+OGuyKI7NpqVEu9n2yEhTVjcfLF32DOmiz1aW07WzhTioC6nLd s6ptegIQuUOXrldjO1tYiGaK4HxPkDhJxjf3cpo0/4ys1sD9T1pj+pUUl3QNwwmCK/uU ZT9YOTgZJret4LhfEEixYaAa/Ew6/ead42e9ZRbOdcaTYazKgzXxN3ME/8R3dXXAPyOk C3vo+dWIfHDY6KYbu3oNJJCiUSn7U+8SRUCF9TgLxKvIUV8qT0ZXCJCJ7uI/O0Ca4kwt X2tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=w/YtWbTk+ogUdRC0TaUNLH0mjAz4ZjMf7BjFozKWCr4=; fh=KjARA7JSrDuekl9hsqUs0uIJoVzhN35cHaRu7/jAL2Y=; b=BfHQDp8x/LfMBFdrvbmmu9Mvy2G/ALx/3JzAJEvOsP5FfnkbD3yY0Znu/PLIfchczY 7Y632zeBLcsVGrmUKpSIsq1RPuibQeYnw5rGykWMSNSjpDJtfMOcfguzBxIFcmetZxeI HFGMKS1tjP3oP1XCR2vsHQ9anhHeDFvN71pnqQKpzelj6aBcVuGOtxCdKeewa86aQj+s M4tQwi9DyN2JNZu+r+/K72dm+S8L2MMYiIko2ND5I1gjh+DadkFWhQdG5ad2F7Y4Br7Q wURXEXT8LaaWt9resmwC5bg8p3O8IF8ZbyeOlftEuW6whWx+MC9zlnLs+bLrWo33LAY4 0mfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AFLMVXPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q12-20020a635c0c000000b00563d9ff5158si2373546pgb.350.2023.10.05.16.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 16:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AFLMVXPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 874AF8088A55; Thu, 5 Oct 2023 16:13:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbjJEXMa (ORCPT + 99 others); Thu, 5 Oct 2023 19:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjJEXK1 (ORCPT ); Thu, 5 Oct 2023 19:10:27 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67591D7A for ; Thu, 5 Oct 2023 16:10:19 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1dcfb2a3282so973946fac.2 for ; Thu, 05 Oct 2023 16:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696547417; x=1697152217; 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=w/YtWbTk+ogUdRC0TaUNLH0mjAz4ZjMf7BjFozKWCr4=; b=AFLMVXPeg5AM8dkTNry21oak9DwrjG9EyWaqYRnL34AZFSMc5wWNJfy17Os8URahoG JKOuzt0ERG3W9R4M1nk2H1pZ79hOd1994UYuDY3fsjsn+Ua5p7eq5LMpNQSyCbq4zNvs HCMSJiWYhjJM7cJbBWr/BQx0/bpDNWKyzIK0hN3oBh7vf5GDu5laZnlO7YffJ2mZWNJl NOT3IjhTDIGD7BzbCWxEeu9mV2D64ks/hzMv9KRtNSAs4OmhOYu2RsXlEr9JEtjYx8RO ydeEdijaYLSMPESApHlT6NR/pDj33hIBAIb/CZg8hzeXvjllYPai+AdZGxe+gYtz13UR 630w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696547417; x=1697152217; 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=w/YtWbTk+ogUdRC0TaUNLH0mjAz4ZjMf7BjFozKWCr4=; b=XQJTxu+ZgpbDZGZuJbhsA3Mz4J1Dmd63QbpsBNfLXFYB/EiDJTj/qSlX1dbQInXdOF cPFsk04aTlwgNIWUF+fdTEAgugBKjumGvhYGTsHekb4GElo69bdb3+D7itLQRfRjM+Kz vs3PAWDCrmBcbUAjQPZJdbUHJ2y0bIAmNx/8rVo5YnSZlttZQKc5UhDLRuYg14quVbP+ LOdqf+4UIpRxzRcHWlmj68p+G/+vUw7QST2Ir0M/9b8MeZFiWdxlP4SVZneW5i83rbiV yM3WoJdJvV3usl3amR0+/Fdak79k9MIu+fRmgoMfedp0sQf95WE8hma+6/FCZd1bp5ui 1l3Q== X-Gm-Message-State: AOJu0YwGBnpYL30ml8uR9wHetS/+lV8GfRaEIfztJQ3sw+Ezx+A7oGay f5Th0d41sqBF+SGq8PIiJQk8chWtgxAxrPcc9hxMIqK+TQStm8opsOBWiw== X-Received: by 2002:a05:6870:c6a4:b0:1b0:3637:2bbe with SMTP id cv36-20020a056870c6a400b001b036372bbemr7422579oab.54.1696547416661; Thu, 05 Oct 2023 16:10:16 -0700 (PDT) MIME-Version: 1.0 References: <20231003041704.1746303-1-maheshb@google.com> In-Reply-To: From: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS14KS+4KSwKQ==?= Date: Thu, 5 Oct 2023 16:09:50 -0700 Message-ID: Subject: Re: [PATCHv2 next 2/3] ptp: add ioctl interface for ptp_gettimex64any() To: Richard Cochran Cc: Netdev , Linux , David Miller , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Jonathan Corbet , John Stultz , Don Hatchett , Yuliang Li , Mahesh Bandewar , Rahul Rameshbabu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 16:13:26 -0700 (PDT) On Tue, Oct 3, 2023 at 9:30=E2=80=AFPM Richard Cochran wrote: > > On Mon, Oct 02, 2023 at 09:17:04PM -0700, Mahesh Bandewar wrote: > > add an ioctl op PTP_SYS_OFFSET_ANY2 to support ptp_gettimex64any() meth= od > > NAK. > Could you elaborate? > > + case PTP_SYS_OFFSET_ANY2: > > 2? > > What happended to 1? My reading from the commit 415606588c61 ("PTP: introduce new versions of IOCTLs") is that we have an issue with the version 1 and hence we added ver 2 of the existing ops. Since it's a new implementation, I can skip the old part and just implement ver 2. However, I can do something like #define PTP_SYS_OFFSET_ANY PTP_OFFSET_ANY2 is that something inline with the mix of ver 1 and ver 2 expectation?