Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp508001lqp; Wed, 12 Jun 2024 08:05:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyG+4UBk5oBFzzvLpukd9mi30ziDR81qByUov3NmFDqkPLWfuu17KJr/BdWzhLMHP0g4U+kxDbFpzTFGEYreCpgysq4+GzcVsuA27ALA== X-Google-Smtp-Source: AGHT+IGaNrp4jO72BYDXooiW8D37K9v8hee6Pu+b8BXnSmQJQwOATdfw6jxvtq0VTwxIRfpMnn4W X-Received: by 2002:a05:6122:403:b0:4ec:f402:a849 with SMTP id 71dfb90a1353d-4ed07f7d9e9mr1720003e0c.16.1718204746746; Wed, 12 Jun 2024 08:05:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204746; cv=pass; d=google.com; s=arc-20160816; b=k6Z5RmxllL+P5eBa3tJxkIPigL5Vi3n1FF0f+Y3y8L95MrK/MsBAPXAnjJl/ZedZkr YezKdV70rqpv2sNVH5BP7Lh5V4o+am1DIDZOhTAKJjHcN2ruw7uhyDIURm0LKuWVq7ov UBmUxpy0cqQNxT2xq2Uw4Qspswg4YZmEVuULZBZHuDGjjExUta2Ixx+ISvbdD1eln7JI FbnH+cO69EvXwfk7MpXbVlEzb9oPc73NyvSWOKT1T+wKEqys7LOQrK2I1ZI7fI52QWBd mbrdylKeNTp2LUqs09R17Yv+suZEkh6LLLNPXN45rqNE/kKb+mR+v6XNYKbOn+pdqPaB IJUA== 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=ccuL6BRV88VF80NEkjtanzd87+5yHZ/K8+N6cL5M+H4G2cwaTzGR9B9zjDjIjmV17k vSiLM+2mBJZqkAH6fZMedIsulEU23w1S7IBvihDe+UwwaZP3Sl7Jcgi+tkbociW09S8E ImrEteoNtoOk8KPzuh7It5QMPdEJYAtQumxTWHvZeaQNrBNvaH62/tx+IU30MDHKExFy PgUwyo339xNZEp7Pv68y2gi0j2xbJs089GgzPDr+0wKxAZquPNdOtRPI74O15dcOeEWT 8MTOt1lZt1aFtAMb9XJ5G8e4vBJHEjT3vxq622ob5UlieZTPUOqZoAQIT0q7xzEFh/ku AU3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DhGsknc2; 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-211741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211741-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 ada2fe7eead31-48d745c0098si1591679137.230.2024.06.12.08.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211741-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=DhGsknc2; 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-211741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211741-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 0DE941C20F76 for ; Wed, 12 Jun 2024 15:05:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F4021802C3; Wed, 12 Jun 2024 15:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DhGsknc2" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 89A4117E90D; Wed, 12 Jun 2024 15:05:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204705; cv=none; b=ZSjtm78sZuX4M2pjGCyP21ONpWmHpELLCyjsM2qOGQtG791SJ7ys4f0m+nAeCWOrAz7LWBvpDO48QawxTPxeKKAue/M72GEFba1yuwBHXil024RsPrsPvALKB1ZeP2JTyht/oRAlbeQSMkGC2tpyF1HrVXoxK1onI/Qw8QOgRa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204705; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KmwSb5/aOG5uMkrrlfDy8twXrVdYGgLsHejNChSztjqP1WS4fm0HFNzrgzIuIfBU3xSEohXm+bp6Sdu776THd44xZa/hW5o0zfoyG7DPFwdS/H5rAN/axr/GkL9okHPfkYeWkegVi4F1BTtuAWyR4SrUIJcjZ4jId02P5V2k7ps= 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=DhGsknc2; arc=none smtp.client-ip=217.70.183.194 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 E006740014; Wed, 12 Jun 2024 15:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718204701; 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=DhGsknc2iMg01U1I3UsOtw472sE1E4CIKYFjVUUfh9i9VX4pvSaSemxyCFIvToUp/T81Be xuer4IPVSBXdH0pqCjF9pGjBSDKm4r70V0m6J4u32xNsRd3RHT+cNxYr4pR1Zz8oUgzLyI ptBBYTahOp94pszWCdVhu57X00E0+LaDrRiMVj9Bx7q5Rq9tHQTGFQKid4/vi69vp6y+Mz J/+dw7VvWWkuidwO8QNkruKaU4InhdZa261b3JYWSkrEqRPXn8fsY3ZvlDduofjr+U9I+8 n2B7JFThTUfuNiAPENiuMW58ApiVG23dpvSnG9lIfRBjZ1OpsU3j+gtEmXwRPA== From: Kory Maincent Date: Wed, 12 Jun 2024 17:04:06 +0200 Subject: [PATCH net-next v15 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: <20240612-feature_ptp_netnext-v15-6-b2a086257b63@bootlin.com> References: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> In-Reply-To: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@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