From patchwork Fri Jul 5 15:03:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13725250 X-Patchwork-Delegate: kuba@kernel.org 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 0B6AF154C11; Fri, 5 Jul 2024 15:03:13 +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=1720191796; cv=none; b=FgMrawqcOrLZbOSKTEWsbZmp5OC/YFJtDzafQFy67l7raRBAEK6fORBF5n8xEeNDus2208Q4JLd+XjDhq+3NZeKK3FsT8N68K33Xo6guB0IQFx8pMHJH9cMy+A0vlTpBC48W60bmk5riwnIyGS4JpcHyvZduyryi3Q17BI3uU/M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720191796; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m3TsLHpvcyv92URVW9dSv4Wo8XCt+Wrah36rIGCh6b8rrahP3UQvOlsqjQlCNf3kM6MDgPRB6B+EkRHBOc/s0LPbj6jLcCBiKYtXQ4xSgEIFV6tbIZAVNJeEfHyNy2BHMHfHCZgE1eYLfhTrW+NjTvStYbLY6j7VqYwO7LtO3xM= 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=Wy0tdw0J; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Wy0tdw0J" Received: by mail.gandi.net (Postfix) with ESMTPSA id 1D123E000A; Fri, 5 Jul 2024 15:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720191792; 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=Wy0tdw0JPwJAeOPjh+1aR0v0HhcpVyGBJoBLkb5voML+xxTYNBQEa7R+zduT+/8ZCemMsu XjBftcQGEneYxaMb26xFJcKj0s2CDIBM5JHk6s+VklG03Tqh6JrjarR73j0jL2zko3p73n KcYzpm8wqMVqUYCX2sq9nvTeTINiJTKVRRP874WleoJXvUu88bWb5+tZNAA41StFeMtepz XsmcE8J/caCR5TgXokoHjFV4B8vTRdHZBjoxCIaHy4cg3Q/IZ6L6nTSOH1O70PvQnhV4lu eyX19oRb6S4Kea8mQ8rha13E9xkhZTXZjz8JxqjgQ99VQ2wjuDtbUqFmCU1ygQ== From: Kory Maincent Date: Fri, 05 Jul 2024 17:03:06 +0200 Subject: [PATCH net-next v16 05/14] net: net_tstamp: Add unspec field to hwtstamp_source enumeration Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240705-feature_ptp_netnext-v16-5-5d7153914052@bootlin.com> References: <20240705-feature_ptp_netnext-v16-0-5d7153914052@bootlin.com> In-Reply-To: <20240705-feature_ptp_netnext-v16-0-5d7153914052@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 X-Patchwork-Delegate: kuba@kernel.org 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, };