Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2241548lqt; Mon, 22 Apr 2024 05:51:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWr4qCqbsldjs6fXOt+q+gn908YKLZvZzfaeXZk9Ob+Zz7YFlR6451lX6h1cxp6R3NMJfUsww+WG+JKFNkWIVOb5Eo02eJTowDC3yTUQQ== X-Google-Smtp-Source: AGHT+IFOi8LcpS0V4wziqUMm94wc/bCv5OTjRpauBbfUo87vcU+E8VGvH+SRC5YPyqsQxSSIbTNV X-Received: by 2002:a05:6830:44a:b0:6ea:d2d:d9a2 with SMTP id d10-20020a056830044a00b006ea0d2dd9a2mr11072251otc.19.1713790301723; Mon, 22 Apr 2024 05:51:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713790301; cv=pass; d=google.com; s=arc-20160816; b=J6YihQhKhHXo9dA0xgRaJqWRXeumDmOlT34pG8BTpBa0Yq2vHxUQPAOw41tYSDZLoA xhHdSAmNDvjvuEbRhtFFH8rCdp4egauP/FspfEGKOGzTr0jCjZEVQGO3ONIkiG6250FY kRqtbDbrGfBxV+xjwlwDExjNbcsMSuMtaocKWeejyy4HImuAYlS93pyB0bj8QH8lYLq5 HgpKlvkoXZsExxovr7Eg6ZA+0Jk4N/6bTceEpuIK3GZeYrdygzn0aWz15I/rzh7CEdFW sLaQsH1gpV5UvJoXWpybXmcAM8yT/WR9YFdlBzL7Q1fW8evNl0y3KadMKenkzfOto9nf rhvg== 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=dbvBrvPNnaFfx1yMZyqCBszxDskpwbPk3oRoaBmYrWLnONmh98Otj1z44QTpS7cs5f qFLu0hJ3r0lSfEkPdavi+qsWuxh50yAU8C6/0ZhOaQR/zVbBtcJUxHSOJqlqgox4ZR9n /fqyM+/uhJKQHNrXgSlM7ugKs7sFFoxb8oIS+UdGIDO2wP0s2xPHviCVGVxHsUgmh8dZ 8yC+quW+hYkSeiG0gYpA+6QAT6k3ei5nlu7mQmO1G/ZxiS8NtEijkQ5EdwIIi0v29Cmt mPImsy7fJIZWPkJfCEE+x3kCyRo6ZXX/eqop7gvOUmx4aWcx22O8DCxbJOkPdMTGnfGh UUrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pHxGi55q; 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-153377-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153377-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 j14-20020a37ef0e000000b0078f11da7ac7si9227918qkk.478.2024.04.22.05.51.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153377-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=pHxGi55q; 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-153377-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153377-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 4EE461C21C01 for ; Mon, 22 Apr 2024 12:51:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0629D150999; Mon, 22 Apr 2024 12:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pHxGi55q" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 9DFBA14EC6E; Mon, 22 Apr 2024 12:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790246; cv=none; b=sRFDLUCXlZTn5vfWjY6kSn6bM9BDKduEvKh+qH6ejotS4+zow0L9utj0nAISFFL3CY34/V/L+6gubcw1eTqqJs8NyMhxZ0znaZxYxjQuAF1BStkMB6REa2zyYxJuAEssZvTe9nWPM+MFQkmQlOJh0A9+H2cMsX4qlkZp6/Qq1Jo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790246; c=relaxed/simple; bh=fAoFXYYkIkdenvWHNgGiSslpve99mgAMustoo4fOjKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oVc7FpUOGaX2gStVinc+VdWtUqTGOtz1V3inHfpbklFgpvw+qji38H1URv1U6ZWGUQ2bb+4PYKKBcTmFw7z0CXCwatm8w6jUMR5f0WxDrKSYTnVhbkf1giei7RHvMFoVidBmxzCN/Zgnv3+6WHb5jjUPesAB2Yh1GqJk7AoaH9A= 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=pHxGi55q; arc=none smtp.client-ip=217.70.183.196 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 57BA1E0002; Mon, 22 Apr 2024 12:50:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790235; 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=pHxGi55qmLdZZ2C8RdRi6zl8R6Q8VK+G2XFv+pySh9gwsFU0elHn3rI+v8GX7cDPlAbzkV R06U9/aMNscBiSGZToib0YlPbG0lLsWP4u2wsffISaCtOBQOSyZ2hMaMnEk+SP+CSlD91m lZA4X2J+3BrZN1s0EENFCw41Ec4b0yrUfCpBFGABASxnAkYn12BfdgqekAJspKqvNS549n mdUUhdYCELPGFufCsNb0TgYUg1ne0XYrGEKI6tRb7kadRAz788u28rQ22N8paLOmysHWBs BGcC39tj1201aOUb1rdncmSSioE2TfJQT2IuxedJ6l9S1GQaST4CrLZtO4SpMA== From: Kory Maincent Date: Mon, 22 Apr 2024 14:50:16 +0200 Subject: [PATCH net-next v11 01/13] 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: <20240422-feature_ptp_netnext-v11-1-f14441f2a1d8@bootlin.com> References: <20240422-feature_ptp_netnext-v11-0-f14441f2a1d8@bootlin.com> In-Reply-To: <20240422-feature_ptp_netnext-v11-0-f14441f2a1d8@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