Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp507744lqp; Wed, 12 Jun 2024 08:05:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW73fxkMkH/7kC+J72oAQm/E656bNFZHEdUAjzLpfLIRo9fdvdy6aBnffRHNB1S1IC79K81CpAVJZNdSRJG/4XXyfw49+dOO+Ey9t2wFw== X-Google-Smtp-Source: AGHT+IGSrFsO5odG/sZmNJTc8hSlqz45VRP0n537/GljaxpylpzuGwzTeBxQuuqfR2zjBHbngtVv X-Received: by 2002:a05:6358:538b:b0:19f:5b1f:91b1 with SMTP id e5c5f4694b2df-19f69d1996fmr258262455d.14.1718204731314; Wed, 12 Jun 2024 08:05:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204731; cv=pass; d=google.com; s=arc-20160816; b=TJaYmNfVGfrWOnlhgU4oSVFFgimsUrGTOGSVIk2m89MbEuejN12IfOBLRbuoe5JkDF crvOo/MEMFEQsqwDqrGYE3UAb3B8Qpy/w1hRqjkzRb0EQBxpv3UXPYPNbM0+jXqBHU+p ji0G5dyahW2HBfvkGEiNht0jfIK4VPDHC0nb4gLVpnEzeRj53tJRj+Q8ekyclbLQR/jU /xHPr3ZhAR9befL2YvwPTgfJfYvyF/5ZBdTdu9P2x1PPoEh8hKZiFC18ZkzCxbKH9fdR m7yyw7mTKsuVoVyQGObt6INI9NARiHKoLLAfZOz+j0CJ9Eg7giEuOvJDzp9ykUnt1C0O iixw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=fA411foyqLMzZ1hKOUW4fEs/FNUN6uX3elekeFZ7ooQ=; fh=B/Vas2UyzAQlmG3a8HCI9IFncHXUfUPeSljtUrzFeCQ=; b=mQm0kuHZ/+X7BuDWO0SABlXV7fs8TkEftmAUPYlqfaRJaDtRSHt3Fqu4HeifU8TmgQ thXvedp+SP18WCH1gkFOxUyiYOv2uOntfNtAcYB4Tt7bl0vkfyKuB91oaW6ms/McBrqL AsmN3ENSWBLcuxWQF6+Wp4XN/DpEGYwHYq4l41lHpCJgRFdtozW5kmAzencb/bxnvoV4 zXP7hUboYn/vCVrx6B6ZHXVlw8juGCXk5pm20WO0+XqTUlCos9+ARQzZ3ZutBb+3Zw/U I35hrG31Xz02qTgTke4tMMoz372APevyQnP3NPAVidsoGLygHI+zz3RKq2Q4foMkpIie ZZ3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jSz6CFOQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-211740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48c1a1eca7dsi3547189137.235.2024.06.12.08.05.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:05:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jSz6CFOQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-211740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 064681C20FED for ; Wed, 12 Jun 2024 15:05:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0709C17FAD4; Wed, 12 Jun 2024 15:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jSz6CFOQ" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 49DFF17E453; Wed, 12 Jun 2024 15:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204705; cv=none; b=aBpZT0cohxQMZfDyOe0gGKdQ323FmYdn9wjPewv1lyngMviSJnTDyIMyanrn0cvLPkbas/FeOblfzKaJfDMVac/cHX8zwldUQm3nN28Kg4hXokmZaE2Un7ClzykSO/df2xAmuKGIf7YSoLI8gwnGVoZauTFeB2F5miLZQjXrpls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204705; c=relaxed/simple; bh=fAoFXYYkIkdenvWHNgGiSslpve99mgAMustoo4fOjKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MjyU98s0eA16sFTQBsGpHcNV68QSg1/X/pMuu4GJ2KIDTlr+3jPKKROJ9iFQQOwUC7ulbPmRoH8ygVx4f+pPa7L2xWQ3bGCyHPftNn9/tWhJuwHvI6cOMRqxschp8Q0NZYADwiPVnJzs3mvE+pk78a9XVl9QLjKJPPI40dIdEpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=jSz6CFOQ; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C544440009; Wed, 12 Jun 2024 15:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718204695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fA411foyqLMzZ1hKOUW4fEs/FNUN6uX3elekeFZ7ooQ=; b=jSz6CFOQsWy7lo9oE3ThxSh4+JnBwaYcTa336ZqZFX3EjqTGSZV5t2PY+H3YHsIQVTeexa zId/H3aUsRsMjQTP3HK6Ny20vXilXjGd6IP7FDCT082x81yFOC3byQw73ncZlhfhJLBlid jVWhPcKygr3TiKLwImZVx6pm7sAoeuGh/PNMH8WFAJ4YmniwZo2LKGXpM9mYveE1OHOida 972PtaYFIZnmbRlAnLDxoatYjLr4+ZWpGtEcRZb0cv2B3+xo6xVFC/GJ75tqMIKUK9arf5 kQxrR6VvgX76Z9w5ih51xc8/z5TTAgSSq1vI5g1zwiWBXpaOMEseU5YOIxD8JQ== From: Kory Maincent Date: Wed, 12 Jun 2024 17:04:01 +0200 Subject: [PATCH net-next v15 01/14] net_tstamp: Add TIMESTAMPING SOFTWARE and HARDWARE mask 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240612-feature_ptp_netnext-v15-1-b2a086257b63@bootlin.com> References: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> In-Reply-To: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> To: 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 , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Kory Maincent , Willem de Bruijn X-Mailer: b4 0.13.0 X-GND-Sasl: kory.maincent@bootlin.com Timestamping software or hardware flags are often used as a group, therefore adding these masks will ease future use. I did not use SOF_TIMESTAMPING_SYS_HARDWARE flag as it is deprecated and not used at all. Reviewed-by: Willem de Bruijn Reviewed-by: Florian Fainelli Signed-off-by: Kory Maincent --- Changes in v7: - Move the masks out of uapi to include/linux/net_tstamp.h Changes in v9: - Fix commit message typos --- include/linux/net_tstamp.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/net_tstamp.h b/include/linux/net_tstamp.h index eb01c37e71e0..3799c79b6c83 100644 --- a/include/linux/net_tstamp.h +++ b/include/linux/net_tstamp.h @@ -5,6 +5,14 @@ #include +#define SOF_TIMESTAMPING_SOFTWARE_MASK (SOF_TIMESTAMPING_RX_SOFTWARE | \ + SOF_TIMESTAMPING_TX_SOFTWARE | \ + SOF_TIMESTAMPING_SOFTWARE) + +#define SOF_TIMESTAMPING_HARDWARE_MASK (SOF_TIMESTAMPING_RX_HARDWARE | \ + SOF_TIMESTAMPING_TX_HARDWARE | \ + SOF_TIMESTAMPING_RAW_HARDWARE) + enum hwtstamp_source { HWTSTAMP_SOURCE_NETDEV, HWTSTAMP_SOURCE_PHYLIB, -- 2.34.1