Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1834785lqe; Tue, 9 Apr 2024 01:29:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpB6aZQbb8HCGWSharvOfXCXUXlXNqYdQ3Uwhj6+wFOwV44NKrofUC9LYjZwa0wPgiIclyq59qg3yjsqcwAUQ89GKocOW7umBecEjIog== X-Google-Smtp-Source: AGHT+IFAcYZpfetVnU1j9wdspxQBd6ok1hb643Vzu/dpW0lyKiT6K8p6+uE3BvQ0iGR4il1f7C1b X-Received: by 2002:a05:6214:d45:b0:69b:1d4f:8237 with SMTP id 5-20020a0562140d4500b0069b1d4f8237mr5897924qvr.31.1712651389609; Tue, 09 Apr 2024 01:29:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712651389; cv=pass; d=google.com; s=arc-20160816; b=diMxmQJj+NoVz9Xs6+OVvhYEtnIuYAPlPaUZ22mM+GD3b+AWfxYMP57+apXfnaoP5T 0G4gQjBAHjV4T2w9HZ1LnuRMtBdPvJB//eoJNeaWfwcpWVpi7qVsIt8RrtbLolz7wk3z UZ74zD7IZ/wVYlj1kkjvKeB+eN1SmPkkqX9qCf8PO2W0Pmw7PfW22Jv/5hOqquQzJ9yr 8hlr/e4gHULVZVc7kMKhv9TOU09vT+7YaDM/ORP6AO9ue25CPfmK1AD2qmSMFjxvaiwm aK5rAPLEyjHIWisR8D4+Z7fUWH0fJijB5bOSbvj2SORplLWL/Fp5weCMW8dgaZCLepZA Nang== 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=HrY8w0IMosIqtvCpNeKN+wcauJqxms1gGg8T+SvT1J8=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=u5TUbv0dPsx3a5CDsF1bbTgqVvR2TS7K5LvCQY3hbutH+qhGNwW1kibMYtzITZnrlL YUDLGeaogiDVzeABZEjG2xcmnJVbd9CUtSVeTQ3TQ6fTpek2WXDAQwoKVozBZHgrNGKB 86XvDF9JWUPUTkOiDiZJeVtfcIFydAFvLg6CpUzPO7w2PjR/QJnky0xXhcI8v9+aJd50 DJ3U5VLRY0ogFH9qxyNN9ZmesyIK1AiOZNQXdXcu7cn1w7y0rJvnWUSjpeZW3O1pCaJr Hre2Ou1sktnMBQrBjvhfVFSJe9mDavr6+WvoB8QFC2YGk3irt8IWd9bRlL20/hMoBPo+ z/JA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=aXF27tGv; 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-136463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136463-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u18-20020a0cb692000000b0069b206d7bc0si2809228qvd.80.2024.04.09.01.29.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 01:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=aXF27tGv; 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-136463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136463-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 21F301C22243 for ; Tue, 9 Apr 2024 08:29:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B0798529E; Tue, 9 Apr 2024 08:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="aXF27tGv" 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 E6D127F46F; Tue, 9 Apr 2024 08:27:12 +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=1712651235; cv=none; b=Hj5Rq2yc9itjRzX/TdA694KIWM20wiQgKVNptvCbSHiDu6ibvnXmpmLztpTtQQhFzB3zVOxvNsnCAcancjzRrZXt4jTcqiVQv0NJNdln9OzyttBmbOtXEG3tAdxei6SN+Cy96qjjH+RACPO1VhuouoF5K9Vrbmczdmt/HMbQaZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651235; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mVVHM+kzuUHotSVznv6RgHeR6XDJvwQQXoOfmgNCJWy+vqiEp/86GAaSaR+F0/EnqwUk4XIUHJrt0u9tdKXKbVV3ZlZlz5jtacohFVpBtSe/zZYFocStYwKra2F7F/+hQasFUqNVIJBI8LIgg1yP4Us1ZOtzYsr/e658PICLZ7Y= 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=aXF27tGv; 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 1DF7FFF80F; Tue, 9 Apr 2024 08:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712651231; 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=HrY8w0IMosIqtvCpNeKN+wcauJqxms1gGg8T+SvT1J8=; b=aXF27tGvEZW+Moe0BLe53dC+U/FPJA/8jWeTAeaMy6kCQZ3oNd5SBZx4/uA06C4qUBv6IL t1p1oVrPendf3N4Ofbq0DHMe/pygeEG0A0FnQ6W2ygQQoBcovxw3Fej1ucsvuRdvrkeC8q uYoz8TSfoABI37Wys3H6ZqyKLuMI8lfMu9nOzyxqd24QJu5ULtYLU/y89XqgFDDuc1+QOJ OCREortG2Q/4l0VEUL3Jgul3jzpM+9xaanGXMePyEwZvG3oRSYN1S5H8Ho4JeDLI8pt5kn MjTy04ChjlmqSEW3NAWtpHLIvrZu5/C9K00WGqCBKhGsaXN4jADWrTvFcobqZg== From: Kory Maincent Date: Tue, 09 Apr 2024 10:26:28 +0200 Subject: [PATCH net-next v10 06/13] net: net_tstamp: Add unspec field to hwtstamp_source enumeration 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-6-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 X-Mailer: b4 0.13.0 X-GND-Sasl: kory.maincent@bootlin.com Prepare for future support of saving hwtstamp source in PTP xarray by introducing HWTSTAMP_SOURCE_UNSPEC to hwtstamp_source enum, setting it to 0 to match old behavior of no source defined. Signed-off-by: Kory Maincent --- Change in v8: - New patch --- include/linux/net_tstamp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/net_tstamp.h b/include/linux/net_tstamp.h index 3799c79b6c83..662074b08c94 100644 --- a/include/linux/net_tstamp.h +++ b/include/linux/net_tstamp.h @@ -14,6 +14,7 @@ SOF_TIMESTAMPING_RAW_HARDWARE) enum hwtstamp_source { + HWTSTAMP_SOURCE_UNSPEC, HWTSTAMP_SOURCE_NETDEV, HWTSTAMP_SOURCE_PHYLIB, }; -- 2.34.1