Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2129188lqa; Tue, 30 Apr 2024 08:51:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlIRszAP/HYwPkcJfWkZwODVr7h0yADmu1EVLidLxyoZjzNG6JiiBOebYSNbuxEQoj/OTXTW1I23Q6N8zNjATs8p0ze/egvxMJ/rYIkQ== X-Google-Smtp-Source: AGHT+IGWwvBkQjUxfZuGLfYG1QbwORjgZKwvk0FxFV1jc5kXXNFnb+LZrrWINCmkH9WlOJz2Laem X-Received: by 2002:a05:6122:2016:b0:4d3:499a:830c with SMTP id l22-20020a056122201600b004d3499a830cmr13473vkd.13.1714492277595; Tue, 30 Apr 2024 08:51:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714492277; cv=pass; d=google.com; s=arc-20160816; b=NVtXxNaeFx9ytrojDg7IoCNkpj4lAXm7PawvR//HMXAQqFTprK9VXk6q9c+3TZIr8v N4GNPgo0uHI9sSCH6Bfali6qDaWQg1UENZB4Y+DkJF0Lc48Ed5VFnqlqtWRZhA2uHNAJ eYx7pKyAkZuDRec1f/dQiieoBQWsh4s+m6I49Vzhkxp6adshVgdJbdV9AnsZCmPBz9r+ Mb0HXQnV38AdQ+5FwchJIjAv7/a6AV7n/EytXzDrEDAE2AtVw/QZXmYVlOripHl124jP sAajxaKwz/EsZtjPrVvOqaVcFk3Q6z6fNSNAI2oAR4u3WYdN9BaMpXNj5tkyekb+ooMG Resw== 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=wyHQY4jPtlmRwF5r5J+N9FhIfhTWbDgFi11+1on2JpKuWwjxK2BmK7VE2PtWmahXnf gN2KIE81uGrF0hu4zQuJOT7OMAvTVEHEzxe4aH78AlHSwFtbajevot0em8Q122QDBAEt 7PiD8gHYx2MoS3lHnBhuzOZpBEderMU5RX3V2L8aqPlYiHNlGLBbXMLI4MCbQyxVd2I0 J40ibDBCu+hiqxcZghTN5jmyv1e3kc69628ieGPP96YrnRMK9PVy9cuIP4qkV6am8iuN 79SWpDuxeJVpm4ValzWVjSqHjDhCxz39KoOoPGMutkiqY8IB/Zff7BWyDP/wm82VTR3h CQTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KIOvOeKl; 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-164308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164308-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d9-20020a05622a15c900b0043af48e4ca4si4384520qty.477.2024.04.30.08.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KIOvOeKl; 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-164308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164308-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 528E91C22D38 for ; Tue, 30 Apr 2024 15:51:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCD0817BB0F; Tue, 30 Apr 2024 15:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KIOvOeKl" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 45D3E174EDE; Tue, 30 Apr 2024 15:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492239; cv=none; b=lvoo4uQ+IbwQDIgHf+FDddqBJ8hFUMrMcbF3qvPs/utjBKFANGSiZOGvBp3YbUQmwQ00m50cgSrBKByFJEoIlJsk/hZtb33xQyvBUe+XABnx3vsFBIqbIa7l0uFZdnXDJU2OY4/nJm+n/Vh/Xxcb4q9CuIy/7/Fz+Qs500k4pSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492239; c=relaxed/simple; bh=IjMflVvqVRERvYARWe4LKlkVuXmMgcYCDaoitd2X9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JsnIAuQr4DvS7YeZnqIYGHJgIIqi+//pnAm4l4gOJxw9Ah/BCek2RsTglMZp7cdLQIH1sxFO5sK6pArqMoyPdt9G5TSpGtIynxcMT6Y6FquJX6AUQz5Vgwwf19rT2IFEL8GU1ap/2yA5WP2Uefzl87ZXG6oN+4HRjeR+N/t8I3g= 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=KIOvOeKl; arc=none smtp.client-ip=217.70.183.200 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 0A1AB20018; Tue, 30 Apr 2024 15:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714492233; 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=KIOvOeKlsyqvizbiANI6/Ort7VzdWIa2CB+A439jhYp6o6TVG98U5qRW8EVK4z5qdbdx0W gpXeCN7wogvfGPAAhs7iJSW5FDi7Qv+TAdT+eIgGAZ77YXkVt+Mzvw7w4YWCfxMN2jl91I pZGzaeVvCJA+WxodrLl2BAJFm12iZCBWfEFLSj+85TCuJ9IXN6dmqp4pCwry6DWSC0Iul8 YN6e3n770OAC0DHAeUiYVtNsGyFGBvyUGCzFMFr0+HGcVMyXXV1+lvGkG/3dMZhm+txIPW tdot4rM2Hh+W/3yF2Q8AGV58i0lx85uX9ruhNbFL9MXSSUX8o+thjMFeK/B82g== From: Kory Maincent Date: Tue, 30 Apr 2024 17:49:49 +0200 Subject: [PATCH net-next v12 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: <20240430-feature_ptp_netnext-v12-6-2c5f24b6a914@bootlin.com> References: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@bootlin.com> In-Reply-To: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@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