From patchwork Mon Feb 26 13:39:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 206629 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2081895dyb; Mon, 26 Feb 2024 05:42:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTwPAUaQuPi+jV+W4LEZXwMrwtwmFirqCeWG2BaP1CwVPf+HC9z5fhwbHghhpLwwtXauxorvXTLDfeGt/Vpvdvdby1kg== X-Google-Smtp-Source: AGHT+IGBtYXZFCwcYAkGCCc2p5cHGmmmV3Vsxjvnv4YApThFCb6viHW3K2EtCbS1zlLxnQE7PpZN X-Received: by 2002:a17:903:1111:b0:1db:9a7d:2e6 with SMTP id n17-20020a170903111100b001db9a7d02e6mr7521025plh.48.1708954931005; Mon, 26 Feb 2024 05:42:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708954930; cv=pass; d=google.com; s=arc-20160816; b=Q00jFnagE9D/9i0G5+XhlJHM6mhoXD7Jv5RzBliw6YpEpYZu/YR3CqLtFnaudmvM5N rueAf91K8W5CWjL2rCNjEoo0psWRln61yZ6JIAefS/ZoYs29G2nX06PA5MitYfDIAVyc iAHXLt1e/HBlBSkOKSKkIIsjyel76XHya8FhB54WwpqKNEsqTZCYhMxdpTobX34i42Q9 OFGHSOPgIYiYsfehgg8VTvb/42mRj+QqmlHy9zOqFCE9g2B1ArhR8gt6Mb0WHlxHIuzN Qq2KMgYUNMybyqc4ndCy1OvkxmKUsAi8ChpDQud4pz+8/xrToc1xTMw1Zd0NA4Qb0/ho U56Q== 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=04SFsb4YU2FLhX8c3BxjY03HBAIbE1GiOjr4sY7glFo=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=AinycKuP5i5MONVA8/DKB3U75C20ZWKnfCsg6wPHBFQHzOSQIKgo+vncJpcRezwidB MA0nMfmTbVCZYi1gHOMA9uTRQdq2BGRLu/RoeohtdN7VxRTcr2W5UXM7s4x8s8Vt5436 R85VfdZGqnD0Wt2J+KakN0oEn9uCFtkzHrL477tHGx52RJbfzKidarTnQjjdJHETdc4M xO+aROsQcxuzoM8h/st1IXU8GbqYyCo16Wow6ehymLOEkL7eKPXQI08p/7qRNxDvaGHe XmxSCwR1JjWjezq54wpDNQd8nR7TpKP2L+lHM6dPBnaa6XoppYABzdWpphlawT+q5Bko AbbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MTEL1Hbr; 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-81506-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81506-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i8-20020a1709026ac800b001dca8734f2asi1123276plt.422.2024.02.26.05.42.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:42:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81506-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MTEL1Hbr; 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-81506-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81506-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D1ED128CA59 for ; Mon, 26 Feb 2024 13:41:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EF6C1292C5; Mon, 26 Feb 2024 13:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="MTEL1Hbr" 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 7FBAF12AAD6; Mon, 26 Feb 2024 13:40:19 +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=1708954821; cv=none; b=ZCXERjvqpg0RPJlXd7wdK2ZjR4vcwFtRm3FFSS8A+006e4wX22T8QLbzh/CrUBbeXXrM4F7s2noUBIAHnOR63HTDTckqFVyGkIZ12E3v62LOD5N+urloioL8VZi6idmHtKsV/9+4umXUu9poYgkhdHUCtwxqvqne7JhBlSVJRDY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954821; c=relaxed/simple; bh=V4PCxhGFH/jAAOAVBdY7uV5Loj9ZYxch0/IxD1tU438=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UCc2QKJ3VPYw2s76TI1E78t8dfuDr2y28gPru1ihshf1xzpffKr5RH7vUbWpGtGetqMp1Ksw1TwIkCsBX3y+q+L+Rx6Z9oj9XaROCWLOU6mi5/rBXnNX5iziDWURSiqwA5Q1TPYoLSECYgS5FPnfhyknvs4eFHvIjb25EaIFgCM= 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=MTEL1Hbr; 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 98D4E40006; Mon, 26 Feb 2024 13:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708954817; 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=04SFsb4YU2FLhX8c3BxjY03HBAIbE1GiOjr4sY7glFo=; b=MTEL1HbrPhYS33f3VMD/39lNpm4vOlJW4tjoQ9cLrWzF/oLy86y7LnqYeB5LcjEpG5XeT8 foowgbRM3sn1mBZtNbBNjktPAhsqqsjh9S2sc4V+U+k+LMR8K2TelwNbC+4CSdC7DyqoAa lUJ7FvqAeR2uhEA5X//f/UaO1KXNUA8PXIIbxSIgulhiGeDfFlgLqET1OZ5azSQF8yyecU JfeWRY2JlO7LI8vZUVEHB5J+1SRyiBlv94Im+syyQBbJev9JQQojcckcluWKEEpL0g5Ybi pJR9wj5oma0cZZal6xJnviJkmwClRmbHDrJoRs4yXeo0s44GvfxXZ4zAdaksAg== From: Kory Maincent Date: Mon, 26 Feb 2024 14:39:56 +0100 Subject: [PATCH net-next v9 05/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 Message-Id: <20240226-feature_ptp_netnext-v9-5-455611549f21@bootlin.com> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> In-Reply-To: <20240226-feature_ptp_netnext-v9-0-455611549f21@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.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791969125897253907 X-GMAIL-MSGID: 1791969125897253907 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, };