Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp515967lqb; Wed, 29 May 2024 02:42:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXD1jR554grJxnxjGFhDvYZKqYiMPzOj5oy8o3Ryb3WttpP04d0Q6OVZZtIp07MMeAebDksvfIHIMg0EX78dqA8UvAyUQ9gOyHRMgb6Kw== X-Google-Smtp-Source: AGHT+IFwmPS0tOf/q/JPpQHfO2Eb3r+oyoBBJF4/DVVEruq5LFS2lqwXcD027HGY2PMc10+J4UJr X-Received: by 2002:a37:c40b:0:b0:792:93ed:2e7c with SMTP id af79cd13be357-794ab110a52mr1514490485a.76.1716975770293; Wed, 29 May 2024 02:42:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716975770; cv=pass; d=google.com; s=arc-20160816; b=pbwFD71vvqgVLk5IV7hkr0teMoibfy2sFp04bDI9F9KV+RNbMied2c5/sBs16GI2lV EEXkqz2GOhcIpVxKdvjAG2jvm95iEtiZlR5rVSx7xEDdANsDu86nd5bDyrduuvxNg7u3 cmYSqg0b+RjcTyhetBbaCUh6l4KnHxTPh7oWe0meZu6HXuhiORl+MB/chIgaiARYbm+k 2uc0o7LtB/w8S6tOi44eYgJjItxL+lq7U3D3kfh3wUV6NGwDIohexOySIzB0bYUVB7IW xs/VP+cTkpCU9Izmoz6vj7F8S7vOaDgMfiGwx9x74L4rZdA4ajfefJSu8zf3CLOrRNts 1qlw== 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=bOzEg4zgcN4BLo/yJcwXJRPhOsYdBAzIKZPtlfrXHtRyFigf4mwBr8QLT9N1Kt+E5F gHIQOjwtDxFMph+Vtw37gNcscno1tJhVdKCSA4uleoyVWwVYwMtBHCOxYdcDGBrTTHxS kihbuLX6VNgkmSSJUC+cb55omgVO7/tobRzRrnlT5wv9+FWcCg2Pejco2RexKvPGeTZ6 ykVwZgkx5Fu2rlpdWvT8khdDva8GKBCo3wILV6yS0iMfU9yg2Al9QzCepj1bLIcU0xL1 B6NyPjol2fM+IMM+YG0ZgHFDkqLjK+lexsLw6wnUeh3cOImjO01/2q0t4H832ZHGw2xa peew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CKmh0wL1; 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-193862-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193862-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 af79cd13be357-794abd539desi1227301785a.684.2024.05.29.02.42.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:42:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193862-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=CKmh0wL1; 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-193862-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193862-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 C3BDF1C211DF for ; Wed, 29 May 2024 09:42:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84D3F17106F; Wed, 29 May 2024 09:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CKmh0wL1" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 D39D3167DB1; Wed, 29 May 2024 09:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975707; cv=none; b=jMm1PBBoTImJUt/EW0GKcblkvFCL2X1kRG3RHiS1yBOLUmnrE0qoGNuhkVFSuZv3FjbGiiv9XrmEdcvqpn51wscyDF1iNfaYc/GVA5CuoDMN7NloaJ8KMcHYQpfcFM/6xuzXy20zhI7K4xC095LNsNB23DJyxRQGUxTEgtTjlpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975707; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MxI0evncus8BQvuHTo2Tc8Ln0bfT5O/HbK8tMXziZ4QA1sfP3F9XnLLgmxEkPwUjomBHnC1uSBcFCnkOjBf3TnIofN1jECWBFqb7zgM099SJRpbQ0cD8v3nXudJH2ZjF2jNoIVBKL/I/PfXD/wTZB7tTkzSJ1PvaX/N1bgVKKzU= 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=CKmh0wL1; arc=none smtp.client-ip=217.70.183.195 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 4A5636000F; Wed, 29 May 2024 09:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716975704; 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=CKmh0wL1viZMFcLlBzI/A37+j7NWiJJjTb4Np8l94DzVcXUmJ6IXKjw0z8ctQaWubVnTBU vOSFDXXnTSY275lg+Tc5Kzgzxw/d9PLZAb/2TI5p/w2AlvBRLzKZJ/Vb+HupBdI2N3wPuh 24ENJt+LJUDOHBiv7N28ivUMXIZN4Y22ahQI4au17XiezHfvrtcjtboVCWTZ+gwWiRycMc Zf018IFRhHQma06cFicjHHzJoUIOu+rLMqAFJU+UMwKkWXTZBDPEpLziw9U8lCB9UrQC8+ 5r3Wxy/Zre/Uai1hU7HUH8VrQKiVL8mpDvkojK3m/5+RZmSJtjiloCsJ1YxUpA== From: Kory Maincent Date: Wed, 29 May 2024 11:39:38 +0200 Subject: [PATCH net-next v13 06/14] 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: <20240529-feature_ptp_netnext-v13-6-6eda4d40fa4f@bootlin.com> References: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@bootlin.com> In-Reply-To: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@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