Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1834622lqe; Tue, 9 Apr 2024 01:29:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUehFGkBy1YPoZLoqcQ+B3hACzihC6REWuW1uGLORBpsRt08sMWTSu8hf3aqbGlyBYVx0rVsA3B9IP+CcxpyfK9L7w7C3x4To96zkEElw== X-Google-Smtp-Source: AGHT+IFW+n/ekKgLPCR/4FrjEDZx4KN/QEkU0B/NteQVnR7OCRb09R0UsUonO42ZOJ4h7WPTISS+ X-Received: by 2002:a9d:7487:0:b0:6ea:1244:b0c6 with SMTP id t7-20020a9d7487000000b006ea1244b0c6mr6143213otk.32.1712651367023; Tue, 09 Apr 2024 01:29:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712651366; cv=pass; d=google.com; s=arc-20160816; b=JtcUpH3ULwvQvtMlLOZ3omuBc9yb7yUnlhXiOtOcJjhVhMFZ23u0ykjFYaDdo1LN4v 3sivqaaPTsu81M9hpTO8jvKwKds5IgWcimF5YSLPxsUuI6XVzhXP7srpYDgH+EGRHMoP OtSIP7wV294WUKwv3jwu+eLGM3GTHAmtvXpRh2xvqZvnENq6ppjT//dAdj4+dnIdYJwa IPRvis+Yg+hpElqV/bymuK0y6QYpU6QYgNxhwESiFx5XyG4FCvUrLtOpbEasdpSf2bwH zCf5PAIoaZUMiElPvJodX0jMbZ888NE+rF6xCG330BJsHiJ2oElkS+p8lAK8QL3oM3sW /BgA== 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=inpqt9gpGUBrF1uDQJQK9oRaJl2I1RFxO7qaikW0RRUHeRR6iFGEw8MPg94m32AwcH hyFVoXkoxyO615xTKmV6GrnfhOsHeoBms1+h415ZRtogTYHHhMz6s9a0y+Wsz4gDzN6d 1EPOP1mlj8nPIA2aTJyrhXMGKE4njYnyI+OTBqpo9a7jFGAe6H8afi1gO5JI82hkVEWl cEHrP5tHi4EObYOyVITrqgXz3ApwsbIY+cuvGr9s7TPxWLHAnOmJV8kWLCVILDtw/IlB Ar72QzESGCpcxUH2hMg5APRtdkOdYbrYhH8AzJRnHZ8t93ImncC81WYYURl3AnDzbId/ /TmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FdRgNvEH; 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-136460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o24-20020a63e358000000b005e858e302cdsi3225727pgj.228.2024.04.09.01.29.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 01:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FdRgNvEH; 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-136460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136460-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0936628118F for ; Tue, 9 Apr 2024 08:29:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCB0E81AD0; Tue, 9 Apr 2024 08:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FdRgNvEH" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 93A4780637; Tue, 9 Apr 2024 08:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651234; cv=none; b=Dj5eW4ZJKMlmAFNvsQ82XNMVOuOZjlsKmp9yo31NhQ3Qo2LTjmV1Kg4kxj76JI9oYXMLn1v4YFTaxo//A/a+bT3aVkz08zASeNZ5Og7nzaKVSMHEZ0Zkb5A0EprNYALvxfkzaj1wG45KzzXqzjSDvSboGT/eL+OwqA6PP/nLHMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651234; c=relaxed/simple; bh=fAoFXYYkIkdenvWHNgGiSslpve99mgAMustoo4fOjKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TBPMuZTUKtQlD0fKPhUz1SEHKzA1SMUDPeIQL5rpy66EJJz8dBajvYsDb5DMJEWEIw9o4rKYMRYM0COcJSKn0mjNwrkBxlxD0en4pl3biq4Yv2YbZkdDdTW+ciBLVwdfLjh0cenuGtnmm/kQ5Lvq5/9d+I++7tlb8dqR7iU3uJg= 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=FdRgNvEH; arc=none smtp.client-ip=217.70.183.199 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 D1712FF807; Tue, 9 Apr 2024 08:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712651224; 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=FdRgNvEH7SnqmEkLuTFiguGUmm95ErTDkMzoIbRtHnOsJ+p/qpg8dBk+D/4oKzejy2/vNW /DYaCxEO8GddoW187Luu+sZDmdcVJP8bvJ4pLpqBydrS/FcXsgkJxP7MftH2JEsqV4CIfR qcguS1KJ1SSu/0/6oIZtQAFmZExwZl9vR9ynSjGE7b+OP2WL+e8Jf+fgNTkSw/kjaB8EYx l6Hr0WBsqpb8joHWomBw1kK5ih2rHUYVsuyRLmHD1y4RD+lFVE+OxOgB+LIhhtTlE5Vgi7 nxoX0Pvx3s14yWMcELH1JUzaTK4wl9V2g3H8bB/LGssysrLhhsn2XvOUkssfrw== From: Kory Maincent Date: Tue, 09 Apr 2024 10:26:23 +0200 Subject: [PATCH net-next v10 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: <20240409-feature_ptp_netnext-v10-1-0fa2ea5c89a9@bootlin.com> References: <20240409-feature_ptp_netnext-v10-0-0fa2ea5c89a9@bootlin.com> In-Reply-To: <20240409-feature_ptp_netnext-v10-0-0fa2ea5c89a9@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