Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1923206rda; Tue, 24 Oct 2023 07:22:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGrEaJ60fzDkOcyvDdwYobMHvORlobAFmx7Ao83Axby06jrjW2FEENWNTZVTjWJxW924qw X-Received: by 2002:a17:90b:4d8e:b0:27d:515d:94f0 with SMTP id oj14-20020a17090b4d8e00b0027d515d94f0mr9131014pjb.24.1698157329186; Tue, 24 Oct 2023 07:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698157329; cv=none; d=google.com; s=arc-20160816; b=y9Xd+k6Chmx4hdOtNbaLsdtv0ytn6CzkSQDrX/EhJlUZUP2T+iAViDAVUP12g0MlUR m1qvNLE7NMwuieVTl6caI+ISYwM5FIglK/FdkuuDh6SwAXBrBQmrxVioMEB2mFEsy0Yk P1gtX+BNsPgmq1AGBUnnxCAcQcmWjAAlQS/Jl0cefpdEhkLMBLnIVpVn447mg668G6SD +rRirm9jSzywtYPT4Gj1t7Esn9VyHYWKPzE5GRhKD8eG/+gCSZoHrjFdAWYL0X537FHm q3uFKIEf7Toojat5s/54lwbFX/yv1Q0Y/SgGaqMak2gXPXdnwkj02fgK5GDGgEzstwuA 2l7w== 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=AM3VQlVHWtuvahhyiClhILx1R0OrNBnU/X/2IXCfrYs=; fh=NYdgKtsgLgErLgRjoohSjmwp5xkf1R4aqjWnkIhlPCc=; b=lZkjSS9dEqGWwYrybifPtptcrvQtB/g7fSvSg76L1wiByBdtl3gLp89NOpplzwkBnO urpcp0K4FOn6ahVs8nIgGLMND5PQcWtiA0ahCjEZ1gAIbKtnFn8UlfWlBUErn1X41pNn AQdXlMPaMgaznFeUo2x0D/IqyOM4+GmQqKS5bqSrKaVL4iL1ArKLtqUinlZzj05onfC5 94G2g6AA+j6kCpn55QiZ8mF2E0refs6vwNsd1bXiy52G4m74vBEWIhcTx/90Nbb2anz4 n1BCstfXwkDjGEBaK1a/uf38gyT+r1YEeuxb9/ow+YPU091pXcJjbwf0x8V6SSEQdU7+ TzGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ls48EsEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bf1-20020a17090b0b0100b0027d22d5aa7esi8206674pjb.46.2023.10.24.07.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ls48EsEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D46AF804B878; Tue, 24 Oct 2023 07:22:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343600AbjJXOV4 (ORCPT + 99 others); Tue, 24 Oct 2023 10:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234664AbjJXOVz (ORCPT ); Tue, 24 Oct 2023 10:21:55 -0400 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE7EB6; Tue, 24 Oct 2023 07:21:53 -0700 (PDT) Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-457cb7f53afso1739134137.3; Tue, 24 Oct 2023 07:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698157312; x=1698762112; 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=AM3VQlVHWtuvahhyiClhILx1R0OrNBnU/X/2IXCfrYs=; b=ls48EsEMy1c8FePn//GL3tYrj78Hh/ijd8X9Sif/9p40zdbgQOcgY0bz8cpSsPBC70 Iuc9X2aq40lO2NkEOHY5mJT5fG3SeunaobL4tGSKPIULLEijaCHmFUbsa7O9lPezpOjy 5gHChkwi28xHccuwUypDHz2h0Rpsf+1Ahxh8sJqbAk/tHkW1HMeCO24xOsdpr+7Gj8sw d9/rgH9g0t1/RQENjH9KnB8S+3I/OKv/fzdqsVthfAhRyIipr62QepVaeGQ9NBhZfe6c BOuiEtkJkk1eXHGX8/9YPpMSvBa9hQ7n8Sw7vVaHOnJKVTvhKTjkOK6E2aFWx1BH5cMO Knhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698157312; x=1698762112; 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=AM3VQlVHWtuvahhyiClhILx1R0OrNBnU/X/2IXCfrYs=; b=TYcP+FXWFsv//dXg4xU0LK0JcZQN3TLqTsaLSwDC2Y8K2+9UhQSytZso+AYb84WOes FCMz09xD16pWnezBcJQTW/lvJ3txyV7mtlOrsZYINYQ5Ecw4qQg4OhT6F9FgFT8FSYPU MuiI68TIAx2hNgkCihXUmAy+BgYYLhcz/frPToXnS01PkW9JXKIJaUjjzBlcx3qaeHJn zc3B2MG2Zbs+LUIYQC/8cD1GmgHu0P7+Nl7Q019EBX9rpFHG/iO4ZG46tMVEjFGLJsWC xdAYKY0HKxFA/69KpEd5tlO34Ns+k5mAijgkxFLQCqh/FzTdHToXzGQBeKe+rYk5DmsG h7XA== X-Gm-Message-State: AOJu0YzJ8Wxnrd7JOrgehFxVg2g9K2ShEiU6WEDfOVoS44rm8Lz1vpR/ qYd3bxd6QsmsMHFS6DFG+pXf4u85pWxjRRjHME4= X-Received: by 2002:a05:6102:23d1:b0:452:5d45:6345 with SMTP id x17-20020a05610223d100b004525d456345mr12294330vsr.34.1698157312490; Tue, 24 Oct 2023 07:21:52 -0700 (PDT) MIME-Version: 1.0 References: <20231019-feature_ptp_netnext-v6-0-71affc27b0e5@bootlin.com> <20231019-feature_ptp_netnext-v6-7-71affc27b0e5@bootlin.com> <20231024154037.2f61fe5b@kmaincent-XPS-13-7390> In-Reply-To: <20231024154037.2f61fe5b@kmaincent-XPS-13-7390> From: Willem de Bruijn Date: Tue, 24 Oct 2023 10:21:15 -0400 Message-ID: Subject: Re: [PATCH net-next v6 07/16] net_tstamp: Add TIMESTAMPING SOFTWARE and HARDWARE mask To: =?UTF-8?Q?K=C3=B6ry_Maincent?= Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 07:22:02 -0700 (PDT) On Tue, Oct 24, 2023 at 9:40=E2=80=AFAM K=C3=B6ry Maincent wrote: > > On Thu, 19 Oct 2023 10:48:04 -0400 > Willem de Bruijn wrote: > > > On Thu, Oct 19, 2023 at 10:29=E2=80=AFAM Kory Maincent > > wrote: > > > > > > Timestamping software or hardware flags are often used as a group, > > > therefore adding these masks will easier future use. > > > > This assumes that device support for timestamping is often symmetric: > > a device supports both rx and tx, or neither. > > > > All devices support software receive timestamping, as that timestamp > > is taken in the core network stack. But to support transmit timestamps > > drivers have to call sbk_tstamp_tx in their ndo_start_xmit. > > Yes, and in that software only case they often call ethtool_op_get_ts_inf= o to > fill the timestamp info. > > There is several drivers that support hardware and software timestamp, th= ese > mask could be useful for these. In case of asymmetric support we can stil= l use > the SOF_TIMESTAMPING_RX/TX_SOFTWARE flags. > > I forgot to specify, in the commit message but this patch is mainly to ea= se > the next patch of this series to deal with software/hardware time stampin= g. > Maybe you prefer to have this squash into next patch as had suggested Flo= rian > in last version. Thanks. I did not see such use in net/ or in my experience of using setsockopt SO_TIMESTAMPING. But I had not considered net device get_ts_info. It would be useful there. Slight preference from me to keep this a separate patch, as it applies not only to the use case in your follow-on patch.