From patchwork Fri Feb 16 15:52:23 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: 202211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp605442dyb; Fri, 16 Feb 2024 07:53:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlhzpLvUUJa3S/U8pvDvPStXYhIOls7v1ubLu/8MFGoBMQfQIEACp5Y6QlPoCgQgr77QYgn84QB3LoOVghwe0Dc3+R7g== X-Google-Smtp-Source: AGHT+IGQt7t9u8afUQVEkfLmlnhmWt1H/xKY3xstdaqn9dmPqopj3/EnEqBCYI4SJ9LVM9dAXcAC X-Received: by 2002:a17:906:c57:b0:a3c:d108:2168 with SMTP id t23-20020a1709060c5700b00a3cd1082168mr3887414ejf.38.1708098839579; Fri, 16 Feb 2024 07:53:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708098839; cv=pass; d=google.com; s=arc-20160816; b=lJunLSGrx2QexHSmX0Vj0Ucfw9p4jXNGokzlYIWr7hHpWN5roKwzfS/+obT28zxqM3 LvLOlR9g0ojppF3g2dyGi8DISAckwAwW5ruF9gAoX96SuzwkAq6Xqi5Me5oQyzd6SJLR zK7ruQPCKBuJy/TM5rY//X+61UjHdC2wsMEB/juw++aJzk2A1FdWonsRkwiIji+KIpLd OXjvm8PBfP+WW+dNND7Cc6Pgob7sKPR3QS1eEzfItaKjR37nUhpCfA1ig99XM3MoJ+P4 +1dGA7fq8w3bfuIS8Qczlmo7A939kheKgxLr1XzlDd9GNfa2JEK47j+Uy9Y2NE++vnwb JXUg== 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=YA+05ueIYmg5VfyqpZiS5dR9i5sI84wu+Ei5RFl1/SkR2K4bUpbS9LAI0uQOY4QMqW O/k5vQqVTsND1dwawBS3XtI6562kOFSWODGuS/L4hjF9/UrIwehzSSVYB5mWEyuGGQLZ 0hAmWLdlN+XoSNRNcHJlF6QdvaOqYqfTzBwngftMstYmQ7RxSHy4Sa1xHK1eon/2/ln0 9Ddqjb7ZVHm3BO2R/59zOrQXrmE6RyxdXrR6IDo+htvMKkhqOjF0QMP2dua80HsKjY+8 RsnrheRikR37I83tkA1DBRGYGdhkJAXNYbVGYztunYhH1nAubxJCsvMltDwQqsjXHybR qyyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gdSnkKdC; 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-68909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68909-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g12-20020a17090669cc00b00a3d75e89a7dsi41379ejs.885.2024.02.16.07.53.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:53:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68909-ouuuleilei=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=gdSnkKdC; 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-68909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68909-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 303871F2267F for ; Fri, 16 Feb 2024 15:53:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF78B130E39; Fri, 16 Feb 2024 15:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gdSnkKdC" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 DAA9F12F58A; Fri, 16 Feb 2024 15:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098786; cv=none; b=td3FSe5buf/8SrUgkK7f0+++lxHuiF+CTQ6WN9c8EjmutthMXaDNj/pz7Ylc1Y1YFb5gRl8M1KjBrB7uw8Ue6bOmfyPJtvmvHOMXjSyURuN/0atTJho4c1v+a1hfrWj8UYZ7GOpwHKrQlexCp3F6TBwFn9QPtUrVgQvYuvSJkTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098786; c=relaxed/simple; bh=V4PCxhGFH/jAAOAVBdY7uV5Loj9ZYxch0/IxD1tU438=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H902W9PEHYAnhJu5QcQ89zK7J+lF9n/uPFNrn/lGn3DhykoBsvB2CFjchMWmL5tdz41qxsB4+QJSrV/RXGDBFPCTEsLf6i2nHeHlCKrzBeBkItZZn5043T/kqyyyV+EykzmJVBXv6AJqmAVakSi3NRrptyr7DAYU0UeH9U/scYI= 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=gdSnkKdC; arc=none smtp.client-ip=217.70.183.193 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 ED3C3240008; Fri, 16 Feb 2024 15:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708098782; 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=gdSnkKdC8MDHGhmseptmYi7uQcOpt+2+nGF7b176TtpsvoCUMXpH1gQnMYikSsEzZWVgns s6wTqDapPaEo7bDjQ8pIeXUJp7N+waY+9YdFtYKy4F4g+7Z3JqpD7sCypPthb1b6JddOrg 2TMLuPUvAC0OhKrNdCz5r/sdqYF/n3dvXAvH46tuKwAyTC/+4s9fCQn/foh2caMhIanw4t uijtVb53YhicB0Ahz64zQEOc5ccwTNslmCsziEPUGViHbZDCmar1YVQniayevymRMUsnhr L33Iqr//g5cvesrR0HpNEnxt4R2NRAbpAOCFRs2xmzWPRZniPIGLQCmGMYjscA== From: Kory Maincent Date: Fri, 16 Feb 2024 16:52:23 +0100 Subject: [PATCH RFC net-next v8 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: <20240216-feature_ptp_netnext-v8-5-510f42f444fb@bootlin.com> References: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@bootlin.com> In-Reply-To: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@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: 1791071448870904469 X-GMAIL-MSGID: 1791071448870904469 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, };