Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2241889lqt; Mon, 22 Apr 2024 05:52:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBxKDuaOKSMZlmCs3WPS1BrLGb0iBL8iNgO0nUMvD8WvPZFXDzW7ca1U8CZ+Pws7xSPjFCA5/oJGSm0z372Y2Q15W3AJUymz4ZMGBJZg== X-Google-Smtp-Source: AGHT+IG2E6EBiaAv4ijOXMEISNG0LiNhIkRXqZWXPztZBL8TnUiXuFmjTJXUmlSzu6qLPyyLqG8+ X-Received: by 2002:a17:906:340c:b0:a52:4fc1:ea90 with SMTP id c12-20020a170906340c00b00a524fc1ea90mr6084819ejb.62.1713790337473; Mon, 22 Apr 2024 05:52:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713790337; cv=pass; d=google.com; s=arc-20160816; b=e+9i4JBxgB2oTDhehVaom1K6IihPqToq7DOT7Gih45rU0TKYUi9OKHyog/h3tfHrHR whfWRjajEKc5PDckyx/+FXWdykUCyObQmq2dXEAuhxl7vND3liRJJqooGb+wCCegEtfO VRchYnXnQXiQQF2TzMoTjY0ewDK4IcF1mo3V+JXFhaTFD0FGY+9hdQNWmRKRZBnOhfVr 9bD2B+hs5iD3GBNxrP8ctS4h/3PsdAIi4kTDdgoJv7RY7vh+FITWnFIbuxne10yJClui LKAABOyMNRcfFSqMRO+edl8kKHl4JREkiK847MQkni0DCistGA93A0uKiHjj/MjbcouY 05EA== 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=LGW/ytrlOTPUz+BgTWaF6DB8dzw+nfLq6POErI+/vTTmdcBX7SKGlHAumgPlMY/7vO 6p/7braNuuyAuvGv5fJjXdhRBib8UM0YsUmy+SvyUUVk3Q9S19vlhblpImg570k7SYLD Jzr2CRsFa9RNdIWl1pZlI9cVaQYGMZ2YUUFEnpBaHhrans4bVhfEv4aIDEo7RjMM/4jT NFzFYGKx8lkmnyk9A8gtTZ71yoceoEFE0MCx2zwz+nRYa8vTRJIvH/dVDqY0bsNonaxT r9lOgMqOIaiorLmNQ4rfdbl7ajsTkWp2Kye4BvXKDbe5Ww9pS2FlbN4vaKUA3zGOBeiH g7PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MKwCKHCe; 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-153378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153378-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. [147.75.80.249]) by mx.google.com with ESMTPS id n17-20020a170906089100b00a5557282bccsi5614330eje.985.2024.04.22.05.52.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MKwCKHCe; 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-153378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153378-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 CEECC1F20F41 for ; Mon, 22 Apr 2024 12:51:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CA4F1509AC; 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="MKwCKHCe" 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 8596B14F108; Mon, 22 Apr 2024 12:50:44 +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=KFt4KjjE3H/q9ZJ2RDiMl1b3trEs47PkNeqgZAk1OXw20lxQjrvD24mZc0hyzdYclw7i5zODr61REZjaC6V3Oxsvw43HfFDroweESChJxGZSPJyhKSj1y2Lz1n5jqiEwyDFKFZPqpyx1urgO1dVrRcHW0vjvWmJryO74aqeOQ3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790246; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=udYF/6sJNhTQeeL9FZeOdRVhqHtrekqh4r+0o1966T4+ID7bIWQKMdKaCzcmliBQqNj4chUxmSvTaGWsjQ5YiBaRm2sFn6vqyYDPA54W4uL1NknePNF0fHww0vy+dihCwr4M9xuw5Eei1W2tklXPwkRrSjHhis01et8FcMOkRoQ= 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=MKwCKHCe; 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 93D8EE0013; Mon, 22 Apr 2024 12:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790242; 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=MKwCKHCe8cg1oY0alXw9UkshmBhJ+3zzG24lToO0V4TOPu7D35PVfvW7CB1DTPNBGa+fvE +Fo8s3WdgBqlOAqW5/cP/tcptGSeqfoOtkYg7MST03CyJEAKIZZBIubM5bR6qpFp1Ni43K ji795ZJbiZO9zqKSVLISi8ZB0rBF0IRnxMtmdsTnPP8zZY49Z0XBfVLmjVMMUSeLx6kJeZ PuzseVBzel9oRLla02RRMwUrMyePn6BeuyqD6QkpMLGMjs0sEMkWAnacnmLQudnc1BjtxY qwCbruvjFhpBuUm2B7pUpesehFfg/TIBe0i3DLSsKXNnzm+JVZj2hReqO/oU+w== From: Kory Maincent Date: Mon, 22 Apr 2024 14:50:21 +0200 Subject: [PATCH net-next v11 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: <20240422-feature_ptp_netnext-v11-6-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 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