Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2375342rbb; Tue, 4 Jun 2024 03:40:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrBhKEZgDOJirOOR59TAgVtJ0RGoH89+avfXpRCOdZFIy8rCccVJEEkyCZmaiieXwEvtENkfm1SDqKv8owTLgUx9trVRQ+Ht7fwggp3Q== X-Google-Smtp-Source: AGHT+IE0DSvGBUMDz7fis020F6TDQonahib4rQfIiqLhX5m65jllbnI6reX3hlH5RqeLdvbBlwDi X-Received: by 2002:a17:906:cc4b:b0:a68:cbc8:178e with SMTP id a640c23a62f3a-a68cbc8186fmr547504066b.33.1717497620383; Tue, 04 Jun 2024 03:40:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717497620; cv=pass; d=google.com; s=arc-20160816; b=JtDaVXeygHrb9bcyCH4u0jQo2Rj20A1G+DQR6EQk6Bi3s6iNj8rmZu00a0gnK06DOJ QlihypqGhAS2Fykmqqe+X+AhzFn8tWL1YXpTpYlCgYUaAO/qi0SMgz4fdN+w9Muk4I9s XQRPYecQ2tT/6tN2QCV7nPW5VxyRHorCKd+y0J/VyLW20VFrGfv0mNfbJhX8aXTnIAMK pU2NhiUCVlgU2bKdJy4MVHRbyXwNlC480GRAEg8ont9EtaqJc47v1KGqGsEwAmEIsXCe POX32ycJzK+t80lv1uES8e2Zh2CNfDIeWbPLZ5+UzLqyEFtzSChQXDK3Sy6+1YERfy9t rshg== 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=j3RhkTfH/VpbSNlBRp7uqN5WYjs+817Zo/qA2xB1FP6usbUkILjTnVGqPBkZ9XwKy9 R5GwXGnwOuLECjsQQwLOlPHD7klip4r/CfiYnhca2dtoblCZLPGjyS79BSTAI727+8Yg zJvm6dJN1AtO1Lg0HaTAvSpNdQVwLNvQMzV+xNm6FIMF64gKh+rjEOJ2idNRHgxL6s4s WE4yA3VOjLI5FQTv0q3mXtT1nDbIHGvkdnotE7CQwdufbIxv4Ylmt/XJ8khPPYq09KM3 06J5UXJ8y9n/zg1YpQ88H9Sf85ma3LVBMCff9gljBgOqgvqhcCe4o2ygDeWzR/zt8PV3 Kq6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XI9qSM4l; 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-200433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68afbe439fsi357505966b.18.2024.06.04.03.40.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XI9qSM4l; 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-200433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200433-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 24F241F2335A for ; Tue, 4 Jun 2024 10:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2B8E145345; Tue, 4 Jun 2024 10:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XI9qSM4l" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 01DCC1A286; Tue, 4 Jun 2024 10:39:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497599; cv=none; b=TO3HbFNOxG3UjzIEesPegb3kslP8p/wPNCeTbcDaexdz0n70CReD3SBGKQNvQNkCaTAwlsuMCoWSP14XN83TPB2yNFRxQYxPrhsi5+sC5JUrkx/kHtGJjQat4hUnQqrO8au4ZXBGTNnVZr1kqUP7MWex62HnxebBhuxx4045AmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497599; c=relaxed/simple; bh=fAoFXYYkIkdenvWHNgGiSslpve99mgAMustoo4fOjKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GzzdvsMAXENHalQ+eFnkoLXRaZEV0J/OsUiwyzzzzGlGI5CvQhyBmuztNEYleEkOFT7i6AjmHdySKgWRicWhUXhz68JQX87Ys6eawcZ4TFF6+ZiN6GH+ZTS7KDK54TjqlQKOb6LuktENe5FXfdcj1m4+YPZT/kVSrBur2Q4Rl2U= 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=XI9qSM4l; arc=none smtp.client-ip=217.70.183.201 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 168781BF20A; Tue, 4 Jun 2024 10:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717497595; 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=XI9qSM4lHKcZfHH4XITu8QF0X7XObYSyZXEkDTslnVCuyxQAh5Uau535xPPNIRy3f4itXA 8ewCKKRrjWPDyvCOyWxYSk2fY3RHe0kXS5r7v4E6uWnPo2LmEqT7iDL/+IsH2QKqJ+lpgU w6aTW9PKVxp0QL7CTuY0YdHNhrQVK7w7XMg01D/gibk5DSg4Zpq98K+spUSGxpPmQaEQam +6V0GlQNcL1Y7gPhSOhrn8akbiZaamemiX6n8nk3RBVdqlPOkmMX2GUweJnvzsWSujwyx/ jpgYl03ISJCXVQTdmD4dKlaULNvNXuv6IrT90YY0OKu3VLhJQXnoNfwbL2fe+Q== From: Kory Maincent Date: Tue, 04 Jun 2024 12:39:36 +0200 Subject: [PATCH net-next v14 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: <20240604-feature_ptp_netnext-v14-1-77b6f6efea40@bootlin.com> References: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@bootlin.com> In-Reply-To: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@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